/

CVE-2019-25765

Severity:

HIGH RISK

(7.5)

SQL Injection (CWE-89) in ASP-CMS commentList.asp Endpoint

CVE-2019-25765

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized Database Access and Sensitive Data Exposure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

ASP-CMS contains a SQL injection vulnerability in the commentList.asp endpoint because the id parameter is incorporated into database queries without sufficient protection. An unauthenticated remote attacker may manipulate this parameter to bypass keyword filtering and retrieve sensitive database contents.

Affected context

The vulnerability occurs in ASP-CMS deployments that expose the commentList.asp comment-listing endpoint and process the id value from GET requests in database queries. Risk is increased where the application relies on keyword blocklists instead of parameterized queries and where the endpoint is reachable without authentication.

Exploit preconditions

  • Attack surface: Network-accessible HTTP GET request to the commentList.asp endpoint
  • Required access: No authentication may be required
  • Trigger point: Processing of the id parameter during comment-list retrieval
  • Why exploitation is possible: User-controlled input can influence SQL query construction, while keyword filtering may be bypassed through obfuscated input

Why this happens

The underlying issue is improper separation between untrusted request data and SQL command structure. When the id parameter is concatenated into a database query or insufficiently validated before use, an attacker can alter the intended query logic. This behavior maps to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'); keyword blocklists do not provide reliable protection because SQL syntax can often be represented in alternative forms.

Potential impact

  • An attacker may retrieve sensitive database contents.
  • The vulnerability could expose user, comment, configuration, or application records.
  • An attacker may be able to alter or delete database information, depending on query permissions.
  • Database compromise could support further attacks against the application or connected systems.

General mitigation guidance

Mitigation generally focuses on removing SQL construction from untrusted input and reducing database privileges.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations.
  • Apply strict allowlist validation and type constraints to identifier parameters.
  • Avoid relying on keyword blocklists as a primary security control.
  • Run the application with a database account limited to the required tables and operations.
  • Ensure database errors do not disclose query details or internal schema information.
  • Add authorization checks where comment or record access is intended to be restricted.

How teams detect issues like this

Detection approaches may include:

  • Static analysis for string concatenation or interpolation of request parameters into SQL statements.
  • Code review checks for database calls that receive raw GET, POST, or cookie values.
  • Dynamic testing with safe SQL injection detection techniques against exposed parameters.
  • Web application firewall or gateway policies that identify anomalous query-manipulation patterns, while treating them as supplementary controls.
  • Database monitoring for unusual query structures, unexpected read volume, or access to sensitive tables.

Sources

SourceLink
github.comgithub.com/projectdiscovery/nuclei-templates/issues/7968
web.archive.orgweb.archive.org/web/20201001011935/https://www.safeinfo.me/2019/07/22/aspcms-lou-dong-ji-he.html
web.archive.orgweb.archive.org/web/20220425041152/https://asp-cms.sourceforge.net/
ddpoc.comddpoc.com/DVB-2021-821.html
vulncheck.comvulncheck.com/advisories/asp-cms-sql-injection-via-commentlist-asp-id-parameter

Frequently asked

questions

Yes. The affected endpoint is network-accessible, and exploitation may be possible through crafted GET requests without local access.

The described issue permits unauthenticated access, so an attacker may only need network reachability to the vulnerable endpoint.

Use parameterized database queries, validate the id value against its expected type and range, and avoid treating keyword filtering as a SQL injection defense.

Combine secure database APIs, least-privilege database accounts, code review rules for query construction, and security testing of all request parameters that reach database operations.

Find out what's already
exploitable in your codebase.