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

pi-engine/pi – Cross-Site Scripting (XSS) #1523

Closed
bestshow opened this issue Mar 8, 2017 · 3 comments
Closed

pi-engine/pi – Cross-Site Scripting (XSS) #1523

bestshow opened this issue Mar 8, 2017 · 3 comments

Comments

@bestshow
Copy link

bestshow commented Mar 8, 2017

Product: pi-engine/pi
Download: https://github.com/pi-engine/pi
Vunlerable Version: 2.5.0 and probably prior
Tested Version: 2.5.0
Author: ADLab of Venustech

Advisory Details:
A Cross-Site Scripting (XSS) was discovered in “pi-engine/pi 2.5.0”, which can be exploited to execute arbitrary code.
The vulnerability exists due to insufficient filtration of user-supplied data in the “preview” HTTP POST parameter passed to the the “pi-develop/www/script/editor/markitup/preview/markdown.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: preview=><script>alert(1);</script><
To
http://localhost/.../pi-develop/www/script/editor/markitup/preview/markdown.php

@voltan
Copy link
Member

voltan commented Mar 21, 2017

Thank you very much for test our project and report this security issues, we will fix it ASAP ,

Thanks

@bestshow
Copy link
Author

Thanks for your reply.

@voltan
Copy link
Member

voltan commented Mar 22, 2017

Thank you for check it , I fixed it and send pull request , I will margin it today or tomorrow after some more test

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

No branches or pull requests

2 participants