Skip to content

fix: Stack trace, SQL error and field suggestion disclosure in GraphQL errors - #11

Open
MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-error-disclosure-field-suggestions
Open

MBK-fr wants to merge 1 commit into
masterfrom
darkmoon/fix-error-disclosure-field-suggestions

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_1cb958 low GraphQL Field Suggestion Information Disclosure http://dvga.demo.invalid:5013/graphql
vuln_e0006d low GraphQL Field Suggestions Leak Schema Information /graphql
vuln_322851 low Flask/Python Internal Error Disclosure via GraphQL Error Messages /graphql
vuln_cba58c low Sensitive Stack Trace Disclosure in GraphQL Error Messages /graphql
vuln_d51936 medium SQLAlchemy/SQLite Error Disclosure - Database Schema and SQL Injection Vector Leaked /graphql (mutation createUser)

Fix

Adds a safe error formatter used by /graphql and /graphiql: unexpected exceptions (SQLAlchemy, Python) become a generic "Internal server error.", stack traces and file paths are no longer attached, and "Did you mean ...?" field suggestions are stripped from validation messages.

Files changed:

  • core/view_override.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_1cb958, vuln_e0006d, vuln_322851, vuln_cba58c, vuln_d51936.

…L errors

Adds a safe error formatter used by `/graphql` and `/graphiql`: unexpected exceptions (SQLAlchemy, Python) become a generic "Internal server error.", stack traces and file paths are no longer attached, and "Did you mean ...?" field suggestions are stripped from validation messages.

Findings: vuln_1cb958, vuln_e0006d, vuln_322851, vuln_cba58c, 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