Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

python-web-debug

Skill by wgpsec

Guides exploitation of Python web apps left in debug mode, including Flask/Werkzeug, Django, FastAPI and Tornado. Aimed at security testers and CTF players working on Python targets.

  • Score 69
  • 2k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install python-web-debug

Built from the published package, never by AI.

git clone --depth 1 https://github.com/wgpsec/AboutSecurity /tmp/AboutSecurity && mkdir -p ~/.claude/skills && cp -r /tmp/AboutSecurity/skills/exploit/web-method/python-web-debug ~/.claude/skills/python-web-debug

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install python-web-debug in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The python-web-debug skill is a reference for exploiting Python web applications that run with debug mode enabled. It covers Flask and Werkzeug, Django, FastAPI, and Tornado. For Flask, it explains how the Werkzeug debugger console can give remote code execution once the PIN is calculated from values such as the MAC address and machine ID. For Django, it describes what a DEBUG=True error page can expose, including settings and traceback data. For FastAPI, it covers listing endpoints through the docs pages and the OpenAPI schema.

The skill starts with a table that maps page signals to frameworks and risk levels. It then gives curl commands for checking exposed paths and for reading the files needed for PIN calculation, along with a decision tree for next steps. The source says it is meant for CTF challenges and real-world testing. It is aimed at security testers and CTF players who work on Python web targets with debug mode turned on.

Written from the project's SKILL.md and checked against it.

What it can do

  • Framework identificationMaps page signals and headers to Flask, Django, FastAPI or Tornado with a risk level.
  • Werkzeug debugger RCEChecks whether the /console path is reachable and explains how the debugger PIN is calculated.
  • PIN input filesLists how to read MAC address, machine-id, cgroup and passwd values needed for the PIN.
  • Django debug leakDescribes what a DEBUG=True page can expose, such as settings, URL routes and traceback data.
  • Django SECRET_KEY useNotes how a leaked SECRET_KEY could be used to forge signed data and session tokens.
  • FastAPI API enumerationChecks /docs, /redoc and /openapi.json to list endpoints, methods and parameters.
  • Generic traceback info gatheringLists file paths, environment variables, versions and connection strings exposed by debug errors.
  • Decision treeGives a next-step flow from each discovered signal to the matching exploitation path.

Try asking

  • Check whether the /console path is exposed on this Flask app I am testing
  • Map the Django debug page and list what settings it leaks for this target
  • List the FastAPI endpoints from openapi.json on this authorized test host

Good to know

  • The source says Werkzeug debugger PIN calculation is needed from version 0.11 onward.
  • Werkzeug 2.1 and later use SHA-1 for the PIN, while earlier versions use MD5.
  • Tornado debug mode shows tracebacks but does not offer an interactive console, per the source.
  • The Django pickle risk applies only when PickleSerializer is explicitly configured.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/exploit/web-method/python-web-debug/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to python-web-debug

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

python-web-debug: common questions

What does the python-web-debug skill do?

It describes how to find and exploit debug mode in Python web frameworks, including the Werkzeug debugger PIN method for remote code execution. It also covers information leaks from Django debug pages and endpoint exposure in FastAPI.

Which Python frameworks does it cover?

The source covers Flask with Werkzeug, Django, FastAPI and Tornado. It also includes general notes for other Python web frameworks in debug mode.

Does it give a full PIN calculation method?

It gives an overview of the six PIN inputs and links to a separate reference file for the full algorithm, including Python 3.x and Docker differences.

How do I install python-web-debug?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is python-web-debug free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is python-web-debug safe to use?

It scores 69 of 100. Grades: maintenance B, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to python-web-debug?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

python-web-debug Install

Add to stack

Loading.