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

SocialNetwork – Cross-Site Scripting (XSS) #84

Closed
bestshow opened this issue Mar 23, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@bestshow
Copy link

commented Mar 23, 2017

Product: SocialNetwork
Download: https://github.com/andreas83/SocialNetwork
Vunlerable Version: v1.2.1 and probably prior
Tested Version: v1.2.1
Author: ADLab of Venustech

Advisory Details:
A Cross-Site Scripting (XSS) was discovered in “SocialNetwork v1.2.1”, which can be exploited to execute arbitrary code.
The vulnerability exists due to insufficient filtration of user-supplied data in the “mail” HTTP POST parameter passed to the “SocialNetwork-andrea/app/template/pw_forgot.php” URL. An attacker could execute arbitrary HTML and script code in a browser in the context of the vulnerable website.
The exploitation example below uses the "alert()" JavaScript function to see a pop-up messagebox:
Poc:
Post: mail=" /><script>alert(1);</script><input type="text
To
http://localhost/.../SocialNetwork-andrea/app/template/pw_forgot.php

@andreas83 andreas83 self-assigned this Mar 23, 2017

@andreas83 andreas83 added the bug label Mar 23, 2017

andreas83 added a commit that referenced this issue Mar 23, 2017

Update pw_forgot.php
 #84 XSS Prevention
@andreas83

This comment has been minimized.

Copy link
Owner

commented Mar 23, 2017

Should be fixed now, please confirm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.