CVE-2023-40850

7.5 HIGH

📋 TL;DR

CVE-2023-40850 is an incorrect access control vulnerability in Netentsec NS-ASG 6.3 that allows attackers to leak sensitive files from the application security gateway's website source code. This affects organizations using Netentsec NS-ASG 6.3 application security gateways, potentially exposing configuration files, credentials, or other sensitive data.

💻 Affected Systems

Products:
  • Netentsec NS-ASG
Versions: 6.3
Operating Systems: Unknown
Default Config Vulnerable: ⚠️ Yes
Notes: Specifically affects the website source code backup functionality of the application security gateway.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers obtain administrative credentials, configuration files, or sensitive data leading to full system compromise, lateral movement, or data exfiltration.

🟠

Likely Case

Unauthenticated attackers access sensitive files containing configuration details, potentially enabling further attacks or reconnaissance.

🟢

If Mitigated

With proper access controls and network segmentation, impact is limited to information disclosure without system compromise.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Public GitHub repository contains details about the file leak vulnerability, making exploitation straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

Check Netentsec vendor website for security updates or contact vendor support for patch information.

🔧 Temporary Workarounds

Restrict Access to Backup Files

all

Implement access controls to prevent unauthorized access to website source code backup files.

Network Segmentation

all

Isolate NS-ASG devices from untrusted networks and implement strict firewall rules.

🧯 If You Can't Patch

  • Implement web application firewall rules to block access to backup file paths
  • Monitor and alert on unauthorized access attempts to sensitive file paths

🔍 How to Verify

Check if Vulnerable:

Attempt to access known backup file paths on the NS-ASG web interface (e.g., /bak/ directories or similar backup locations).

Check Version:

Check NS-ASG administration interface or documentation for version information.

Verify Fix Applied:

Verify that backup files are no longer accessible without proper authentication and that access controls are properly enforced.

📡 Detection & Monitoring

Log Indicators:

  • Unauthorized access attempts to backup file paths
  • HTTP requests to /bak/ or similar backup directories

Network Indicators:

  • Unusual file download patterns from NS-ASG web interface

SIEM Query:

source="ns-asg" AND (url="*/bak/*" OR url="*backup*" OR status=200 AND file_type="source_code")

🔗 References

📤 Share & Export