CVE-2024-30868

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to execute arbitrary SQL commands through the /admin/add_getlogin.php endpoint in netentsec NS-ASG 6.3. Successful exploitation could lead to unauthorized data access, modification, or complete system compromise. Organizations using NS-ASG 6.3 are affected.

💻 Affected Systems

Products:
  • netentsec NS-ASG
Versions: 6.3
Operating Systems: Unknown - likely various Linux distributions
Default Config Vulnerable: ⚠️ Yes
Notes: Requires access to the /admin/add_getlogin.php endpoint

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system takeover, data exfiltration, credential theft, and lateral movement within the network

🟠

Likely Case

Unauthorized access to administrative functions, data manipulation, and potential privilege escalation

🟢

If Mitigated

Limited impact if proper input validation and WAF rules are in place, though risk remains

🌐 Internet-Facing: HIGH - Directly accessible endpoint with critical vulnerability
🏢 Internal Only: HIGH - Even internal access could lead to significant compromise

🎯 Exploit Status

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

Public proof-of-concept available, SQL injection is well-understood attack vector

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

1. Contact netentsec for official patch or guidance
2. Monitor vendor security advisories
3. Apply patch when available following vendor instructions

🔧 Temporary Workarounds

Block vulnerable endpoint

all

Restrict access to /admin/add_getlogin.php via web server configuration or firewall

# Apache: RewriteRule ^/admin/add_getlogin\.php$ - [F]
# Nginx: location ~ ^/admin/add_getlogin\.php$ { deny all; }

Implement WAF rules

all

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

# ModSecurity: SecRule ARGS "@detectSQLi" "id:1001,phase:2,deny"

🧯 If You Can't Patch

  • Isolate the NS-ASG system in a restricted network segment
  • Implement strict access controls and monitor all traffic to the vulnerable endpoint

🔍 How to Verify

Check if Vulnerable:

Test the /admin/add_getlogin.php endpoint with SQL injection payloads (e.g., ' OR '1'='1) and observe response

Check Version:

Check system documentation or web interface for version information

Verify Fix Applied:

Verify endpoint is no longer accessible or properly validates input against SQL injection

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed login attempts via add_getlogin.php
  • Unexpected database errors

Network Indicators:

  • HTTP requests to /admin/add_getlogin.php with SQL keywords
  • Unusual outbound database connections

SIEM Query:

source="web_logs" AND uri="/admin/add_getlogin.php" AND (payload="' OR" OR payload="UNION" OR payload="SELECT")

🔗 References

📤 Share & Export