A recent security vulnerability has been discovered in Appalti & Contratti 9.12.2, which is a web-based software suite for contract and procurement management. The vulnerability is identified as CVE-2022-44787 and is related to a Reflected Cross-Site Scripting (XSS) vulnerability. This vulnerability occurs when user input is not properly sanitized and reflected back into the HTML source code. An attacker can exploit this to execute malicious JavaScript within the victim's browser, potentially leading to data theft, session hijacking, or other severe consequences.

Exploit Details

The CVE-2022-44787 vulnerability is present in the idPagina parameter of Appalti & Contratti 9.12.2 web applications. The server response reflects the idPagina parameter without performing any HTML encoding. Due to this lack of encoding, a malicious user could send a crafted URL to the victim containing a payload that executes JavaScript once the victim interacts with the page. Specifically, the onmouseenter attribute is not sanitized, allowing an attacker to inject code that will execute when the victim's mouse pointer enters the affected area within the page.

Here's a simple example of the code snippet exploiting the Reflected XSS vulnerability

<a href="https://vulnerable.example.com/appalti-contratti?idPagina=123"; onmouseenter="javascript:alert('XSS')">Visit our site</a>

Upon hovering over the link, the malicious JavaScript code within the onmouseenter attribute is executed, triggering an alert that displays "XSS".

Original References

- CVE-2022-44787
- Appalti & Contratti 9.12.2 Reflected XSS Report


In order to mitigate this vulnerability and protect users from potential attacks, Appalti & Contratti administrators should take the following steps:

1. Update to the latest version of the Appalti & Contratti software suite, which contains a patch for CVE-2022-44787.
2. Implement input validation and proper output encoding to prevent injection of malicious code through user inputs.
3. Utilize Content Security Policy (CSP) headers to restrict JavaScript execution and mitigate the impact of potential XSS attacks.


The CVE-2022-44787 Reflected XSS vulnerability in Appalti & Contratti 9.12.2 poses a significant security risk. Proper input validation, output encoding, and additional security measures must be implemented to protect users from potential attacks. Always keep web applications updated and follow secure coding practices to minimize the risk of exposing vulnerabilities.


Published on: 11/21/2022 23:15:00 UTC
Last modified on: 11/23/2022 16:02:00 UTC