CVE-2018-25433 - Joomla JE Photo Gallery SQL Injection
Joomla Component JE Photo Gallery 1.1 contains an SQL injection vulnerability, tracked as CVE-2018-25433, allowing unauthenticated attackers to extract database information by injecting malicious SQL code through the categoryid parameter.
Joomla Component JE Photo Gallery version 1.1 is vulnerable to SQL injection, identified as CVE-2018-25433. This vulnerability allows unauthenticated attackers to extract sensitive database information. The attack involves injecting malicious SQL code through the categoryid parameter in HTTP GET requests. Successful exploitation enables attackers to execute arbitrary SQL queries, potentially gaining access to sensitive data, including usernames and password hashes stored in the Joomla database. This poses a significant risk to the confidentiality and integrity of affected Joomla installations.
Attack Chain
- An unauthenticated attacker identifies a Joomla website using JE Photo Gallery 1.1.
- The attacker crafts a malicious HTTP GET request targeting the
index.phpendpoint with thecom_jephotogallerycomponent. - The attacker injects SQL code into the
categoryidparameter of the GET request (e.g.,index.php?option=com_jephotogallery&view=category&categoryid=1' AND 1=1--). - The Joomla application processes the crafted request, and due to the SQL injection vulnerability, the injected SQL code is executed against the database.
- The attacker may use SQL injection techniques to extract data from database tables containing usernames, password hashes, and other sensitive information.
- The extracted data is returned to the attacker through the HTTP response.
- The attacker analyzes the extracted data to identify valid user credentials.
Impact
Successful exploitation of this SQL injection vulnerability (CVE-2018-25433) allows unauthenticated attackers to extract sensitive database information from vulnerable Joomla installations using JE Photo Gallery 1.1. This can lead to the compromise of user accounts, disclosure of sensitive data, and potential unauthorized access to the Joomla website’s administration panel. The vulnerability has a CVSS v3.1 score of 8.2, indicating a high severity.
Recommendation
- Apply the provided Sigma rule
Detect CVE-2018-25433 Exploitation - Joomla JE Photo Gallery SQL Injection Attemptto detect attempts to exploit this vulnerability by monitoring web server logs for suspiciouscategoryidparameter values. - Inspect web server logs for HTTP GET requests to
index.phpwith thecom_jephotogallerycomponent and thecategoryidparameter containing SQL injection attempts (e.g., SQL keywords, comments). - Implement input validation and sanitization for the
categoryidparameter in the JE Photo Gallery component to prevent SQL injection attacks. - Consider removing the vulnerable JE Photo Gallery component if an update is not available or feasible.
Detection coverage 1
Detect CVE-2018-25433 Exploitation - Joomla JE Photo Gallery SQL Injection Attempt
highDetects CVE-2018-25433 exploitation - SQL injection attempts in the categoryid parameter of the Joomla JE Photo Gallery component.
Detection queries are available on the platform. Get full rules →