Skip to content

fix: Unauthenticated, unvalidated user registration - #14

Open
MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-unauthenticated-user-registration
Open

MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-unauthenticated-user-registration

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_9fdd92 high Unauthenticated User Registration via createUser Mutation http://dvga.demo.invalid:5013/graphql
vuln_26014b medium Unauthenticated User Registration - No Rate Limiting or Validation /graphql (mutation createUser)
vuln_d51936 medium SQLAlchemy/SQLite Error Disclosure - Database Schema and SQL Injection Vector Leaked /graphql (mutation createUser)

Fix

createUser requires an administrator token, validates username and email format, enforces a 12-character minimum password, and turns unique-constraint violations into a generic error instead of the SQLAlchemy/SQLite message.

Files changed:

  • core/auth.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_9fdd92, vuln_26014b, vuln_d51936.

`createUser` requires an administrator token, validates username and email format, enforces a 12-character minimum password, and turns unique-constraint violations into a generic error instead of the SQLAlchemy/SQLite message.

Findings: vuln_9fdd92, vuln_26014b, vuln_d51936
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