Skip to main content
Vulnerability Database/CVE-2015-20128

CVE-2015-20128: FooSun DotNetCMS SQL Injection Vulnerability

CVE-2015-20128 is an SQL injection flaw in FooSun DotNetCMS that allows unauthenticated attackers to manipulate database queries through the CityId parameter. This article covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2015-20128 Overview

CVE-2015-20128 is a SQL injection vulnerability affecting FooSun DotNetCMS versions 1.0 and 2.0. The flaw resides in the /user/City_ajax.aspx endpoint, where the CityId parameter is concatenated into a MSSQL query against the sys_City table without sanitization. Unauthenticated attackers can issue GET requests containing UNION SELECT payloads to extract arbitrary data from the backend database. The weakness is classified under [CWE-89] Improper Neutralization of Special Elements used in an SQL Command. Exploitation activity was first observed by the Shadowserver Foundation on 2023-10-14, confirming in-the-wild abuse of this legacy CMS.

Critical Impact

Unauthenticated remote attackers can extract sensitive database contents from FooSun DotNetCMS deployments through a single crafted HTTP GET request.

Affected Products

  • FooSun DotNetCMS 1.0
  • FooSun DotNetCMS 2.0
  • Deployments exposing /user/City_ajax.aspx to untrusted networks

Discovery Timeline

  • 2023-10-14 - Exploitation activity first observed in the wild by the Shadowserver Foundation
  • 2026-10-20 - CVE-2015-20128 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2015-20128

Vulnerability Analysis

The vulnerability lives in the City_ajax.aspx handler of FooSun DotNetCMS. The handler accepts a CityId query parameter and injects it directly into a MSSQL statement that queries the sys_City table. Because the parameter is not validated or parameterized, attackers can append arbitrary SQL fragments, including UNION SELECT clauses, to alter the final query. The vulnerable endpoint does not require authentication, so any network-reachable instance is exposed. Successful exploitation yields confidentiality impact against the database, as reflected in the CVSS vector (VC:H).

Root Cause

The root cause is improper neutralization of SQL metacharacters supplied through user-controlled input [CWE-89]. The application constructs its MSSQL query by string concatenation rather than using parameterized queries or stored procedures. No input validation enforces that CityId is numeric before it reaches the data access layer.

Attack Vector

Exploitation requires only network access to the vulnerable web application. An attacker sends an HTTP GET request to /user/City_ajax.aspx with a crafted CityId value containing a UNION SELECT payload. The injected SQL executes within the context of the sys_City query, allowing the attacker to append columns and tables selected from elsewhere in the MSSQL schema. The response body returns the extracted values, enabling enumeration of database structure, credential tables, and application secrets.

See the VulnCheck Advisory and the Nuclei detection template for the request structure used by public scanners.

Detection Methods for CVE-2015-20128

Indicators of Compromise

  • Inbound GET requests to /user/City_ajax.aspx containing the strings UNION, SELECT, --, or URL-encoded equivalents in the CityId parameter.
  • HTTP 200 responses from City_ajax.aspx with payload sizes inconsistent with normal city lookup responses.
  • MSSQL error messages referencing sys_City surfaced in web server logs or application traces.
  • Source IPs flagged in Shadowserver Foundation scanning telemetry for FooSun DotNetCMS exploitation.

Detection Strategies

  • Deploy the public Nuclei template to identify vulnerable instances before attackers do.
  • Create WAF signatures that match SQL keywords in the CityId parameter and alert on hits.
  • Correlate web access logs with database audit logs to detect anomalous queries against sys_City originating from the web tier.

Monitoring Recommendations

  • Enable MSSQL audit logging for sys_City and other legacy CMS tables.
  • Monitor IIS and ASP.NET logs for repeated 500-series errors on City_ajax.aspx, which can indicate payload tuning by an attacker.
  • Track outbound data volume from the application server to identify bulk extraction attempts.

How to Mitigate CVE-2015-20128

Immediate Actions Required

  • Restrict network access to /user/City_ajax.aspx using an IP allowlist, VPN, or authentication proxy.
  • Place the FooSun DotNetCMS application behind a WAF with rules that block UNION, SELECT, and comment sequences on the CityId parameter.
  • Audit MSSQL logs and user tables for signs of prior extraction and rotate any credentials that may have been exposed.
  • Plan migration away from FooSun DotNetCMS, which is no longer actively maintained.

Patch Information

No vendor patch is available. FooSun DotNetCMS 1.0 and 2.0 are legacy versions and the vendor site is only accessible via archived snapshots such as the Web Archive FooSun Snapshot. Operators should treat affected deployments as end-of-life and remove or replace them.

Workarounds

  • Rewrite the vulnerable data access logic to use parameterized MSSQL queries or SqlCommand with typed parameters for CityId.
  • Enforce server-side validation that CityId is strictly numeric before passing it to the database layer.
  • Run the application pool and MSSQL account under least-privilege principals that cannot read sensitive tables outside sys_City.
  • Isolate the web server in a segmented network and block unexpected outbound connections to limit data exfiltration.

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.