CVE-2008-5805

HIGH7.5/ 10.0
Share:
Published: December 31, 2008 at 11:30 AM
Modified: April 9, 2025 at 12:30 AM
Source: cve@mitre.org

Vulnerability Description

SQL injection vulnerability in detail.php in DeltaScripts PHP Classifieds 7.5 and earlier allows remote attackers to execute arbitrary SQL commands via the siteid parameter, a different vector than CVE-2006-5828.

CVSS Metrics

Base Score
7.5
Severity
HIGH
Vector String
AV:N/AC:L/Au:N/C:P/I:P/A:P

Weaknesses (CWE)

Source: nvd@nist.gov

AI Security Analysis

01 // Technical Summary

DeltaScripts PHP Classifieds 7.5 and earlier are vulnerable to a critical SQL injection flaw, allowing attackers to remotely execute arbitrary SQL commands. This vulnerability, exploitable through the siteid parameter in detail.php, could lead to complete database compromise, including sensitive data theft and server takeover.

02 // Vulnerability Mechanism

Step 1: Payload Delivery: The attacker crafts a malicious URL containing a specially crafted SQL injection payload within the siteid parameter. This payload is designed to alter the intended SQL query executed by detail.php.

Step 2: Request Submission: The attacker sends the malicious URL to the vulnerable detail.php script.

Step 3: Query Execution: The detail.php script receives the request and, without proper sanitization, incorporates the attacker-supplied siteid value directly into an SQL query.

Step 4: SQL Injection: The database server interprets the injected SQL code as part of the query, executing the attacker's commands.

Step 5: Data Exfiltration/Manipulation: Depending on the payload, the attacker can then retrieve sensitive data (e.g., usernames, passwords), modify existing data, or potentially gain control of the database server.

03 // Deep Technical Analysis

The vulnerability stems from a failure to properly sanitize user-supplied input before incorporating it into SQL queries. Specifically, the detail.php script in DeltaScripts PHP Classifieds 7.5 and earlier directly uses the siteid parameter within a SQL query without adequate input validation or escaping. This allows an attacker to inject malicious SQL code, manipulating the query's logic to retrieve, modify, or delete data from the database. The root cause is a lack of parameterized queries or prepared statements, which would have prevented the injection of malicious SQL code. The vulnerability is a classic example of a SQL injection flaw, exploiting the lack of input validation.

CVE-2008-5805 - HIGH Severity (7.5) | Free CVE Database | 4nuxd