CVE-2024-30858

9.8 CRITICAL

📋 TL;DR

This vulnerability allows attackers to execute arbitrary SQL commands through the /admin/edit_fire_wall.php endpoint in Netentsec NS-ASG 6.3. Successful exploitation could lead to data theft, authentication bypass, or complete system compromise. Organizations using NS-ASG 6.3 firewall appliances are affected.

💻 Affected Systems

Products:
  • Netentsec NS-ASG
Versions: Version 6.3
Operating Systems: Appliance-based (likely Linux-based)
Default Config Vulnerable: ⚠️ Yes
Notes: Requires administrative interface access; default configurations likely expose the vulnerable endpoint.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system takeover, data exfiltration, lateral movement to internal networks, and persistent backdoor installation.

🟠

Likely Case

Database compromise, credential theft, firewall rule manipulation, and potential administrative access.

🟢

If Mitigated

Limited impact with proper network segmentation, WAF protection, and input validation in place.

🌐 Internet-Facing: HIGH - The vulnerable endpoint is accessible via web interface, making internet-facing instances prime targets.
🏢 Internal Only: HIGH - Even internally accessible instances are vulnerable to insider threats or compromised internal systems.

🎯 Exploit Status

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

SQL injection vulnerabilities are well-understood and easily weaponized; public proof-of-concept exists in GitHub repositories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

1. Check Netentsec vendor website for security advisories
2. Apply any available patches for NS-ASG 6.3
3. Verify patch installation
4. Test functionality after patching

🔧 Temporary Workarounds

Web Application Firewall (WAF) Rules

all

Deploy WAF rules to block SQL injection patterns targeting /admin/edit_fire_wall.php

Network Access Control

linux

Restrict access to the administrative interface to trusted IP addresses only

iptables -A INPUT -p tcp --dport [admin_port] -s [trusted_ip] -j ACCEPT
iptables -A INPUT -p tcp --dport [admin_port] -j DROP

🧯 If You Can't Patch

  • Isolate the NS-ASG appliance from internet access and restrict internal access to necessary personnel only
  • Implement strict input validation and parameterized queries if custom code modifications are possible

🔍 How to Verify

Check if Vulnerable:

Test the /admin/edit_fire_wall.php endpoint with SQL injection payloads (ethical testing only with authorization)

Check Version:

Check appliance web interface or console for version information; typically displayed in admin panel

Verify Fix Applied:

Retest the vulnerable endpoint after applying mitigations to confirm SQL injection is no longer possible

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts followed by SQL payloads
  • Unexpected administrative actions from unusual IPs

Network Indicators:

  • HTTP requests to /admin/edit_fire_wall.php containing SQL keywords (SELECT, UNION, etc.)
  • Unusual outbound database connections from the appliance

SIEM Query:

source="web_logs" AND uri="/admin/edit_fire_wall.php" AND (payload="*SELECT*" OR payload="*UNION*" OR payload="*OR 1=1*")

🔗 References

📤 Share & Export