-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.5.2
Python version
3.10
Steps to Reproduce
- Create a tenant group with the name
<img src=1 onerror='alert(document.cookie)'/> - Go to the site creation form
- Open the tenant group dropdown
Expected Behavior
No XSS
Observed Behavior
The name is not escaped and the browser displays an alert with the cookie. Originally found here: https://github.com/anhdq201/netbox/issues
This probably applies to all DynamicModelChoiceField where the user can set the display value.
The person responsible for that repo chose not to report it. The same report is also duplicated 15 times and one report is invalid (the graphql one).
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application