eNdonesia Portal 8.7 SQL Injection Vulnerability (CVE-2018-25405)
eNdonesia Portal version 8.7 is vulnerable to SQL injection (CVE-2018-25405), allowing unauthenticated attackers to execute arbitrary SQL queries through the artid, cid, did, contid, and aboutid parameters in mod.php, potentially leading to the extraction of sensitive database information.
eNdonesia Portal 8.7 is susceptible to SQL injection vulnerabilities. Disclosed in 2018 and identified as CVE-2018-25405, these flaws allow unauthenticated attackers to inject malicious SQL code into vulnerable parameters. The affected parameters, artid, cid, did, contid, and aboutid, are located within the mod.php script. Successful exploitation could lead to unauthorized access to sensitive database information, including usernames, database names, and version details. Defenders should implement appropriate input validation and sanitization to mitigate this risk.
Attack Chain
- The attacker identifies an eNdonesia Portal 8.7 instance running a vulnerable version of the software.
- The attacker crafts a malicious HTTP request targeting the
mod.phpscript. - The attacker injects SQL code into one of the vulnerable parameters:
artid,cid,did,contid, oraboutid. For example,mod.php?artid=1'+UNION+SELECT+version()--. - The web server processes the request and executes the injected SQL query against the database.
- The database server executes the malicious SQL query due to the lack of proper input validation and sanitization in the
mod.phpscript. - The database server returns the results of the injected SQL query to the web server. This may include sensitive information such as database version, user credentials, or other application data.
- The web server includes the results of the SQL query in the HTTP response to the attacker.
- The attacker parses the HTTP response to extract the sensitive information obtained from the database. The attacker may use this information for further malicious activities.
Impact
Successful exploitation of this SQL injection vulnerability can allow attackers to extract sensitive information from the eNdonesia Portal database. This may include usernames, passwords, database names, version details, and other confidential data. The extracted information can be used for subsequent attacks, such as account compromise, data theft, or further exploitation of the system.
Recommendation
- Deploy the Sigma rule to detect SQL injection attempts targeting the vulnerable parameters in
mod.php. - Apply input validation and sanitization to all user-supplied input, especially the
artid,cid,did,contid, andaboutidparameters inmod.php, to prevent SQL injection attacks. - Ensure that the eNdonesia Portal installation is updated to a version that addresses CVE-2018-25405.
- Monitor web server logs for suspicious activity, such as unusual HTTP requests or database errors, to identify potential SQL injection attempts.
Detection coverage 2
Detects CVE-2018-25405 Exploitation — eNdonesia Portal SQL Injection Attempt
highDetects CVE-2018-25405 exploitation — SQL injection attempts in eNdonesia Portal 8.7 through vulnerable parameters in mod.php
Detects CVE-2018-25405 Exploitation — eNdonesia Portal SQL Injection Error Responses
mediumDetects CVE-2018-25405 exploitation — HTTP error responses indicative of SQL injection attempts in eNdonesia Portal 8.7
Detection queries are available on the platform. Get full rules →