-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
If you pass something like &code=27%22%00%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E you'll get
LINE 1: ...editor_oauth_token WHERE authorization_code = any(E'{"27\\"'...
^
DETAIL: Unexpected end of input. [for Statement "SELECT id, editor, application, authorization_code, access_token, refresh_token, expire_time, scope, code_challenge, code_challenge_method FROM editor_oauth_token WHERE authorization_code = any(?)" with ParamValues: 1='{"27\"'] at lib/MusicBrainz/Server/Connector.pm line 50
and this returns an HTML error page instead of JSON.