There's a classic injection attack when interpolating in the SQL query
Also as others have mentioned RGB space and human perceptible color space is different enough that distance in RGB doesn't equate to difference/similarity between colors
Also as others have mentioned RGB space and human perceptible color space is different enough that distance in RGB doesn't equate to difference/similarity between colors
I can't see any client data in the query, so how would anything be injected?