Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-42697: n/a

0
Medium
VulnerabilityCVE-2024-42697cvecve-2024-42697
Published: Fri Sep 20 2024 (09/20/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

Cross Site Scripting vulnerability in Leotheme Leo Product Search Module v.2.1.6 and earlier allows a remote attacker to execute arbitrary code via the q parameter of the product search function.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 07:28:05 UTC

Technical Analysis

CVE-2024-42697 is a reflected Cross Site Scripting (XSS) vulnerability affecting the Leotheme Leo Product Search Module version 2.1.6 and earlier. This module is commonly used in PrestaShop-based e-commerce websites to enhance product search functionality. The vulnerability arises from insufficient input sanitization of the 'q' parameter, which is used to capture user search queries. An attacker can craft a malicious URL containing JavaScript code within the 'q' parameter, which, when visited by a user, causes the browser to execute the injected script in the context of the vulnerable website. This can lead to session hijacking, theft of cookies, defacement, or redirection to malicious sites. The attack vector is remote and requires no authentication, but user interaction is necessary to trigger the payload. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation). Although no public exploits have been reported, the medium CVSS score (6.1) reflects the moderate risk due to the ease of exploitation and potential impact on confidentiality and integrity. The scope is limited to websites using the affected module, and availability is not impacted. No official patches have been linked yet, so mitigation relies on input validation and user awareness.

Potential Impact

The primary impact of CVE-2024-42697 is on the confidentiality and integrity of affected e-commerce websites and their users. Successful exploitation can allow attackers to steal session cookies, enabling account takeover or unauthorized actions on behalf of users. It can also facilitate phishing attacks by redirecting users to malicious sites or displaying fraudulent content. For organizations, this can lead to reputational damage, loss of customer trust, and potential financial losses. Since the vulnerability does not affect availability, denial-of-service is not a concern. However, the widespread use of PrestaShop and related modules in small to medium-sized businesses worldwide means a broad attack surface. Attackers may target high-traffic e-commerce sites to maximize impact. The lack of known exploits currently reduces immediate risk but does not eliminate the threat, especially as proof-of-concept exploits may emerge.

Mitigation Recommendations

To mitigate CVE-2024-42697, organizations should first verify if they are using Leotheme Leo Product Search Module version 2.1.6 or earlier. If so, they should monitor for official patches or updates from the vendor and apply them promptly once available. In the absence of patches, implement strict input validation and output encoding on the 'q' parameter to neutralize malicious scripts. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts. Additionally, enable HTTP-only and Secure flags on cookies to reduce the risk of session theft. Educate users to avoid clicking suspicious links and consider deploying Web Application Firewalls (WAFs) with custom rules to detect and block XSS payloads targeting the search parameter. Regularly audit and test the web application for XSS vulnerabilities using automated scanners and manual penetration testing. Finally, maintain robust incident response plans to quickly address any exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-08-05T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6cc9b7ef31ef0b5690cb

Added to database: 2/25/2026, 9:42:33 PM

Last enriched: 2/26/2026, 7:28:05 AM

Last updated: 4/12/2026, 5:06:06 PM

Views: 16

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses