From c0ab9a7f6e836c9654c6dd885060c111f9595056 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 25 Jul 2026 18:03:08 +0100 Subject: [PATCH] Add note that mssql_query() example uses a removed extension Co-Authored-By: Claude Sonnet 5 --- security/database.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/security/database.xml b/security/database.xml index 354d833be251..7ff968a9a195 100644 --- a/security/database.xml +++ b/security/database.xml @@ -330,6 +330,16 @@ $result = mssql_query($query); running with sufficient privileges, the attacker would now have an account with which to access this machine. + + + The mssql_query function belonged to the + mssql extension, which was + removed in PHP 7.0.0. + It is used here only to illustrate the attack; current code connecting + to MSSQL Server should use the sqlsrv or + pdo_sqlsrv extensions instead. + + Some examples above are tied to a specific database server, but it