☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N 🐛 CWE-74
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-61543

CVE-2025-61543 Host Header Injection in Craftmycms
📅 PUBLISHED: 2025-10-16 00:00 UTC 🔄 UPDATED: 2026-08-12 09:01 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.04%
👁️
0.04% probability
1.0× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: 4.0.2.2
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-61543 is a Host Header Injection vulnerability in CraftMyCMS version 4.0.2.2. The password reset functionality directly uses the $_SERVER['HTTP_HOST'] value to construct password reset links sent via email. An attacker can manipulate the Host header in the HTTP request to inject a malicious domain into the reset link. This enables phishing attacks where the victim clicks a link that appears legitimate but leads to an attacker-controlled server, potentially leading to account takeover.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to an NPM, PyPI, Go, or Ruby package. It is a standalone PHP application vulnerability.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) - The attack is performed over the network.
  • Attack Complexity (AC): Low (L) - No special conditions are required.
  • Privileges Required (PR): None (N) - No authentication is needed to trigger the vulnerability.
  • User Interaction (UI): Required (R) - The victim must click the malicious link in the email.
  • Scope (S): Unchanged (U) - The vulnerable component and the impacted component are the same.
  • Confidentiality (C): Low (L) - Limited information disclosure (e.g., password reset token).
  • Integrity (I): Low (L) - The attacker can modify the reset link destination.
  • Availability (A): None (N) - No impact on availability.

CVSS Score: 4.3 (Medium)

Threat Level: Medium. The attack requires user interaction but can lead to account takeover if the victim is tricked.

Deep Dive & Mechanics

The vulnerability resides in the password reset functionality of CraftMyCMS. When a user requests a password reset, the application generates a unique token and sends an email containing a reset link. The link is constructed using the value of $_SERVER['HTTP_HOST'], which is the Host header from the incoming HTTP request.

An attacker can intercept or craft a request to the password reset endpoint with a modified Host header, such as attacker.com. The application will then generate a reset link like http://attacker.com/reset?token=TOKEN_VALUE. When the victim receives this email and clicks the link, they are directed to the attacker's server. The attacker can then capture the token and use it to reset the victim's password on the legitimate CraftMyCMS instance.

The core issue is the lack of validation or sanitization of the Host header before it is used in URL generation. The application should use a trusted base URL (e.g., from configuration) instead of relying on user-supplied input.

Vulnerable vs. Patched Code

Vulnerable Code (CraftMyCMS 4.0.2.2):

<?php
// Vulnerable: Directly uses HTTP_HOST
$resetLink = "http://" . $_SERVER['HTTP_HOST'] . "/reset?token=" . $token;
mail($userEmail, "Password Reset", "Click here: " . $resetLink);
?>

Patched Code (Hypothetical):

<?php
// Patched: Use a trusted base URL from configuration
$baseUrl = "https://legitimate-cms.com";
$resetLink = $baseUrl . "/reset?token=" . $token;
mail($userEmail, "Password Reset", "Click here: " . $resetLink);
?>

The patched version uses a hardcoded or configuration-based base URL, eliminating the injection vector.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install CraftMyCMS 4.0.2.2 on a local server (e.g., using XAMPP or Docker).
  2. Set up a simple HTTP server on attacker.com (e.g., using Python: python3 -m http.server 80).
  3. Configure DNS or hosts file to point attacker.com to your local machine.

Exploitation Steps:

  1. Send a POST request to the password reset endpoint with a modified Host header:
    curl -X POST http://victim-cms.com/index.php?action=reset_password \
    -H "Host: attacker.com" \
    -d "email=victim@example.com"
    
  2. The victim receives an email with a reset link pointing to http://attacker.com/reset?token=TOKEN.
  3. When the victim clicks the link, the attacker's server captures the token (e.g., via server logs).
  4. The attacker uses the token to reset the victim's password on the legitimate CMS:
    curl -X POST http://victim-cms.com/index.php?action=confirm_reset \
    -d "token=TOKEN&new_password=NewPass123"
    

Blue Team

Detection:

  • Monitor for unusual Host headers in password reset requests.
  • Check server logs for requests where the Host header does not match the expected domain.
  • Alert on multiple password reset requests from the same IP in a short time.

Prevention:

  • Implement Host header validation in the application.
  • Use a whitelist of allowed Host headers.
  • Deploy a Web Application Firewall (WAF) to block Host header manipulation.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests to the password reset endpoint with a Host header different from the legitimate domain.
    • Emails containing password reset links with domains not owned by the organization.
  • Host:
    • Server logs showing Host: attacker.com in requests to /index.php?action=reset_password.
    • Unusual entries in email logs for password reset emails.

Detection Engineering

YARA Rule

rule CVE_2025_61543_Host_Header_Injection {
    meta:
        description = "Detects Host Header Injection in CraftMyCMS password reset requests"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2025-61543"
    strings:
        $s1 = "reset_password" nocase
        $s2 = "HTTP_HOST" nocase
    condition:
        $s1 and $s2
}

Sigma Rule

title: CraftMyCMS Host Header Injection in Password Reset
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit CVE-2025-61543 by manipulating the Host header in password reset requests.
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
    service: access_log
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/index.php'
        cs-uri-query: 'action=reset_password'
    condition: selection
falsepositives:
    - Legitimate reverse proxy configurations
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-61543 CraftMyCMS Host Header Injection"; flow:to_server; content:"POST"; http_method; content:"/index.php"; http_uri; content:"action=reset_password"; http_client_body; pcre:"/Host:\s*(?!victim-cms\.com)/Hi"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Update: Check for a patched version of CraftMyCMS. If unavailable, apply the hypothetical patch above.
  2. WAF Rule: Deploy a WAF rule to block requests where the Host header does not match the expected domain.
  3. Configuration: If possible, configure the application to use a hardcoded base URL for password reset links.

Long-Term Fixes:

  • Code Review: Ensure all URL generation uses trusted sources, not user-supplied headers.
  • Input Validation: Validate and sanitize the Host header against a whitelist.
  • Security Headers: Implement X-Forwarded-Host validation if behind a proxy.

Valters IT Signature

This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"CraftMyCMS"
http.html:"CraftMyCMS"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-61543/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.