CVE-2012-0974: XSS in OSClass getParam Function (Params.php)
- Vendor
- Juan Ramon
Multiple cross-site scripting (XSS) vulnerabilities exist in OSClass before version 2.3.5, specifically in the getParam function within oc-includes/osclass/core/Params.php. The vulnerabilities allow remote attackers to inject arbitrary web script or HTML via the sCity, sPattern, sPriceMax, and sPriceMin parameters in a search action to index.php. The vulnerable function does not properly sanitize user-supplied input before reflecting it in the output, leading to XSS.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary JavaScript in the context of the victim's browser, potentially leading to session hijacking, credential theft, or other attacks leveraging the user's authenticated session.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, implement input validation and output encoding for the affected parameters (sCity, sPattern, sPriceMax, sPriceMin) in index.php and ensure that user-supplied data is properly sanitized before being rendered in the browser.
Remediation
Patch, then assume compromise.
Upgrade OSClass to version 2.3.5 or later, where the input validation and output encoding issues in the getParam function have been addressed.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2012-0974 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2012-0974 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2012-0974?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2012-0974.
- Is there a patch for CVE-2012-0974?
- Upgrade OSClass to version 2.3.5 or later, where the input validation and output encoding issues in the getParam function have been addressed.
- What products are affected by CVE-2012-0974?
- Juan Ramon Osclass.
- How severe is CVE-2012-0974?
- CVE-2012-0974 has a CVSS v2 score of 4.3 (Medium) and an EPSS score of 3.5% (90th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.