You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Note parameter of a resource is vulnerable to cross-site scripting.
The user input data is not properly sanitized in the resource creation process as well as when the resource is viewed via a shared link.
Notice the pop-up alert box indicating that the XSS payload was executed successfully
Remediation
User input should be validated and escaped properly during the resource creation process as well as during its reflection back to the user under the /view_resources view.
The following chunk of code is where user input should be escaped and sanitized properly before it's shown back to the user.
note=form.note.data.replace('\n','</br>') # So we can show the newlines in the note section
timestamp=datetime.datetime.fromtimestamp(
time()).strftime('%Y-%m-%d %H:%M:%S')
Note
Currently the app has crashed due to another critical bug. Once it's up and running again I will update this issue to include more detailed steps on how to exactly reproduce the issue.
The text was updated successfully, but these errors were encountered:
Summary
The Note parameter of a resource is vulnerable to cross-site scripting.
The user input data is not properly sanitized in the resource creation process as well as when the resource is viewed via a shared link.
Vulnerability Details
Severity: High
OWASP Category: A3 – Cross-Site Scripting (XSS)
OWASP Page: https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
Proof of Concept URL
Remediation
User input should be validated and escaped properly during the resource creation process as well as during its reflection back to the user under the
/view_resources
view.The following chunk of code is where user input should be escaped and sanitized properly before it's shown back to the user.
3RStore/_3RStore/templates/resources_public.html
Lines 67 to 79 in 49ccb10
And, the following code is where user input data should be escaped before it is inserted into the database to prevent arbitrary code injection.
3RStore/_3RStore/views.py
Lines 307 to 313 in 49ccb10
Note
Currently the app has crashed due to another critical bug. Once it's up and running again I will update this issue to include more detailed steps on how to exactly reproduce the issue.
The text was updated successfully, but these errors were encountered: