Skip to content

fix: SSRF and command execution in importPaste - #2

Open
MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-ssrf-import-paste
Open

MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-ssrf-import-paste

Conversation

@MBK-fr

@MBK-fr MBK-fr commented Nov 21, 2026

Copy link
Copy Markdown

Findings

Darkmoon campaign camp_20261119_c80c95bf (DVGA demo target).

Finding Severity Title Endpoint
vuln_355a88 high SSRF via importPaste Mutation - Server-Side Request Forgery http://dvga.demo.invalid:5013/graphql

Fix

importPaste no longer shells out to curl: it fetches with requests (5 s timeout, no redirects, 64 KiB cap) and only towards http/https on ports 80/443 whose resolved addresses are all public, which blocks loopback, private ranges and cloud metadata endpoints.

Files changed:

  • core/security.py
  • core/views.py

Validation intent

Manual verification that the documented exploit path no longer succeeds, plus the project's existing test suite. Changed Python files pass python3 -m py_compile.

Opened for human review; never auto-merged.


Darkmoon finding reference: vuln_355a88.

importPaste no longer shells out to `curl`: it fetches with `requests` (5 s timeout, no redirects, 64 KiB cap) and only towards http/https on ports 80/443 whose resolved addresses are all public, which blocks loopback, private ranges and cloud metadata endpoints.

Findings: vuln_355a88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant