-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross site scripting persistant #4
Comments
Great observation @tahriabd |
I agree, The best way is to use prepare statement like pdo or framework symfony but here, it s just a quick fix for who want to test code. The quick fix proposed in commit on issue #5 is safe too |
Very true. But I guess this fill never be fixed / merged / updated on the website |
Hi,
$subject and $comments in insert.php are vulnerables to xss attack: a remote attacker could inject à malicious javascript to corrupt user for example:
<script>alert(1)</script>
to correct this vulnerability you need to escape html characteres by
htmlentities($comments, ENT_QUOTES)
and
htmlentites($subject, ENT_QUOTES)
https://www.acunetix.com/websitesecurity/cross-site-scripting/
The text was updated successfully, but these errors were encountered: