Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend GET /api/reports/{id}/pdf with crafted Host header
-
DeliveryBackend derives render base URL from request.base_url
-
ExploitPDF renderer fetches content from attacker-specified target URL
-
ExecutionInternal service or cloud metadata response rendered into PDF
-
ImpactAttacker receives HTTP response containing exfiltrated internal data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The GET /api/reports/{id}/pdf endpoint must be network-reachable by the attacker. The CVSS 4.0 vector asserts PR:N (no authentication required), but this is not independently confirmed by code inspection in the provided diff - the endpoint may be protected by separate authentication middleware not visible in the patch; defenders should verify whether the endpoint is accessible without a valid session token. The core condition is that the application uses request.base_url (reflecting the HTTP Host header verbatim) to build PDF render URLs without Host validation - this condition exists in all Pentestify releases through 1.0.0. Exploitation is bounded to confidentiality impact on subsequent systems (internal services or metadata endpoints reachable from the server's network position); no integrity or availability impact is indicated by the CVSS vector. Realistic impact is elevated in cloud-hosted deployments due to metadata service exposure, and reduced in air-gapped or on-premises environments without sensitive internal HTTP services. |
| Impact | The CVSS 4.0 base score of 6.9 reflects a network-accessible (AV:N), low-complexity (AC:L) SSRF with no privileges required (PR:N) and no user interaction (UI:N), with subsequent confidentiality impact rated Low (SC:L) and no integrity or availability impact. The low subsequent-system impact rating is appropriate for a read-only SSRF, but real-world impact is deployment-context-dependent: in AWS, GCP, or Azure environments, SSRF against the Instance Metadata Service can yield IAM role credentials, substantially exceeding what SC:L implies. No CISA KEV listing, no EPSS data, and no public exploit code are present in the source data, making this a low-urgency finding absent cloud deployment context. The product's niche footprint (single-developer pentest tool) further limits aggregate exposure. One signal conflict to note: the CVSS 4.0 asserts PR:N (unauthenticated), but a pentest report management tool would typically gate its API behind authentication - if the PDF endpoint is in practice authenticated, actual exploitability is lower than the vector implies and should be verified against the application's auth middleware. |
| Exploit ScenarioDerived | An attacker sends GET /api/reports/1/pdf to a publicly exposed Pentestify instance with the HTTP Host header set to 169.254.169.254. The backend constructs the PDF render base URL from request.base_url, yielding http://169.254.169.254/, and the PDF renderer fetches the AWS IMDS root endpoint. The resulting PDF returned in the HTTP response body contains the metadata service output, which can include IAM role names that the attacker queries in follow-up requests to retrieve temporary AWS credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 24, 2026
Server-Side Request Forgery in Pentestify 1.0.0's PDF generation endpoint enables remote attackers (PR:N per CVSS 4.0 vector) to coerce the server into issuing outbound HTTP requests to arbitrary internal or external targets, including cloud metadata services such as the AWS Instance Metadata Service at 169.254.169.254, by supplying a crafted HTTP Host header. The rendered PDF is returned to the caller, potentially leaking internal service responses or IAM role credentials. No public exploit code has been identified and no CISA KEV listing exists at time of analysis; the vulnerability is patched in version 1.1.0.
RemediationAI
Upgrade to Pentestify 1.1.0, which introduces Pydantic field validators in schemas.py enforcing that client_logo and images fields accept only base64 data URIs (matching the pattern data:image/<type>;base64,<data>), preventing remote URL embedding during PDF rendering. The patch commit is at https://github.com/ccyl13/Pentestify/commit/a058a22b42c6311895622645265df79a60265b1d. If immediate upgrade is not feasible, restrict network access to the /api/reports/{id}/pdf endpoint via a reverse proxy or WAF configured to reject requests with non-canonical Host header values. Additionally, apply egress firewall rules on the application server to block outbound connections to cloud metadata IP ranges (169.254.169.254 for AWS IMDS, 100.100.100.200 for Alibaba Cloud IMDS) - note this does not prevent SSRF against other internal network services and has no side effects on external PDF rendering if data URIs are used exclusively. Validating the Host header against an explicit allowlist at the application layer is the preferred long-term control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pentestify is a Python-based penetration testing report management application developed by ccyl13. The vulnerable code path is in backend/main.py at the GET /api/reports/{id}/pdf endpoint, where the application constructs the PDF render target URL using Flask/FastAPI's request.base_url - a value derived directly from the HTTP Host header - without any validation or allowlisting. A PDF rendering library (likely WeasyPrint or a headless browser) then fetches resources relative to this attacker-controlled base URL, causing the server to make outbound requests to arbitrary targets. CWE-918 (Server-Side Request Forgery) precisely describes this class of flaw: untrusted user-controlled input (the Host header) is used to construct a URL that the server fetches on behalf of the user. The v1.1.0 fix addresses a related attack surface by adding Pydantic field validators in schemas.py that restrict client_logo and images fields to base64 data URIs via a strict regex (_DATA_IMAGE_RE), preventing remote URL embedding in PDF-rendered HTML content. The frontend also gained HTML escaping for image src attributes in js/app.js. No CPE string is provided in the source data.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
Host header SSRF is network-exploitable with no auth per CVSS 4.0 PR:N; scope changes as server contacts external systems; only low confidentiality impact on subsequent systems, no integrity or availability effect.
Primary rating from Vendor (4daa8cea-433a-44bd-9456-53b127fc289a).
CVSS VectorVendor: 4daa8cea-433a-44bd-9456-53b127fc289a
Lifecycle Timeline
1DescriptionCVE.org
Server-Side Request Forgery (SSRF) (CWE-918) in the PDF generation endpoint GET /api/reports/{id}/pdf (backend/main.py) in ccyl13 Pentestify 1.0.0 and lower allows remote attackers to make the server issue requests to arbitrary internal or external URLs, including cloud metadata services, and return the rendered content in the resulting PDF via a crafted Host header, because the target URL is built from request.base_url without validation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-38735
GHSA-jmg8-x6hq-972w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB