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

XSS (via SVG file upload) in Monstra-dev #451

Open
security-breachlock opened this issue Aug 16, 2018 · 1 comment
Open

XSS (via SVG file upload) in Monstra-dev #451

security-breachlock opened this issue Aug 16, 2018 · 1 comment

Comments

@security-breachlock
Copy link

security-breachlock commented Aug 16, 2018

Affected software: Monstra-dev

Type of vulnerability: XSS (via SVG file upload)

Discovered by: BreachLock

Website: https://www.breachlock.com

Author: Balvinder Singh

Description: SVG files can contain Javascript in <script> tags. Browsers are smart enough to ignore scripts embedded in SVG files included via IMG tags. However, a direct request for a SVG file will result in the scripts being executed.
So an embedded SVG as an attachment in an issue or avatar does not execute the code, but if a user clicks on the attachment the code will execute.

Proof of concept:

Step1: Login to the monstra-dev cms.
Step2: In the content section, choose files and upload a malicious SVG file.
URL: http://localhost/monstra-dev/monstra-dev/admin/index.php?id=filesmanager&path=uploads/
svg_monsta

Step3: Now open that file which was saved as 1.svg the below output will be shown.
monstra-dev

VulnerableURL: http://localhost/monstra-dev/monstra-dev/public/uploads/1.svg

@security-breachlock
Copy link
Author

Hi Team,

Any updates regarding the patch.

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