Skip to content
github.com https://github.com/adminneo-org/adminneo/security/advisories/GHSA-w8j4-8pww-wm83 Code

github.com https://github.com/adminneo-org/adminneo/security/advisories/GHSA-w8j4-8pww-wm83 Code

github.com • November 17, 2026

The MS SQL driver passes the login username to sqlsrv_connect() as "UID" => $username . When the username is empty, the Microsoft Drivers for PHP for SQL Server fall back to Windows integrated authentication : the connection is made as the identity of the PHP process (e.g. the IIS application-pool account) and the supplied password is ignored.

AdminNeo's only pre-connection credential guard is Origin::authenticate() , which rejects an empty password but not an empty username. Any non-empty password therefore passes the check, and the connection proceeds with ambient Windows credentials. Other drivers guard this with openPasswordless() ; the MS SQL driver has no equivalent. The username reaches the driver unmodified from $_POST["auth"] → $_GET["username"] → getCredentials() .

Tested (static): AdminNeo 5.9.1-dev , branch main , commit a4fe19b3 (unchanged on origin/main as of 2026-11-04).

Affected range: all releases shipping the sqlsrv -based MS SQL driver with this UID /empty-username handling; still present on main .

Environment-gated: exploitable only on Windows with the sqlsrv extension, against a SQL Server that accepts the web server's Windows/Kerberos identity. Not applicable to PDO_DBLIB / Linux deployments.

admin/drivers/mssql.inc.php:36-59 — open() builds $connectionInfo = ["UID" => $username, "PWD" => $password, ...] and calls sqlsrv_connect() ; no rejection of empty $username .

admin/core/Origin.php:182-194 — authenticate() rejects only an empty password.

admin/core/Origin.php:157 — getCredentials() returns $_GET["username"] verbatim.

Reproduction (proof of concept)

Verified by source trace and by the scan's independent verification panel (voted TRUE_POSITIVE / HIGH). Not reproduced live here because the repro requires a Windows + sqlsrv host, which is unavailable in this environment — flagged honestly so the maintainer can confirm on a Windows instance.

Deploy AdminNeo on Windows/IIS with the sqlsrv extension, pointed at a SQL Server where the app-pool identity has a login (a common default).

On the login page choose MS SQL and submit username "" with any non-empty password x .

Expected: sqlsrv_connect() with an empty UID connects via Windows Authentication as the app-pool identity; Origin::authenticate() accepts the non-empty password; a full authenticated AdminNeo session opens.

On the affected configuration, an unauthenticated visitor obtains a full AdminNeo session with the web-server account's SQL Server privileges, submitting only an empty username and any password. This bypasses AdminNeo's stated policy that it "does not support accessing a database without a password."

In the MS SQL driver, reject an empty $username before sqlsrv_connect() unless an explicit configuration option opts into integrated authentication.

Alternatively, extend the openPasswordless() / empty-credential policy to cover drivers where an empty username means ambient OS credentials (MS SQL; and review PostgreSQL .pgpass /SSPI/GSSAPI).

Not in the published advisories (the upstream MSSQL GHSA, GHSA-r4x9-5m63-3vxw , is a PDO DSN-injection SSRF — a different mechanism). No GHSA id in the git trail on these lines; absent from CHANGELOG.md . Still present on origin/main at a4fe19b3 as of 2026-11-04.

CWE-287 (Improper Authentication), CWE-1390 (Weak Authentication)

Microsoft Drivers for PHP for SQL Server — connecting with Windows Authentication

Extracted Entities