Skip to content

Ability to DoS the testing infrastructure by overwriting files

Critical
cedricbonhomme published GHSA-9fhc-f3mr-w6h6 Nov 20, 2023

Package

testing/helpers.py

Affected versions

2.1.0

Patched versions

2.1.1

Description

Summary

(1) User input is not filtered correctly. Nmap options are accepted. In this particular case, the option to create log files is accepted in addition to a host name (and even without). A log file is created at the location specified.

(2) These files are created as root. If the file exists, the existing file is being rendered useless.

Details

see PoC

PoC

Harmless: Enter in the host/IP field: -oN newfile.txt
new file is created in merged/apps/

Harmfull: Enter in the host/IP field: -oN testing/views.py
file merged/apps/testing/views.py is overwritten by the log of nmap

Impact

Denial of service of the application

Severity

Critical

CVE ID

CVE-2023-48310

Weaknesses

No CWEs

Credits