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

HashOver 2.0 - Cross-Site Scripting (XSS) #152

Closed
bestshow opened this issue Feb 27, 2017 · 1 comment
Closed

HashOver 2.0 - Cross-Site Scripting (XSS) #152

bestshow opened this issue Feb 27, 2017 · 1 comment
Assignees
Labels

Comments

@bestshow
Copy link

bestshow commented Feb 27, 2017

Product:HashOver
Download: https://github.com/jacobwb/hashover-next
Vunlerable Version: 2.0 and and probably prior
Tested Version: 2.0
Author: ADLab of Venustech

Advisory Details:
I have discovered a Cross-Site Scripting (XSS) in “HashOver”, which can be exploited to execute arbitrary code.
The vulnerability exists due to insufficient filtration of user-supplied data in “hashover-script” HTTP GET parameter passed to “hashover/scripts/widget-output.php” url. An attacker could execute arbitrary HTML and script code in browser in context of the vulnerable website.
The exploitation example below uses the "alert()" JavaScript function to see a pop-up messagebox:
Poc:
http://localhost/.../hashover-next-master/hashover/scripts/widget-output.php?hashover-script=%27;}%3Cscript%3Ealert(1);%3C/script%3Efunction%20test(){

@jacobwb jacobwb added the bug label Feb 27, 2017
@jacobwb jacobwb self-assigned this Feb 27, 2017
@jacobwb
Copy link
Owner

jacobwb commented Feb 27, 2017

Thank you for pointing this out to me, it will be fixed soon. The widget-output.php file does not exist in HashOver 1.0. The widget-output.php file also should not even be executable by itself. Both of these issues have been fixed. The widget code is probably the oldest code in the project, it needs to be entirely rewritten, and improved before release or be removed.

jacobwb added a commit that referenced this issue Feb 27, 2017
@jacobwb jacobwb closed this as completed Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants