r/PHPhelp • • Dec 13 '24

XSS scripting

Newb question. Trying the Hackazon app for XSS mitigation. Hitting my head against the wall for hours. Error on signin.php line:

Echo 'var amfphpEntryPointUrl = "' . $config->resolveAmfphpEntryPointUrl() . "";\n";

showing XSS with "Userinput reaches sensitive sink when function () is called."

Think I know conceptually to sanitize the data but having trouble finding the right answer. Htmlspecialchars?

TY in advance.

1 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/NunyasBeesWax Dec 14 '24

No, i don't. Trying to validate. Good thought.

1

u/HolyGonzo Dec 14 '24

Trace it back. Figure out how that entry point url is created.