Redirect URLs are not sanitized in some cases #19346
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Milestone
Deployment Type
Self-hosted
NetBox Version
v4.2.8
Python Version
3.10
Steps to Reproduce
There are a few instances where NetBox returns a redirect crafted from the URL specified in a request. For instance:
netbox/netbox/dcim/views.py
Line 3797 in 81dfaf0
Expected Behavior
These values should be validated using Django's
url_has_allowed_host_and_scheme()
function prior to use.Observed Behavior
These values are passed directly to the HTTP response object.
The text was updated successfully, but these errors were encountered: