VYPR
Unrated severityNVD Advisory· Published Nov 3, 2022· Updated May 5, 2025

CVE-2022-42746

CVE-2022-42746

Description

CandidATS version 3.0.0 on 'indexFile' of the 'ajax.php' resource, allows an external attacker to steal the cookie of arbitrary users. This is possible because the application application does not properly validate user input against XSS attacks.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CandidATS 3.0.0 fails to validate the 'indexFile' parameter in ajax.php, allowing reflected XSS to steal cookies.

Vulnerability

CandidATS version 3.0.0 contains a reflected cross-site scripting (XSS) vulnerability in the indexFile parameter of the ajax.php resource. The application does not properly validate user input before reflecting it in the response, allowing an attacker to inject arbitrary JavaScript. This issue is tracked as CVE-2022-42746, and related XSS vulnerabilities exist in other parameters (sortBy, sortDirection, page) [1][2].

Exploitation

An unauthenticated remote attacker can craft a malicious URL containing JavaScript in the indexFile parameter. The proof-of-concept link is:

https://demo.candidats.net/ajax.php?f=getPipelineJobOrder&joborderID=50&page=0&entriesPerPage=15&sortBy=dateCreatedInt&sortDirection=desc&indexFile=index.php%27);%22%3E%3Cscript%3Ealert(document.cookie);%3C/script%3E%3C!--&isPopup=0

To trigger the exploit, the attacker must lure a logged-in administrator into clicking the malicious link. The injected script executes in the victim's browser session, allowing cookie theft [2].

Impact

Successful exploitation enables an attacker to steal the session cookie of an authenticated administrator. With the stolen cookie, the attacker can impersonate the administrator and perform an account takeover, potentially gaining full control over the CandidATS instance and its data. The CVSS v3.1 score is 8.3 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), indicating high impact on confidentiality, integrity, and availability [2].

Mitigation

As of the public disclosure date (October 26, 2022), no patch was available for this vulnerability. Administrators are advised to apply input validation and output encoding to the affected indexFile parameter in ajax.php, or implement a web application firewall (WAF) rule to block malicious payloads. CandidATS 3.0.0 is the only affected version mentioned in the references [2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.