Skip to content

fix: Internal server address rendered into client-side JavaScript - #21

Open
MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-internal-address-in-client-javascript
Open

MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-internal-address-in-client-javascript

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_6cd1b9 low Internal Network IP Address Disclosed in Client-Side JavaScript /upload_paste (JavaScript source)

Fix

The subscription WebSocket URL is built in the browser from window.location instead of rendering the server bind host and port into the page.

Files changed:

  • templates/paste.html

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_6cd1b9.

The subscription WebSocket URL is built in the browser from `window.location` instead of rendering the server bind host and port into the page.

Findings: vuln_6cd1b9
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