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

text_view renders html markup #5814

Closed
pazepaze opened this issue Jan 7, 2021 · 0 comments · Fixed by #5815
Closed

text_view renders html markup #5814

pazepaze opened this issue Jan 7, 2021 · 0 comments · Fixed by #5815
Assignees

Comments

@pazepaze
Copy link
Contributor

pazepaze commented Jan 7, 2021

CKAN version 2.9.1

Describe the bug
The text_view renders html elements if they occur in a text file.

Steps to reproduce
Create resource and upload the following text file:

foo.txt with content

<input type="text"/>

The text view actually displays this as an input field:
image

Expected behavior
Text view just renders everything as plain text

Additional details
I didn't test what else can be injected that way. Could this even allow XSS attacks?

@wardi wardi self-assigned this Jan 7, 2021
wardi added a commit that referenced this issue Jan 7, 2021
wardi added a commit that referenced this issue Jan 16, 2021
Co-authored-by: Jari Voutilainen <jari.voutilainen@iki.fi>
Zharktas added a commit that referenced this issue Jan 18, 2021
amercader pushed a commit that referenced this issue Jan 28, 2021
Co-authored-by: Jari Voutilainen <jari.voutilainen@iki.fi>
amercader pushed a commit that referenced this issue Jan 28, 2021
Co-authored-by: Jari Voutilainen <jari.voutilainen@iki.fi>
amercader pushed a commit that referenced this issue Jan 28, 2021
Co-authored-by: Jari Voutilainen <jari.voutilainen@iki.fi>
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 a pull request may close this issue.

2 participants