<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>PyFu · The Hacker's Handbook for Python Exploitation</title>
  <subtitle>A practical handbook for discovering, understanding, and exploiting Python-related vulnerabilities: internals, sandboxes, deserialization, the import system, and the package ecosystem.</subtitle>
  <link href="https://pyfu.io/feed.xml" rel="self"/>
  <link href="https://pyfu.io/"/>
  <updated>2026-06-16T19:49:28+00:00</updated>
  <id>https://pyfu.io/</id>
  <author><name>Mohammad Askar</name></author>
  <entry>
    <title>Python Introspection</title>
    <link href="https://pyfu.io/core-python-concepts/python-introspection/"/>
    <id>https://pyfu.io/core-python-concepts/python-introspection/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>In Python, introspection is the ability to examine the properties of objects at runtime. Since everything in Python is an object including functions, classes, modules, and even types themselves, in...</summary>
  </entry>
  <entry>
    <title>Python Magic Methods and Attributes</title>
    <link href="https://pyfu.io/core-python-concepts/python-magic-methods-and-attributes/"/>
    <id>https://pyfu.io/core-python-concepts/python-magic-methods-and-attributes/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>Python magic methods, also called dunder methods which is short for double underscore, are special functions that allow developers to define how objects behave under various operations.</summary>
  </entry>
  <entry>
    <title>Python Object Model and MRO</title>
    <link href="https://pyfu.io/core-python-concepts/python-object-model-and-mro/"/>
    <id>https://pyfu.io/core-python-concepts/python-object-model-and-mro/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>Everything in Python is an object, and every object knows its class, its class knows its parents, and the chain of parents always ends at a single root: object. That chain is the connective tissue ...</summary>
  </entry>
  <entry>
    <title>Python Packages</title>
    <link href="https://pyfu.io/core-python-concepts/python-packages/"/>
    <id>https://pyfu.io/core-python-concepts/python-packages/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>In Python, a package is a way of structuring and organizing related modules (Python files) under a common namespace; This makes it easier to manage, distribute, and reuse code across different part...</summary>
  </entry>
  <entry>
    <title>Python Type Hinting and Annotations</title>
    <link href="https://pyfu.io/core-python-concepts/python-type-hinting-and-annotations/"/>
    <id>https://pyfu.io/core-python-concepts/python-type-hinting-and-annotations/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>Python is a dynamically typed language, which means variables and function arguments do not require explicit types, the interpreter figures them out at runtime.</summary>
  </entry>
  <entry>
    <title>Python Under The Hood</title>
    <link href="https://pyfu.io/core-python-concepts/python-under-the-hood/"/>
    <id>https://pyfu.io/core-python-concepts/python-under-the-hood/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>Python is an interpreted, high-level programming language, which means that its code is executed directly by an interpreter rather than being compiled into machine-level instructions beforehand.</summary>
  </entry>
  <entry>
    <title>Python Virtual Environment</title>
    <link href="https://pyfu.io/core-python-concepts/python-virtual-environment/"/>
    <id>https://pyfu.io/core-python-concepts/python-virtual-environment/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>Python Virtual Environment venv is an isolated environment that allows you to install and manage Python packages independently from the system-wide Python installation.</summary>
  </entry>
  <entry>
    <title>Python Web Interfaces</title>
    <link href="https://pyfu.io/core-python-concepts/python-web-interfaces/"/>
    <id>https://pyfu.io/core-python-concepts/python-web-interfaces/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Core Python Concepts"/>
    <summary>In Python web development, two major interfaces define how web applications communicate with servers which are:</summary>
  </entry>
  <entry>
    <title>Setup Environment to Practice PyFu Examples</title>
    <link href="https://pyfu.io/pyfu-labs/setup-environment-to-practice-pyfu-examples/"/>
    <id>https://pyfu.io/pyfu-labs/setup-environment-to-practice-pyfu-examples/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="PyFu Labs"/>
    <summary>PyFu ships with a simple and practical lab environment for practicing Python exploitation techniques. All examples demonstrated throughout PyFu were tested on Ubuntu 24.04 with Python 3.12 to ensur...</summary>
  </entry>
  <entry>
    <title>PyFu - Python Exploitation Handbook</title>
    <link href="https://pyfu.io/pyfu-python-exploitation-handbook/"/>
    <id>https://pyfu.io/pyfu-python-exploitation-handbook/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <summary>This is an early release of PyFu! New content will be published on regular basis, if you find anything doesn’t look right please send me an email at askar[@]pyfu[.]io</summary>
  </entry>
  <entry>
    <title>Python Command Injection</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/command-injection/python-command-injection/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/command-injection/python-command-injection/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Python command injection: the shell-invoking sinks (os.system, os.popen, subprocess shell=True) and how user input breaks out of the intended command.</summary>
  </entry>
  <entry>
    <title>Insecure Dynamic Code Evaluation and Execution in Python</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/dynamic-code-execution/insecure-dynamic-code-evaluation-and-execution-in-python/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/dynamic-code-execution/insecure-dynamic-code-evaluation-and-execution-in-python/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Python provides the ability to dynamically evaluate and execute expressions at runtime using the built-in eval() function.</summary>
  </entry>
  <entry>
    <title>Import System Abuse with .pth Files and sys.meta_path</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/import-system-abuse/import-system-abuse-with-pth-files-and-sys-meta-path/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/import-system-abuse/import-system-abuse-with-pth-files-and-sys-meta-path/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Python’s import system is far more programmable than the import statement suggests, and that programmability is an attack surface in its own right. Two mechanisms in particular let an attacker run ...</summary>
  </entry>
  <entry>
    <title>Insecure Deserialization - Python Pickle</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-python-pickle/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-python-pickle/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Exploit Python pickle deserialization for remote code execution via __reduce__, see where the sink hides (sessions, caches, queues), and how to fix it.</summary>
  </entry>
  <entry>
    <title>Insecure Deserialization - Python Shelve</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-python-shelve/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-python-shelve/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>shelve is a built-in Python module that provides persistent storage of Python objects in a dictionary-like interface; Developers can store complex data types without worrying about serialization lo...</summary>
  </entry>
  <entry>
    <title>Insecure Deserialization - Unsafe YAML Loading</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-unsafe-yaml-loading/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/insecure-deserialization-unsafe-yaml-loading/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Unsafe YAML loading in Python: yaml.load and UnsafeLoader construct arbitrary objects for RCE, and why yaml.safe_load is the fix.</summary>
  </entry>
  <entry>
    <title>Serialization and Deserialization Concept</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/serialization-and-deserialization-concept/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/insecure-deserialization/serialization-and-deserialization-concept/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Serialization as a Concept</summary>
  </entry>
  <entry>
    <title>Walking the Python Object Graph with __subclasses__()</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/object-model-exploitation/walking-the-python-object-graph-with-subclasses/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/object-model-exploitation/walking-the-python-object-graph-with-subclasses/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Almost every Python sandbox escape, pickle gadget, and template-injection RCE you will ever write ends in the same place: walking from some harmless object up to the base object type, enumerating i...</summary>
  </entry>
  <entry>
    <title>Insecure File Access and Path Traversal in Python</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/path-traversal/insecure-file-access-and-path-traversal-in-python/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/path-traversal/insecure-file-access-and-path-traversal-in-python/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Path traversal in Python: how open, os.path.join and pathlib mishandle ../ and absolute paths, why existence checks are not a defense, and how to fix it.</summary>
  </entry>
  <entry>
    <title>Python Vulnerability Anatomy</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/python-vulnerability-anatomy/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/python-vulnerability-anatomy/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Python’s greatest strengths as a language are also its broadest attack surface. It is dynamic, interpreted, and deeply introspective: code can build and run more code at runtime, objects can be ser...</summary>
  </entry>
  <entry>
    <title>Escaping Python exec and eval Sandboxes</title>
    <link href="https://pyfu.io/python-based-vulnerabilities-anatomy/sandbox-escapes/escaping-python-exec-and-eval-sandboxes/"/>
    <id>https://pyfu.io/python-based-vulnerabilities-anatomy/sandbox-escapes/escaping-python-exec-and-eval-sandboxes/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Vulnerabilities Anatomy"/>
    <summary>Escaping Python eval/exec sandboxes: rebuild builtins and climb the object graph to break out of __builtins__-stripped jails, and why sandboxing is brittle.</summary>
  </entry>
  <entry>
    <title>Authentication Bypass via Development Environment Headers Abuse</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/authentication-bypass-via-development-environment-headers-abuse/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/authentication-bypass-via-development-environment-headers-abuse/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>This example explain another common authentication vulnerability in Web Python-based applications, where developers introduce a special “developer shortcut” instead of enforcing proper authenticati...</summary>
  </entry>
  <entry>
    <title>Authentication Bypass via Unsafe Python Deserialization</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/authentication-bypass-via-unsafe-python-deserialization/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/authentication-bypass-via-unsafe-python-deserialization/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Some applications skip JWTs and signed cookies entirely and store session state by pickling a Python object straight into a cookie. This collapses two problems into one: the privilege-escalation ri...</summary>
  </entry>
  <entry>
    <title>Broken Access Control in FastAPI Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/broken-access-control-in-fastapi-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/broken-access-control-in-fastapi-applications/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Broken access control in FastAPI: one route forgets its Depends() auth guard and is reachable unauthenticated while its siblings are protected, and how to fix it.</summary>
  </entry>
  <entry>
    <title>Broken Access Control in Flask Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/broken-access-control-in-flask-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/broken-access-control-in-flask-applications/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>This example demonstrates a common access control vulnerability in Flask applications, where some endpoints enforce proper authentication and role-based access, but one sensitive endpoint lacks the...</summary>
  </entry>
  <entry>
    <title>Business Logic Vulnerabilities in FastAPI Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/business-logic-vulnerabilities-in-fastapi-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/business-logic-vulnerabilities-in-fastapi-applications/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Business Logic Vulnerabilities occur when an application’s core functionality can be abused due to flaws in how developers implemented or enforced the intended workflows, rather than due to missing...</summary>
  </entry>
  <entry>
    <title>Business Logic Vulnerabilities in Flask Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/business-logic-vulnerabilities-in-flask-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/business-logic-vulnerabilities-in-flask-applications/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Business Logic Vulnerabilities occur when an application’s core functionality can be abused due to flaws in how developers implemented or enforced the intended workflows, rather than due to missing...</summary>
  </entry>
  <entry>
    <title>Authentication Bypass via Broken JWT Validation</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/authentication-bypass-via-broken-jwt-validation/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/authentication-bypass-via-broken-jwt-validation/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>In the Introduction to JSON Web Tokens in Python section, we covered how a JWT’s signature is what guarantees its integrity: the server recomputes the HMAC over the header and payload and rejects t...</summary>
  </entry>
  <entry>
    <title>Authentication Bypass via JWT Hardcoded Secret</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/authentication-bypass-via-jwt-hardcoded-secret/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/authentication-bypass-via-jwt-hardcoded-secret/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>As covered in Introduction to JSON Web Tokens in Python, an HS256 token is only as trustworthy as the secret used to sign it. The server proves a token is authentic by recomputing the HMAC with tha...</summary>
  </entry>
  <entry>
    <title>Cracking Weak JWT Signing Keys</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/cracking-weak-jwt-signing-keys/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/cracking-weak-jwt-signing-keys/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>When a JWT is signed with HS256 (or any HMAC variant), its entire security rests on the secrecy and entropy of one symmetric key. That key signs and verifies, so anyone who recovers it can mint tok...</summary>
  </entry>
  <entry>
    <title>Forging JWTs with the none Algorithm</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/forging-jwts-with-the-none-algorithm/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/forging-jwts-with-the-none-algorithm/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Forge JWTs with the alg:none attack: drop the signature, set role to admin, and bypass authentication, plus how to validate algorithms to stop it.</summary>
  </entry>
  <entry>
    <title>Introduction to JSON Web Tokens in Python</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/introduction-to-json-web-tokens-in-python/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/introduction-to-json-web-tokens-in-python/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>JSON Web Token (JWT) is a widely adopted mechanism for stateless authentication and authorization in modern web applications.</summary>
  </entry>
  <entry>
    <title>JWT Algorithm Confusion (RS256 to HS256)</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/jwt-algorithm-confusion-rs256-to-hs256/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/jwt-algorithm-confusion-rs256-to-hs256/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>JWT algorithm confusion (RS256 to HS256): sign tokens with the public key as an HMAC secret to bypass auth, and how to pin the expected algorithm.</summary>
  </entry>
  <entry>
    <title>JWT Header Injection via jku, jwk, and kid</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/jwt-header-injection-via-jku-jwk-and-kid/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/authentication-and-authorization-attacks/jwt-attacks/jwt-header-injection-via-jku-jwk-and-kid/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>JWT headers can carry parameters that tell the verifier which key to use, and that is a dangerous amount of trust to place in attacker-controlled data. Three header fields, jwk, jku, and kid, all i...</summary>
  </entry>
  <entry>
    <title>Code Execution via Dynamic Python Code Invokation</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/code-execution-via-dynamic-python-code-invokation/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/code-execution-via-dynamic-python-code-invokation/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Dynamic code invocation in Python allows developers to call functions and instantiate classes at runtime using string-based references. While this provides flexibility for plugin systems and config...</summary>
  </entry>
  <entry>
    <title>Exposed FastAPI Documentation Page</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/exposed-fastapi-documentation-page/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/exposed-fastapi-documentation-page/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Exposed FastAPI docs: how /docs and /openapi.json leak the full API surface including admin endpoints, and how to lock them down in production.</summary>
  </entry>
  <entry>
    <title>Prompt Injection in Python LLM Backends</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/prompt-injection-in-python-llm-backends/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/prompt-injection-in-python-llm-backends/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Prompt injection in Python LLM backends: hijack model instructions to reach tools and data, including indirect injection, and how to constrain it.</summary>
  </entry>
  <entry>
    <title>Server Side Template Injection (SSTI) in AI Prompt Templates</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/server-side-template-injection-ssti-in-ai-prompt-templates/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/server-side-template-injection-ssti-in-ai-prompt-templates/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Large Language Model (LLM) applications rarely send raw user input to the model. Instead, they wrap it in a prompt template, a parameterized string that mixes fixed instructions with dynamic values...</summary>
  </entry>
  <entry>
    <title>Server Side Template Injection (SSTI) in Flask Application</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/server-side-template-injection-ssti-in-flask-application/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/server-side-template-injection-ssti-in-flask-application/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Server-Side Template Injection (SSTI) in Flask/Jinja2: confirm with {{7*7}}, escalate to RCE through the object graph, and keep user input out of templates.</summary>
  </entry>
  <entry>
    <title>SQL Injection (SQLi) in Flask Application</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/sql-injection-sqli-in-flask-application/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/sql-injection-sqli-in-flask-application/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>SQL injection in Flask: exploit string-built queries with UNION and boolean payloads to dump data, then fix it with parameterized queries.</summary>
  </entry>
  <entry>
    <title>Vanilla Command Injection in Flask Application</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/vanilla-command-injection-in-flask-application/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/vanilla-command-injection-in-flask-application/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>The Python Command Injection section broke down the individual functions that hand strings to the system shell. This section shows the same flaw in its natural habitat: a real Flask application whe...</summary>
  </entry>
  <entry>
    <title>XML External Entity (XXE) Injection in Flask Application</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/injection-attacks/xml-external-entity-xxe-injection-in-flask-application/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/injection-attacks/xml-external-entity-xxe-injection-in-flask-application/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>XXE injection in Flask: abuse XML external entities to read local files and reach internal services, and how to disable entity resolution to mitigate.</summary>
  </entry>
  <entry>
    <title>Insecure Flask Debug Mode and PIN Bypass</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/insecure-flask-debug-mode-and-pin-bypass/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/insecure-flask-debug-mode-and-pin-bypass/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Flask’s debug mode provides developers with an interactive debugger that activates when an unhandled exception occurs. While invaluable during development, enabling debug mode in production exposes...</summary>
  </entry>
  <entry>
    <title>Path Traversal in Flask Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/path-traversal-in-flask-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/path-traversal-in-flask-applications/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Flask applications can be vulnerable to path traversal attacks, which may allow attackers to read or even overwrite unauthorized files depending on how the application handles file paths and user i...</summary>
  </entry>
  <entry>
    <title>Python Jinja2 Server Side Template Injection</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-jinja2-server-side-template-injection/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-jinja2-server-side-template-injection/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>Jinja2 SSTI: break out of {{ }} to reach os via __globals__ and __subclasses__ for RCE, and the durable fix for Python template injection.</summary>
  </entry>
  <entry>
    <title>Python LXML Insecure XML Parsing</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-lxml-insecure-xml-parsing/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-lxml-insecure-xml-parsing/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>lxml library is one of the most widely adopted XML parsing libraries in Python due to its rich feature set, high parsing performance, and compliance with XML specifications.</summary>
  </entry>
  <entry>
    <title>Python Pandas Library Arbitrary Command Execution</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-pandas-library-arbitrary-command-execution/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-pandas-library-arbitrary-command-execution/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>The pandas library is one of the most widely used data manipulation tools in the Python ecosystem, particularly in data science, analytics, and backend services that process tabular data.</summary>
  </entry>
  <entry>
    <title>Python Requests Library SSRF via URL Parsing</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-requests-library-ssrf-via-url-parsing/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/python-library-based-attacks/python-requests-library-ssrf-via-url-parsing/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>The requests library is the de facto standard for making HTTP requests in Python. It provides a simple and elegant API for interacting with web services, APIs, and remote resources.</summary>
  </entry>
  <entry>
    <title>Server Side Request Forgery (SSRF) in Flask Applications</title>
    <link href="https://pyfu.io/python-based-web-application-attacks/server-side-request-forgery-ssrf-in-flask-applications/"/>
    <id>https://pyfu.io/python-based-web-application-attacks/server-side-request-forgery-ssrf-in-flask-applications/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python-based Web Application Attacks"/>
    <summary>SSRF in Flask: coerce the server into fetching attacker-chosen URLs to reach internal services and cloud metadata, and how to mitigate it.</summary>
  </entry>
  <entry>
    <title>FastAPI HTTP Basic Auth</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/authentication-and-authorization/fastapi-http-basic-auth/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/authentication-and-authorization/fastapi-http-basic-auth/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>HTTP Basic Authentication is a simple authentication mechanism where the client sends the username and password encoded in Base64 as part of the HTTP request headers.</summary>
  </entry>
  <entry>
    <title>JWT for Authentication and Authorization in FastAPI</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/authentication-and-authorization/jwt-for-authentication-and-authorization-in-fastapi/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/authentication-and-authorization/jwt-for-authentication-and-authorization-in-fastapi/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>In FastAPI, JWT can be integrated into the authentication and authorization pipeline by issuing a token after a successful login, and then validating this token on protected routes.</summary>
  </entry>
  <entry>
    <title>FastAPI Dependency Injection</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-dependency-injection/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-dependency-injection/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastAPI uses dependency injection as a core mechanism to share data and functionality across an application. You declare certain parameters as dependencies with Depends, and FastAPI resolves and pr...</summary>
  </entry>
  <entry>
    <title>FastAPI Middleware</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-middleware/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-middleware/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Middleware in FastAPI is a mechanism that allows you to process requests and responses globally before they reach your route handlers or after your route handlers generate a response. Middleware ru...</summary>
  </entry>
  <entry>
    <title>FastAPI Pydantic Data Models</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-pydantic-data-models/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-pydantic-data-models/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastAPI uses Pydantic as its core data validation and serialization engine. Pydantic provides a powerful way to define data models using standard Python type hints, allowing FastAPI to automaticall...</summary>
  </entry>
  <entry>
    <title>FastAPI Router</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-router/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/fastapi-router/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastAPI Router is a mechanism that allows you to modularize your application into multiple logical groups of endpoints.</summary>
  </entry>
  <entry>
    <title>Running FastAPI Applications</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/concepts/running-fastapi-applications/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/concepts/running-fastapi-applications/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastAPI applications are typically run using an ASGI server which is one of the most common servers for running FastAPI is uvicorn.</summary>
  </entry>
  <entry>
    <title>Introduction to FastAPI Security Testing</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastapi/introduction-to-fastapi-security-testing/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastapi/introduction-to-fastapi-security-testing/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastAPI is a modern, high-performance web framework for building APIs with Python, based on standard Python type hints. It is designed to be fast, easy to use, and highly scalable making it a popul...</summary>
  </entry>
  <entry>
    <title>FastMCP Authentication</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-authentication/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-authentication/</id>
    <updated>2026-06-10T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>By default a FastMCP server has no authentication. Over the stdio transport that is reasonable, because the only caller is the local process that launched it. Over a network transport it means ever...</summary>
  </entry>
  <entry>
    <title>FastMCP Prompts</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-prompts/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-prompts/</id>
    <updated>2026-06-10T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Prompts are reusable prompt templates the server offers to clients. A prompt is a function decorated with @mcp.prompt that returns the text (or message list) the client should send to its model; th...</summary>
  </entry>
  <entry>
    <title>FastMCP Resources</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-resources/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-resources/</id>
    <updated>2026-06-10T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Resources are data an MCP client can read by URI, as opposed to tools, which are functions it calls. A resource is a function decorated with @mcp.resource(uri); the client lists resources with reso...</summary>
  </entry>
  <entry>
    <title>FastMCP Tools</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-tools/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/fastmcp-tools/</id>
    <updated>2026-06-10T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Tools are the functions an MCP client can call. In FastMCP a tool is any function decorated with @mcp.tool; its type hints become the JSON schema the client sees, and its return value is sent back ...</summary>
  </entry>
  <entry>
    <title>Running a FastMCP Server</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/running-a-fastmcp-server/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/concepts/running-a-fastmcp-server/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastMCP turns ordinary Python functions into a Model Context Protocol (MCP) server with a handful of decorators. A server is an instance of FastMCP, and the functions you decorate on it become the ...</summary>
  </entry>
  <entry>
    <title>Introduction to FastMCP Security Testing</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/introduction-to-fastmcp-security-testing/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/introduction-to-fastmcp-security-testing/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>FastMCP is the de facto Python framework for building Model Context Protocol (MCP) servers, the components that expose tools, resources, and prompts to LLM clients like Claude Desktop, IDEs, and ag...</summary>
  </entry>
  <entry>
    <title>Unauthenticated FastMCP Servers</title>
    <link href="https://pyfu.io/python-web-development-frameworks/fastmcp/unauthenticated-fastmcp-servers/"/>
    <id>https://pyfu.io/python-web-development-frameworks/fastmcp/unauthenticated-fastmcp-servers/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Unauthenticated FastMCP servers: enumerate and invoke exposed MCP tools, resources and prompts over HTTP with no auth, and how to require authentication.</summary>
  </entry>
  <entry>
    <title>Flask Default Session for Authentication and Authorization</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/authentication-and-authorization/flask-default-session-for-authentication-and-authorization/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/authentication-and-authorization/flask-default-session-for-authentication-and-authorization/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Introduction</summary>
  </entry>
  <entry>
    <title>JWT for Authentication and Authorization in Flask</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/authentication-and-authorization/jwt-for-authentication-and-authorization-in-flask/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/authentication-and-authorization/jwt-for-authentication-and-authorization-in-flask/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Before JWT in Flask Applications</summary>
  </entry>
  <entry>
    <title>Flask Blueprints</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-blueprints/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-blueprints/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Blueprints allow you to group related views, templates, static files, and other resources. Think of each blueprint as a mini-application.</summary>
  </entry>
  <entry>
    <title>Flask Decorators</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-decorators/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-decorators/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Flask decorators are powerful tools used to modify the behavior of view functions and handle common web app tasks such as routing, authorization, and error handling.</summary>
  </entry>
  <entry>
    <title>Flask Request</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-request/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-request/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>In Flask, the request object gives you access to all incoming request data sent by the client like form inputs, JSON payloads, headers, cookies, and more.</summary>
  </entry>
  <entry>
    <title>Flask Routes</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-routes/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/flask-routes/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Flask routes define how a Flask application responds to incoming HTTP requests and map specific URL paths to Python functions, often called view functions.</summary>
  </entry>
  <entry>
    <title>Template Rendering in Flask</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/concepts/template-rendering-in-flask/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/concepts/template-rendering-in-flask/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>In Flask, rendering HTML templates is done using the render_template() function with Jinja2 templating engine.</summary>
  </entry>
  <entry>
    <title>Introduction to Flask Security Testing</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/introduction-to-flask-security-testing/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/introduction-to-flask-security-testing/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Flask is a lightweight and flexible web framework that enables developers to build and deploy web applications quickly using Python. Its minimalistic design, combined with the ability to integrate ...</summary>
  </entry>
  <entry>
    <title>Running Flask Applications</title>
    <link href="https://pyfu.io/python-web-development-frameworks/flask/running-flask-applications/"/>
    <id>https://pyfu.io/python-web-development-frameworks/flask/running-flask-applications/</id>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Flask is a WSGI-based Python web framework, which means it is designed to run behind a WSGI server rather than being directly exposed to production traffic.</summary>
  </entry>
  <entry>
    <title>Introduction to Streamlit Security Testing</title>
    <link href="https://pyfu.io/python-web-development-frameworks/streamlit/introduction-to-streamlit-security-testing/"/>
    <id>https://pyfu.io/python-web-development-frameworks/streamlit/introduction-to-streamlit-security-testing/</id>
    <updated>2026-06-12T00:00:00+00:00</updated>
    <category term="Python Web Development Frameworks"/>
    <summary>Streamlit is a Python-based open-source framework used to build interactive data applications rapidly. Its simplicity and tight integration with Python make it popular in data science and ML commun...</summary>
  </entry>
</feed>
