Vulnerability Description: Unrestricted File Upload
Software Version: NOKIA IMPACT < 18A
NIST: https://nvd.nist.gov/vuln/detail/CVE-2019-17403
CVSv3: 8.8
Severity: High
Credits: Francesco Giordano, Alessandro Sabetta, Massimiliano Brolli
An authenticated user with access to the CDP component of NOKIA IMPACT is able to upload files with arbitrary extensions.
The deviceImport function parses every file received with a csv_parse function. We managed to load a non-csv file adding at the beginning of it the following line followed by our payload.
We uploaded PHP Webshell in a path served by Apache (in our case /opt/[redacted]/5/) and got code execution as apache user.