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 Cross-site Scripting (XSS) #125

Closed
prodigysml opened this issue Oct 28, 2017 · 3 comments
Closed

Stored Cross-site Scripting (XSS) #125

prodigysml opened this issue Oct 28, 2017 · 3 comments

Comments

@prodigysml
Copy link

Issue Summary

Stored Cross-site Scripting (XSS) in page editor causing any author to get arbitrary javascript execution on the any viewer's browser.

Steps to Reproduce

Tell us how to replicate the problem.

  1. Log in to a user with writer permissions
  2. Choose to edit a blog post
  3. Choose to embed a resource. A side panel will appear asking you for code.
  4. Enter the following payload in the side panel: <IFRAME SRC="javascript:alert(1);"></IFRAME>, and save the blog.
  5. View the blog and observe an alert box pop up.

Additional info

  • Leafpub version: 1.2.0-beta6
  • PHP version: 7.0
  • Affected browsers: All that can run javascript
  • Operating system: Ubuntu
@karsasmus
Copy link
Contributor

I don't understand your point. You'll be able to embed an iframe with javascript on your own site? Or a person you've allowed to write on your site is able to do that?

@prodigysml
Copy link
Author

Yes a person you have been able to write on your site is able to do that. The idea is, this can be used for denying service to other users and hijack other user's sessions by stealing their session tokens (as HTTPOnly is not set on them).

@karsasmus
Copy link
Contributor

Then you should choose your writers wisely.

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