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

Emoncms 9(lastest version) - Multiple Cross-Site Scripting (XSS) #636

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

Emoncms 9(lastest version) - Multiple Cross-Site Scripting (XSS) #636

bestshow opened this issue Feb 11, 2017 · 1 comment

Comments

@bestshow
Copy link

bestshow commented Feb 11, 2017

Procuct: Emoncms 9
Vunlerable Version: 9 and probably prior
Tested Version: 9
Author: ADLab of Venustech

Advisory Details:
I have discovered multiple Cross-Site Scripting (XSS) in Emoncms 9, which can be exploited to execute arbitrary code.
The vulnerability exists due to insufficientfiltration of user-supplied data in multiple HTTP GET parameters passed to "emoncms-master/Modules/vis/visualisations/compare.php" url. An attacker could execute arbitrary HTML and script code in browser in context of the vulnerable website.
The exploitation examples below uses the "alert()" JavaScript function to see a pop-up messagebox:
(1)
http://localhost/teststh/emoncms-master/emoncms-master/Modules/vis/visualisations/compare.php?feedA=%22%22;%3C/script%3E%3Cscript%3Ealert(1);%3C/script%3E%3Cscript%3E
(2)
http://localhost/teststh/emoncms-master/emoncms-master/Modules/vis/visualisations/compare.php?feedB=%22%22;%3C/script%3E%3Cscript%3Ealert(1);%3C/script%3E%3Cscript%3E

TrystanLea added a commit that referenced this issue Feb 11, 2017
@TrystanLea
Copy link
Member

Thankyou for highlighting this. I have added amended to:
$feedA = (int) $_GET['feedA'];
In commit
63b32ed

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