A HTML injection vulnerability exists in the file upload functionality of Cacti <= 1.2.29. When a file with an invalid format is uploaded, the application reflects the submitted filename back into an error popup without proper sanitization. As a result, attackers can inject arbitrary HTML elements (e.g., <h1>, <b>, <svg>) into the rendered page.
- Login to the application.
- Navigate to the file upload interface.
- Upload a file with invalid content (File content may be empty) and provide the following file name:
HACK.xml