MantisBT: master c494f763

Author Committer Branch Timestamp Parent
dregad dregad master 2026-09-04 11:29 master b7cd66ce
Affected Issues  0037121: CVE-2026-47156: SOAP API Authentication Bypass -> Privilege Escalation to Administrator
 0037361: Incomplete fix for CVE-2026-47156: SOAP cookie auth bypass via username case collision on PostgreSQL
Changeset

Prevent SOAP API auth bypass on case-sensitive DB

This is a follow-up on commit e3571c319b1721b41b0dc4b5b5203cbdcbe0c2ee.

The patch relied on the username provided in the SOAP request to perform
login, instead of using the one from the account matching the provided
cookie string.

Case-sensitive databases such as PostgreSQL allow creation of distinct
user accounts with names differing only by case (e.g. administrator /
ADMINISTRATOR). On such systems, the authentication bypass remains
possible because of that.

We now retrieve the username from the user id matching the cookie.

Fixes 0037121, 0037361, GHSA-c2xg-qjqw-2v98

mod - api/soap/mc_api.php Diff File