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
Tools/GitHubGitHub/george0papasotiriou/cve-2026-11113-smtp-header-injection-in-contact-form
Vulnerability AnalysisExploitationWeb Application ExploitationPhishingWeb SecurityLearning & EducationEmail Security
GitHubgeorge0papasotiriou/cve-2026-11113-smtp-header-injection-in-contact-form

CVE-2026-11113-SMTP-Header-Injection-in-Contact-Form

Proof-of-concept exploit for CVE-2026-11113, demonstrating SMTP header injection in a Flask contact form via unsanitized email input; includes vulnerable server and exploit script.

View Repository
51 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-11113 – SMTP Header Injection in Contact Form

Program Code (Python)

root@kitploit:~
# contact_form_server.py - Mails feedback without sanitizing headers
from flask import Flask, request
import smtplib

app = Flask(__name__)

@app.route('/contact', methods=['POST'])
def contact():
    sender = request.form['email']
    message = request.form['message']
    # Vulnerable: constructs raw headers with user input
    headers = f"From: {sender}\r\nTo: [email protected]\r\nSubject: Feedback"
    msg = f"{headers}\r\n\r\n{message}"
    # Insecurely sending via SMTP (simulated print)
    print("Would send:\n", msg)
    return "Message sent"

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

CVE-2026-11113 – SMTP Header Injection in Contact Form

Severity: High

Overview

A contact form directly inserts user‑supplied email address into the mail header without sanitization. An attacker can inject newline characters to add arbitrary SMTP headers, such as Bcc, enabling spam relay and phishing.

Vulnerability Details

  • Type: SMTP Header Injection
  • Impact: Spam distribution, email spoofing.
  • Root Cause: User input is used to build raw email headers without removing carriage‑return and line‑feed characters.

Exploit Demonstration

  1. Start the form server:
    root@kitploit:~
    pip install flask
    python contact_form_server.py
    
  2. Run the exploit:
    root@kitploit:~
    python exploit_smtp_header_injection.py
    

The server prints a message with the injected Bcc lines, demonstrating how additional recipients would receive the email.

Download Tool