Escape config-revision banner values by default #9992

Closed
opened 2025-12-29 21:25:22 +01:00 by adam · 2 comments
Owner

Originally created by @jeffgdotorg on GitHub (Jul 17, 2024).

NetBox version

v4.0.7

Feature type

Change to existing functionality

Proposed functionality

  • The values of the banner fields (login, maintenance, top, bottom) are escaped by default before displaying
    • Nice to have / bonus: Banners support Markdown rendering
  • A new configuration parameter, e.g. ESCAPE_BANNERS, is available and can be set to False to override the default behavior
  • Configuration Documentation updated to mention this new configuration parameter
  • Names of all dependent objects are escaped before displaying in error messages when parent object deletion fails

Use case

  • Our users trust NetBox to be a safe and secure place to store sensitive information about the actual and intended state of their networks
  • Many users need to include formatting, hyperlinks, or even arbitrary markup in the values of their system banners.
  • All users benefit from a system whose security posture defaults to protecting them from malicious content, which threat actors are very good at finding ways to inject

Database changes

None

External dependencies

None

Originally created by @jeffgdotorg on GitHub (Jul 17, 2024). ### NetBox version v4.0.7 ### Feature type Change to existing functionality ### Proposed functionality - The values of the banner fields (login, maintenance, top, bottom) are escaped by default before displaying - Nice to have / bonus: Banners support Markdown rendering - A new configuration parameter, e.g. `ESCAPE_BANNERS`, is available and can be set to `False` to override the default behavior - Configuration Documentation updated to mention this new configuration parameter - Names of all dependent objects are escaped before displaying in error messages when parent object deletion fails ### Use case - Our users trust NetBox to be a safe and secure place to store sensitive information about the actual and intended state of their networks - Many users need to include formatting, hyperlinks, or even arbitrary markup in the values of their system banners. - All users benefit from a system whose security posture defaults to protecting them from malicious content, which threat actors are very good at finding ways to inject ### Database changes None ### External dependencies None
adam added the type: feature label 2025-12-29 21:25:22 +01:00
adam closed this issue 2025-12-29 21:25:22 +01:00
Author
Owner

@minhquan202 commented on GitHub (Jul 18, 2024):

no bro, not fix

@minhquan202 commented on GitHub (Jul 18, 2024): no bro, not fix
Author
Owner

@jeremystretch commented on GitHub (Jul 25, 2024):

As has been discussed in previous conversations, these banners are intended to support raw HTML. Users do not have permission to set any of this content by default; only administrators may modify the content. This change is not needed.

@jeremystretch commented on GitHub (Jul 25, 2024): As has been discussed in previous conversations, these banners are intended to support raw HTML. Users do not have permission to set any of this content by default; only administrators may modify the content. This change is not needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9992