CVE-2022-26322
Executive Summary
CVE-2022-26322 is a medium-severity vulnerability in OpenText™ Identity Manager REST Driver (formerly NetIQ Identity Manager). The flaw allows an authenticated attacker with local access to read sensitive information (e.g., credentials, tokens, or PII) from log files generated by the REST Driver. The vulnerability stems from improper sanitization of sensitive data before writing to logs (CWE-532). While the CVSS score is 4.9 (Medium), the risk is elevated in environments where log files are accessible to non-privileged users or are aggregated into centralized logging systems without proper access controls. No public exploit code or proof-of-concept is available, and the EPSS score is 0.0%, indicating low exploitation activity. The vendor has released a fix in version 1.1.2.0200.
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 NPM, PyPI, Go, or Ruby packages. It affects a proprietary enterprise identity management component (OpenText Identity Manager REST Driver). Organizations should verify the integrity of the update through official OpenText channels and ensure no tampered artifacts are deployed.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Base Score: 4.9 (Medium)
- Attack Vector: Local (AV:L) – attacker must have local access to the system.
- Attack Complexity: Low (AC:L) – no special conditions required.
- Privileges Required: Low (PR:L) – attacker needs a low-privileged account.
- User Interaction: None (UI:N) – no user action needed.
- Scope: Unchanged (S:U) – vulnerability does not affect other components.
- Confidentiality Impact: Low (C:L) – limited sensitive data exposure.
- Integrity Impact: None (I:N) – no data modification.
- Availability Impact: None (A:N) – no denial of service.
Threat Level: Medium. Exploitation requires local access, but the potential exposure of credentials or tokens could lead to lateral movement or privilege escalation.
Deep Dive & Mechanics
The OpenText Identity Manager REST Driver logs diagnostic information to files (e.g., restdriver.log). The vulnerability occurs when the driver writes sensitive data—such as authentication tokens, session IDs, or user credentials—into these logs without redaction. An attacker with read access to the log files (e.g., via a compromised low-privileged account or a misconfigured log aggregation system) can extract this information.
Root Cause: The logging mechanism does not filter or mask sensitive fields before writing. For example, HTTP headers containing Authorization: Bearer <token> or request bodies with passwords are logged in plaintext.
Impact: An attacker could reuse extracted credentials to impersonate users, escalate privileges, or access other systems integrated with Identity Manager.
Vulnerable vs. Patched Code
Vulnerable Code (before 1.1.2.0200):
// Example of vulnerable logging in REST Driver
logger.info("Incoming request: " + request.toString());
// request.toString() includes all headers and body
Patched Code (1.1.2.0200+):
// Patched version with sensitive data redaction
String sanitizedRequest = sanitizeSensitiveData(request.toString());
logger.info("Incoming request: " + sanitizedRequest);
private String sanitizeSensitiveData(String logEntry) {
// Redact common sensitive patterns
logEntry = logEntry.replaceAll("(?i)(Authorization: Bearer )\\S+", "$1[REDACTED]");
logEntry = logEntry.replaceAll("(?i)(\"password\":\")[^\"]+", "$1[REDACTED]");
return logEntry;
}
The patch introduces a sanitizeSensitiveData() method that uses regex to redact common sensitive patterns before logging.
Exploitation & Lab Setup
Red Team
Prerequisites:
- Local access to a system running OpenText Identity Manager REST Driver < 1.1.2.0200.
- Read permissions on the log directory (e.g.,
/var/log/restdriver/).
Steps:
- Identify log file location:
find / -name "restdriver.log" 2>/dev/null - Extract sensitive data:
grep -E "(Authorization|password|token|secret)" /path/to/restdriver.log - Use extracted credentials for lateral movement (e.g., via REST API calls).
No public exploit code is available.
Blue Team
Detection:
- Monitor for unauthorized access to log files (e.g.,
auditdrules for/var/log/restdriver/). - Alert on log entries containing patterns like
Authorization: Beareror"password":.
Hunting:
- Search for plaintext credentials in logs:
grep -rE "(Authorization|password|token|secret)" /var/log/restdriver/ - Check for anomalous log file reads by non-root users.
Mitigation:
- Apply the vendor patch immediately.
- Restrict log file permissions to
rootor the service account only. - Implement centralized logging with sensitive data redaction (e.g., using Logstash or Fluentd filters).
Indicators of Compromise (IOCs)
- Log File Paths:
/var/log/restdriver/restdriver.log,/opt/restdriver/logs/*.log - Log Patterns: Lines containing
Authorization: Bearer,"password":,"token":,"secret": - Network: Unusual outbound connections from the Identity Manager server using credentials found in logs.
- Process: Unauthorized processes reading log files (e.g.,
cat,tail,grepon log files by non-service users).
Detection Engineering
YARA Rule
rule CVE_2022_26322_Sensitive_Data_Leak {
meta:
description = "Detects sensitive data in OpenText Identity Manager REST Driver logs"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2022-26322"
strings:
$auth_header = /Authorization: Bearer [A-Za-z0-9\-._~+/]+=*/
$password_field = /"password":"[^"]+"/
$token_field = /"token":"[^"]+"/
$secret_field = /"secret":"[^"]+"/
condition:
any of them
}
Sigma Rule
title: CVE-2022-26322 - Sensitive Data in Identity Manager Logs
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects plaintext credentials in OpenText Identity Manager REST Driver logs
author: Valters IT
date: 2025/04/10
references:
- https://nvd.nist.gov/vuln/detail/CVE-2022-26322
logsource:
product: linux
service: syslog
detection:
selection:
- EventID: 1 # Process creation (Linux)
CommandLine|contains:
- 'restdriver.log'
- 'Authorization: Bearer'
- '"password":'
- '"token":'
- '"secret":'
condition: selection
falsepositives:
- Legitimate debugging by administrators
level: medium
tags:
- attack.t1078.001
- cve.2022.26322
Suricata Rule
alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2022-26322 - Sensitive Data Exfiltration from Identity Manager Logs"; flow:to_server,established; content:"Authorization: Bearer"; nocase; content:"password"; distance:0; within:100; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
- Patch: Upgrade to OpenText Identity Manager REST Driver version 1.1.2.0200 or later.
- Log Access Control: Restrict read permissions on log directories to only the service account and root.
- Log Rotation: Implement log rotation and retention policies to limit exposure window.
- Centralized Logging: Use a SIEM or log management tool with sensitive data masking (e.g., Logstash
maskfilter). - Audit: Enable auditing on log file access (e.g.,
auditctl -w /var/log/restdriver/ -p rwa -k identity_logs). - Monitor: Deploy the provided YARA/Sigma/Suricata rules to detect exploitation attempts.
Valters IT
Securing your digital frontier.
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.