PeTeReport 0.5 - Stored XSS (Attack Tree)

4.8

Medium

Discovered by 

Oscar Uribe

Offensive Team, Fluid Attacks

Summary

Full name

PeTeReport 0.5 - Stored XSS (Attack Tree)

Code name

State

Public

Release date

Feb 23, 2022

Affected product

PeTeReport

Affected version(s)

Version 0.5

Fixed version(s)

Version 0.7

Vulnerability name

Stored cross-site scripting (XSS)

Remotely exploitable

Yes

CVSS v3.1 vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

CVSS v3.1 base score

4.8

Exploit available

No

Description

PeteReport Version 0.5 allows an authenticated admin user to inject persistent javascript code while adding an 'Attack Tree' by modifying the svg_file parameter.

Proof of Concept

Steps to reproduce

  1. Create a new Report.

  2. Create a new Finding for the Report.

  3. Go to 'Reports' > 'All Reports'.

  4. Click on 'View' in the last created record.

  5. Go to 'Attack Trees'.

  6. Click on 'Add Attack Tree'.

  7. Select your Finding and click on 'Save and Finish'.

  8. Intercept the request and insert javascript code inside the svg_file parameter.

     <script type="text/javascript">
     alert("XSS");
     </script>
  9. If a user visits the attack tree the javascript code will be rendered.

System Information

  • Version: PeteReport Version 0.5.

  • Operating System: Docker.

  • Web Server: nginx.

Exploit

There is no exploit for the vulnerability but can be manually exploited.

Mitigation

An updated version of PeteReport is available at the vendor page.

References

Timeline

Vulnerability discovered

Feb 8, 2022

Vulnerability patched

Feb 9, 2022

Vendor contacted

Feb 8, 2022

Vendor replied

Feb 9, 2022

Public disclosure

Feb 23, 2022

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.