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

Stored XSS in the image caption tag . #1302

Closed
abhi-r3v0 opened this issue Jul 21, 2015 · 0 comments
Closed

Stored XSS in the image caption tag . #1302

abhi-r3v0 opened this issue Jul 21, 2015 · 0 comments

Comments

@abhi-r3v0
Copy link

Whenever a new user registers a new account on October CMS , he has an option to upload his profile picture. On uploading , he can give a caption for his image. This tab executes JavaScript. When administrator opens this user's account , the script executes ( If any script is input ) . Any user with limited privileges can inject a malicious JavaScript and even access administrator credentials via cookies. There is enough chance for an attacker to grab the credentials from any user , practically , without even the users being aware of it.

POC :

  <svg onload=alert(document.cookie)>

Input this script inside the caption tab of the image and the cookie contents pop up

screenshot from 2015-07-20 21 24 33

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

No branches or pull requests

1 participant