Skip to main content
CVE Vulnerability Database

CVE-2024-2587: Amss++ SQL Injection Vulnerability

CVE-2024-2587 is a SQL injection vulnerability in Amss++ 4.31 affecting the bookdetail_khet_person.php module. Attackers can execute malicious SQL queries to extract database information. This article covers technical details, impact, and mitigation.

Published:

CVE-2024-2587 Overview

CVE-2024-2587 is a SQL injection vulnerability affecting AMSS++ version 4.31. The flaw resides in the /amssplus/modules/book/main/bookdetail_khet_person.php endpoint, where multiple parameters fail to sanitize user-supplied input before incorporating it into SQL queries. A remote, unauthenticated attacker can submit crafted SQL payloads to extract arbitrary data from the backend database. The issue is classified under [CWE-89] Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Remote unauthenticated attackers can exfiltrate the entire database content stored by AMSS++ 4.31 through SQL injection in the bookdetail_khet_person.php script.

Affected Products

  • AMSS++ version 4.31
  • Component: /amssplus/modules/book/main/bookdetail_khet_person.php
  • Vendor: amss++_project

Discovery Timeline

  • 2024-03-18 - CVE-2024-2587 published to NVD
  • 2025-04-16 - Last updated in NVD database

Technical Details for CVE-2024-2587

Vulnerability Analysis

The vulnerability exists in the bookdetail_khet_person.php script within the AMSS++ application. The script accepts multiple HTTP parameters and concatenates them directly into SQL statements without parameterization or input validation. This allows attackers to break out of the intended query context and inject arbitrary SQL syntax.

The attack surface is exposed over the network and requires no authentication or user interaction. Because the impact is restricted to confidentiality, the primary risk involves disclosure of stored records rather than data modification or service disruption. Refer to the Incibe CERT Notice on Vulnerabilities for the original advisory.

Root Cause

The root cause is improper neutralization of special elements used in SQL commands [CWE-89]. The affected PHP script builds SQL queries through string concatenation using request parameters that are never sanitized, escaped, or bound to prepared statements. Standard SQL injection metacharacters such as single quotes and UNION keywords pass through unfiltered.

Attack Vector

An attacker sends an HTTP request to /amssplus/modules/book/main/bookdetail_khet_person.php with malicious SQL payloads supplied through one of the vulnerable parameters. Techniques such as UNION-based extraction, boolean-based blind injection, or time-based blind injection can be used to enumerate database schemas and dump records. No credentials or prior session are needed to reach the vulnerable code path.

No public proof-of-concept code has been verified for this vulnerability. See the Incibe CERT Notice on Vulnerabilities for additional technical context.

Detection Methods for CVE-2024-2587

Indicators of Compromise

  • HTTP requests targeting /amssplus/modules/book/main/bookdetail_khet_person.php containing SQL metacharacters such as ', --, UNION SELECT, or SLEEP(
  • Unusual outbound responses with large payload sizes from the AMSS++ web server following parameterized GET or POST requests
  • Web server access logs showing repeated requests to the affected endpoint with varying parameter values consistent with automated injection tooling

Detection Strategies

  • Deploy web application firewall (WAF) rules that inspect parameters submitted to bookdetail_khet_person.php for SQL injection signatures
  • Enable database query logging and alert on unexpected UNION, INFORMATION_SCHEMA, or SLEEP statements originating from the AMSS++ application user
  • Correlate web access logs with database error logs to identify reconnaissance behavior characteristic of blind SQL injection

Monitoring Recommendations

  • Monitor HTTP traffic volume and parameter entropy for the affected URL to detect automated scanners such as sqlmap
  • Track authentication-less access patterns to internal modules of AMSS++ from unexpected source IP ranges
  • Aggregate web server and database telemetry into a centralized log platform to enable cross-source detection of injection chains

How to Mitigate CVE-2024-2587

Immediate Actions Required

  • Restrict network exposure of AMSS++ 4.31 by placing the application behind authenticated access controls or a VPN until a patch is applied
  • Deploy WAF signatures that block SQL injection payloads targeting /amssplus/modules/book/main/bookdetail_khet_person.php
  • Audit database accounts used by AMSS++ and enforce least privilege so the web application cannot read tables outside its required scope

Patch Information

No vendor patch information is referenced in the NVD entry at the time of writing. Administrators should consult the Incibe CERT Notice on Vulnerabilities and contact the AMSS++ vendor for remediation guidance or upgrade paths beyond version 4.31.

Workarounds

  • Block external access to the bookdetail_khet_person.php endpoint at the reverse proxy or WAF layer
  • Apply virtual patching rules that reject requests containing SQL metacharacters in parameters processed by the vulnerable script
  • Rotate database credentials used by the AMSS++ application after confirming no prior exploitation occurred

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.