Headline
CVE-2023-48310: Ability to DoS the testing infrastructure by overwriting files
TestingPlatform is a testing platform for Internet Security Standards. Prior to version 2.1.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. These files are created as root. If the file exists, the existing file is being rendered useless. This can result in denial of service. Version 2.1.1 contains a patch for this issue.
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