CVE-2024-30871

8.8 HIGH

📋 TL;DR

This vulnerability allows attackers to execute arbitrary SQL commands on Netentsec NS-ASG 6.3 devices via the /WebPages/applyhardware.php endpoint. Successful exploitation could lead to data theft, authentication bypass, or complete system compromise. Organizations using NS-ASG 6.3 are affected.

💻 Affected Systems

Products:
  • Netentsec NS-ASG
Versions: 6.3
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects the specific version mentioned; other versions may be vulnerable but unconfirmed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of the NS-ASG device, allowing attackers to steal all stored data, pivot to internal networks, and maintain persistent access.

🟠

Likely Case

Data exfiltration from the database, including user credentials, configuration data, and network information.

🟢

If Mitigated

Limited impact if proper input validation and WAF rules are in place, potentially only causing denial of service.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit details are publicly available in GitHub repositories, making this easy to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

Check Netentsec's official website or contact vendor support for patch availability and installation instructions.

🔧 Temporary Workarounds

Block Vulnerable Endpoint

linux

Restrict access to /WebPages/applyhardware.php via firewall or web server configuration.

iptables -A INPUT -p tcp --dport 80 -m string --string "/WebPages/applyhardware.php" --algo bm -j DROP
iptables -A INPUT -p tcp --dport 443 -m string --string "/WebPages/applyhardware.php" --algo bm -j DROP

Implement WAF Rules

all

Deploy web application firewall rules to detect and block SQL injection attempts.

🧯 If You Can't Patch

  • Isolate the NS-ASG device from the internet and restrict internal access to authorized users only.
  • Implement network segmentation to limit potential lateral movement if the device is compromised.

🔍 How to Verify

Check if Vulnerable:

Test the /WebPages/applyhardware.php endpoint with SQL injection payloads (e.g., single quote) and observe error responses or unexpected behavior.

Check Version:

Check the device web interface or CLI for version information; typically accessible via admin login.

Verify Fix Applied:

After applying mitigations, retest the endpoint to ensure SQL injection attempts are blocked or no longer produce vulnerable responses.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple failed login attempts or unusual query patterns to /WebPages/applyhardware.php

Network Indicators:

  • HTTP requests containing SQL keywords (e.g., UNION, SELECT, INSERT) targeting the vulnerable endpoint

SIEM Query:

source="web_logs" AND uri="/WebPages/applyhardware.php" AND (query CONTAINS "'" OR query CONTAINS "UNION" OR query CONTAINS "SELECT")

🔗 References

📤 Share & Export