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

Prevent XSS (admin cookie hijack). #18

Closed
wants to merge 1 commit into from

Conversation

michaelkuty
Copy link
Contributor

Render table directly in template without html safe, because value could be cookie hijack !

If something would like to trust directly submited html from user(for example field clean etc..), can change template.

Could be tested with simple <script>alert(1)</script>

It's dangerous only for SESSION_COOKIE_HTTPONLY = False, but still you can exploit the admin using
http://beefproject.com/

@michaelkuty michaelkuty mentioned this pull request Jan 2, 2016
@michaelkuty
Copy link
Contributor Author

Thanks

@matthiask
Copy link
Member

You're welcome. Thanks again for the report.

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

Successfully merging this pull request may close these issues.

None yet

2 participants