benjaminpsinclair / Netbox-CVE-2023-37625

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netbox-CVE-2023-37625

Description

A stored cross-site scripting (XSS) vulnerability in Netbox < 3.4.7 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Custom Link templates.

Technical Details

A stored Cross-Site Scripting vulnerability was discovered in the custom link function of the web application. This vulnerability is a result of insufficient sanitisation of the Link URL field.

To reproduce this vulnerability, the following steps may be performed:

  1. Navigate to Custom Links under the Other tab.
  2. Create a custom link with the following Link URL value, and assign the link to a model. In this example 'manufacturer' has been selected.:
{{'test1"</a><script>alert(1)</script>'}}
XSScustomlink
  1. Add a new model, in this example add a 'manufacturer' model.
addmanufacturer
  1. Open the newly created model as any authenticated user, and observer that the alert box has executed.
payload

About