Skip to content
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

I found some reflective XSS vulnerability #7

Closed
CBiu opened this issue Aug 17, 2018 · 1 comment
Closed

I found some reflective XSS vulnerability #7

CBiu opened this issue Aug 17, 2018 · 1 comment

Comments

@CBiu
Copy link

CBiu commented Aug 17, 2018

Mainly cause by using $_SERVER['PHP_SELF'] to get Current script name
Reference: https://stackoverflow.com/questions/6080022/php-self-and-xss

Here is a example(No login required):
1
2
The payload here is:
/"><script>alert(/xss/)</script><a="

You should know that you have used this kind of method so many times.

Actually, you can use $_SERVER['SCRIPT_NAME'] to replace it.

or use htmlspecialchars() filter.

@CBiu CBiu changed the title I found a reflective XSS vulnerability I found some reflective XSS vulnerability Aug 17, 2018
@alterebro
Copy link
Owner

Thanks for reporting this @CBiu !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants