Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-11119-Padding-Oracle-Attack-on-CBC-Mode-Encryption — Demonstrates a padding oracle attack against AES-CBC encryption using a vulnerable Flask decrypt endpoint and a Python exploit script to decrypt arbitrary ciphertext without the key. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-11119-padding-oracle-attack-on-cbc-mode-encryption
Vulnerability AnalysisExploitationWeb Application ExploitationCryptographyLearning & EducationLabs & Practice
GitHubgeorge0papasotiriou/cve-2026-11119-padding-oracle-attack-on-cbc-mode-encryption

CVE-2026-11119-Padding-Oracle-Attack-on-CBC-Mode-Encryption

Demonstrates a padding oracle attack against AES-CBC encryption using a vulnerable Flask decrypt endpoint and a Python exploit script to decrypt arbitrary ciphertext without the key.

View Repository
31 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-11119 – Padding Oracle Attack on CBC Mode Encryption

Program Code (Python)

root@kitploit:~
# padding_oracle_server.py - Server that returns padding error
from flask import Flask, request
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
import os

key = os.urandom(16)
app = Flask(__name__)

@app.route('/decrypt', methods=['POST'])
def decrypt():
    ct = bytes.fromhex(request.form['ciphertext'])
    cipher = AES.new(key, AES.MODE_CBC, iv=ct[:16])
    try:
        pt = unpad(cipher.decrypt(ct[16:]), 16)
        return "OK"
    except ValueError:
        return "Padding error", 400

if __name__ == '__main__':
    app.run(port=5000)

CVE-2026-11119 – Padding Oracle Attack on AES‑CBC

Severity: Critical

Overview

A web application decrypts data using AES‑CBC and leaks whether the padding is valid. An attacker can submit modified ciphertexts and, based on the server’s error responses, iteratively decrypt or encrypt arbitrary data without knowing the key.

Vulnerability Details

  • Type: Padding Oracle
  • Impact: Full message decryption, sometimes encryption of arbitrary data.
  • Root Cause: The server differentiates between valid and invalid PKCS#7 padding, providing an oracle that reveals plaintext.

Exploit Demonstration

  1. Start the vulnerable server:
    root@kitploit:~
    pip install flask pycryptodome
    python padding_oracle_server.py
    
  2. Run the exploit script (conceptual):
    root@kitploit:~
    python exploit_padding_oracle.py
    

The oracle detection confirms the vulnerability; full exploitation uses tools like padbuster.

Download Tool