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

CX Stored_XSS @ badguys/vulnerable/views.py [master] #3

Open
kmcdon83 opened this issue Sep 26, 2018 · 0 comments
Open

CX Stored_XSS @ badguys/vulnerable/views.py [master] #3

kmcdon83 opened this issue Sep 26, 2018 · 0 comments

Comments

@kmcdon83
Copy link

Stored_XSS issue exists @ badguys/vulnerable/views.py in branch master

Method user_pic at line 35 of badguys\vulnerable\views.py gets data from the database, for the read element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method user_pic at line 35 of badguys\vulnerable\views.py. This may enable a Stored Cross-Site-Scripting attack.

Severity: High
CWE:79
Vulnerability details and guidance
Internal Guidance
Lines: 42


Code (Line #42):

        data = open(os.path.join(base_path, filename), 'rb').read()

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