CVE-2021-22529
Executive Summary
CVE-2021-22529 is a medium-severity information disclosure vulnerability in NetIQ Advance Authentication, a multi-factor authentication (MFA) solution. The flaw allows an unauthenticated attacker to leak sensitive server information, potentially aiding in further targeted attacks. The vulnerability affects all versions prior to 6.3.5.1. Despite a low EPSS score (0.0%), the lack of public exploit code and the nature of the information leak make it a risk for organizations using this product, as it could expose internal configurations or user data.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to an open-source package (NPM, PyPI, Go, Ruby). It affects a proprietary enterprise software product from NetIQ (now part of Micro Focus). Therefore, supply chain package security considerations are not directly applicable, but organizations should verify the integrity of the NetIQ software distribution channels.
CVSS Breakdown & Threat Level
- CVSS Score: 6.3 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Attack Vector (AV): Network – The vulnerability can be exploited remotely.
- Attack Complexity (AC): Low – No special conditions are required.
- Privileges Required (PR): None – No authentication needed.
- User Interaction (UI): None – No user action required.
- Scope (S): Unchanged – The exploit does not affect other components.
- Confidentiality (C): Low – Sensitive information is leaked.
- Integrity (I): Low – Potential for minor data manipulation.
- Availability (A): Low – Potential for minor service disruption.
Threat Level: Medium. While the CVSS score is moderate, the information leak could be used to pivot to more critical systems. The lack of public exploits reduces immediate risk, but internal threat actors or targeted attacks remain a concern.
Deep Dive & Mechanics
The vulnerability resides in the NetIQ Advance Authentication server, which handles authentication requests and manages user sessions. The flaw is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The exact mechanism is not publicly detailed, but it likely involves an API endpoint or error handling routine that inadvertently returns internal server details, such as:
- Server version and build numbers
- Internal IP addresses or hostnames
- Configuration file paths
- Database connection strings (potentially)
- Stack traces or debug information
This information can be used by an attacker to:
- Identify the exact software version and plan targeted exploits.
- Map the internal network topology.
- Craft more sophisticated attacks against other services.
The vulnerability is triggered by sending a specially crafted request to the authentication server without authentication. The server responds with sensitive data in the HTTP response body or headers.
Vulnerable vs. Patched Code
Since the exact code is proprietary, we can infer the fix based on typical remediation for information disclosure vulnerabilities.
Vulnerable Code (Conceptual):
# Example of vulnerable error handling
def handle_request(request):
try:
# Process authentication
result = authenticate(request)
return result
except Exception as e:
# Leaks full stack trace and server info
return {"error": str(e), "traceback": traceback.format_exc()}
Patched Code (Conceptual):
# Patched version with sanitized error messages
def handle_request(request):
try:
result = authenticate(request)
return result
except Exception as e:
# Log the error internally, return generic message
log_error(e)
return {"error": "An internal error occurred. Please contact support."}
The patch likely involves:
- Removing verbose error messages from production responses.
- Implementing proper input validation and output encoding.
- Adding access controls to sensitive endpoints.
Exploitation & Lab Setup
Red Team (Offensive)
Lab Setup:
- Deploy a vulnerable instance of NetIQ Advance Authentication (version < 6.3.5.1) in an isolated environment.
- Use a tool like
curlorBurp Suiteto interact with the server.
Exploitation Steps:
- Identify the target server (e.g.,
https://target:8443). - Send a crafted request to a known endpoint (e.g.,
/api/statusor/debug). The exact endpoint is not public, but common targets include:/api/v1/health/auth/status/error
- Observe the response for sensitive information.
Example Request:
curl -v https://target:8443/api/v1/health
Expected Response (Vulnerable):
{
"status": "error",
"message": "Internal Server Error",
"details": {
"server_version": "6.3.5.0",
"internal_ip": "10.0.0.5",
"db_connection": "jdbc:mysql://db.internal:3306/authdb"
}
}
Note: No public exploit code is available. This is a conceptual demonstration.
Blue Team (Defensive)
Detection:
- Monitor for unusual requests to API endpoints that return verbose error messages.
- Look for patterns in logs indicating attempts to access
/api/,/debug, or/errorpaths. - Use the Sigma rule provided in the Detection Engineering section.
Mitigation:
- Immediately upgrade to version 6.3.5.1 or later.
- If patching is not possible, implement a Web Application Firewall (WAF) rule to block requests to sensitive endpoints.
- Restrict network access to the authentication server to trusted IPs only.
Indicators of Compromise (IOCs)
Network IOCs:
- HTTP requests to
/api/v1/health,/debug,/erroror similar endpoints. - Responses containing server version strings (e.g.,
NetIQ Advance Authentication 6.3.5.0). - Responses with internal IP addresses (e.g.,
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16).
- HTTP requests to
File IOCs:
- Log entries showing
500 Internal Server Errorwith stack traces. - Configuration files exposed via the vulnerability (e.g.,
application.properties).
- Log entries showing
Behavioral IOCs:
- Unauthenticated users accessing administrative or diagnostic endpoints.
- Repeated failed authentication attempts followed by information gathering.
Detection Engineering
YARA Rule
rule CVE_2021_22529_NetIQ_Info_Leak {
meta:
description = "Detects sensitive information leak from NetIQ Advance Authentication"
author = "Valters IT"
date = "2024-01-01"
reference = "CVE-2021-22529"
strings:
$s1 = "NetIQ Advance Authentication" nocase
$s2 = "server_version" nocase
$s3 = "internal_ip" nocase
$s4 = "db_connection" nocase
$s5 = "stacktrace" nocase
condition:
any of ($s*) and #s1 > 0
}
Sigma Rule
title: CVE-2021-22529 - NetIQ Advance Authentication Information Disclosure
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects attempts to exploit information disclosure in NetIQ Advance Authentication
author: Valters IT
date: 2024/01/01
references:
- https://nvd.nist.gov/vuln/detail/CVE-2021-22529
logsource:
category: webserver
product: apache
service: http
detection:
selection:
cs-uri-query|contains:
- '/api/v1/health'
- '/debug'
- '/error'
- '/status'
condition: selection
falsepositives:
- Legitimate health checks from monitoring tools
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2021-22529 - NetIQ Advance Authentication Information Disclosure"; flow:to_server; content:"/api/v1/health"; http_uri; nocase; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Patch: Upgrade to NetIQ Advance Authentication version 6.3.5.1 or later. Contact NetIQ/Micro Focus support for the update.
- Workaround: If patching is delayed, implement a WAF rule to block requests to suspicious endpoints (e.g.,
/api/,/debug,/error). - Network Segmentation: Restrict access to the authentication server to only trusted IP ranges.
Long-Term Measures:
- Conduct a security audit of all exposed endpoints.
- Implement proper error handling that does not leak sensitive information.
- Regularly update all software components.
- Monitor logs for unusual access patterns.
Valters IT Signature This report was generated by Valters IT Cyber Threat Intelligence. For questions, contact support@valtersit.com.
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.