CVE-2024-6471 Overview
CVE-2024-6471 is a SQL injection vulnerability in SourceCodester Online Tours & Travels Management System 1.0. The flaw resides in the sms_setting.php file, where the uname parameter is passed to a database query without proper sanitization. Remote attackers can manipulate this parameter to inject arbitrary SQL statements. The issue is tracked under VulDB identifier VDB-270279 and the exploit has been publicly disclosed. The weakness maps to [CWE-89] Improper Neutralization of Special Elements Used in an SQL Command.
Critical Impact
Remote attackers with low privileges can inject SQL through the uname parameter in sms_setting.php, potentially exposing or modifying application data stored in the backend database.
Affected Products
- Mayurik Online Tours & Travels Management System 1.0
- SourceCodester distribution of Online Tours & Travels Management System 1.0
- Deployments exposing sms_setting.php to untrusted networks
Discovery Timeline
- 2024-07-03 - CVE-2024-6471 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-6471
Vulnerability Analysis
The vulnerability exists in the sms_setting.php script of the Online Tours & Travels Management System. The application accepts a uname argument from user-controlled input and concatenates it into a SQL statement without parameterization or input escaping. Attackers can submit crafted values that break out of the intended query context and append additional SQL clauses. Successful exploitation permits reading, modifying, or deleting records the web application account can access. Because the attack is remote and requires only low-level authentication context, the vulnerability is well-suited to opportunistic scanning and automated exploitation.
Root Cause
The root cause is unsafe handling of the uname HTTP parameter inside sms_setting.php. The application constructs SQL queries through direct string concatenation rather than using prepared statements or parameterized queries. Any special SQL metacharacters or logic operators submitted via uname are interpreted by the database engine.
Attack Vector
Exploitation occurs over the network by issuing a crafted HTTP request to sms_setting.php with a malicious uname value. Typical SQL injection payloads use boolean-based, union-based, or time-based techniques to extract data such as administrative credentials, customer records, or booking information. The public disclosure noted in the VulDB CVE Analysis #270279 and the CSDN Blog Post on Security provides technical detail on the injection point.
// No verified proof-of-concept code is included. Refer to the linked VulDB and CSDN references for disclosed technical detail.
Detection Methods for CVE-2024-6471
Indicators of Compromise
- HTTP requests to sms_setting.php containing SQL metacharacters such as single quotes, UNION SELECT, SLEEP(, or comment sequences (--, #) inside the uname parameter.
- Unusual database error messages returned to clients or logged by the application when accessing sms_setting.php.
- Unexpected outbound queries or long-running database sessions originating from the web application account.
Detection Strategies
- Deploy a Web Application Firewall (WAF) rule that inspects the uname parameter for SQL injection patterns and blocks non-alphanumeric input.
- Enable database query logging and alert on queries generated from sms_setting.php that contain tautologies or union operators.
- Correlate web server access logs with database audit logs to identify anomalous query volumes tied to a single client IP.
Monitoring Recommendations
- Monitor authentication logs for enumeration or brute-force patterns preceding SQL injection attempts.
- Track HTTP 500 responses generated by sms_setting.php, which often indicate injection probing.
- Alert on any modification to administrative tables or unexpected account creation in the Tours & Travels database.
How to Mitigate CVE-2024-6471
Immediate Actions Required
- Restrict network access to the Online Tours & Travels Management System 1.0 administrative interface until a fix is in place.
- Apply input validation on the uname parameter, rejecting values containing SQL metacharacters or exceeding expected length.
- Rotate database credentials and review the web application service account for least-privilege configuration.
Patch Information
No vendor patch has been published in the referenced advisories at the time of NVD publication. Organizations running Mayurik Online Tours & Travels Management System 1.0 should track the VulDB Entry #270279 for updates and consider retiring or replacing this codebase if a fix is not released.
Workarounds
- Place the application behind a WAF with signatures for SQL injection targeting the uname parameter.
- Refactor sms_setting.php to use prepared statements or parameterized queries via PDO or mysqli with bound parameters.
- Enforce database-level permissions so the web application account cannot read or modify unrelated tables.
- Disable public exposure of sms_setting.php if the endpoint is not required for production functionality.
# Example WAF rule concept (ModSecurity)
SecRule ARGS:uname "@rx (?i)(union(\s|/\*.*\*/)+select|sleep\s*\(|--|;|')" \
"id:1006471,phase:2,deny,status:403,msg:'Possible SQLi in sms_setting.php uname parameter (CVE-2024-6471)'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

