Summary
DeepAudit's task report generation can interpret HTML embedded in a project name when creating a PDF report. A registered user who can create a project and download its report may be able to make the report access local files or internal network resources.
Affected context
The issue is reported in DeepAudit versions 2.0.0-beta.1 through 3.8.0, in ReportGenerator.generate_task_report. It becomes relevant when a registered user can create a project with a crafted name and cause its task PDF report to be generated and downloaded. The report-generation path may process the embedded link in a way that accesses resources from the server's environment.
Exploit preconditions
- Attack surface: Task PDF report generation in DeepAudit
- Required access: A registered account with permission to create projects and access task reports
- Trigger point: Generation and download of a report for a project with a crafted name
- Why exploitation is possible: HTML in the project name may be interpreted during report generation, causing server-side access to local or internal resources
Why this happens
The report-generation flow does not safely handle HTML supplied through a project name. If that content is interpreted by the PDF rendering process, an embedded link can cause the server to retrieve resources rather than treating the name as inert text. This behavior maps to CWE-918: Server-Side Request Forgery (SSRF) because user-controlled input can induce requests from the server to unintended destinations.
Potential impact
- The server may disclose the contents of accessible local files.
- The server may make requests to internal network services.
- Responses from local or internal resources could be exposed through a generated report.
- Internal services may be reached from an environment that an external user cannot access directly.
General mitigation guidance
Mitigation patterns include treating project names and other user-controlled report data as plain text, escaping or sanitizing markup at the rendering boundary, and using PDF-generation settings that disable unnecessary link and resource loading. Restrict report renderers from accessing local files and internal network destinations, and apply outbound network controls and least-privilege execution. Prefer secure-by-default report templates that do not interpret user input as active HTML.
How teams detect issues like this
- Use static analysis and code review to identify user-controlled values passed into HTML or PDF rendering contexts without context-appropriate escaping.
- Review report-generation settings for support of local file access, external resources, or embedded links.
- Enforce policies that restrict server-side requests from report-generation components to approved destinations.
- Test report generation with security-focused inputs in controlled environments and monitor renderer activity for unexpected local or internal resource access.

