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/Matrix009917 Dec 13 '24

And we have already made it clear that this alone is not enough :)

1

u/colshrapnel Dec 13 '24

"Not enough" implies it's still used, along something else. The point is, it's completely off the track in the present case, being totally alien, useless, and even harmful.