<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>MantisBT - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/mantisbt/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 11 May 2026 19:42:20 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/mantisbt/feed.xml" rel="self" type="application/rss+xml"/><item><title>MantisBT Vulnerable to Stored XSS in File Download</title><link>https://feed.craftedsignal.io/briefs/2026-05-mantisbt-xss/</link><pubDate>Mon, 11 May 2026 19:42:20 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-mantisbt-xss/</guid><description>MantisBT is vulnerable to stored cross-site scripting (XSS) via file_download.php by using the `show_inline=1` parameter with a valid CSRF token to upload a crafted XHTML attachment referencing a JavaScript attachment, leading to arbitrary code execution.</description><content:encoded><![CDATA[<p>MantisBT, a web-based bug tracking system, is vulnerable to a stored cross-site scripting (XSS) attack. The vulnerability exists in the <code>file_download.php</code> script. By exploiting this flaw, an attacker can inject malicious JavaScript code into the application, which will be executed in the context of other users' browsers when they access the affected functionality. The vulnerability is triggered when processing file downloads, specifically when the <code>show_inline=1</code> parameter is used in conjunction with a valid <code>file_show_inline_token</code> CSRF token. This allows an attacker to upload a crafted XHTML attachment that references a JavaScript attachment. The vulnerability affects MantisBT versions 2.28.1 and earlier. This can lead to account takeover, sensitive data leakage, and other malicious activities.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker authenticates to MantisBT as a user with permissions to upload attachments.</li>
<li>Attacker crafts a malicious JavaScript file (e.g., <code>evil.js</code>) containing the XSS payload.</li>
<li>Attacker crafts a malicious XHTML file (e.g., <code>evil.xhtml</code>) that includes the JavaScript file using <code>&lt;script src=&quot;evil.js&quot;&gt;&lt;/script&gt;</code>.</li>
<li>Attacker obtains a valid CSRF token for the <code>file_show_inline_token</code> parameter.</li>
<li>Attacker uploads both the <code>evil.js</code> and <code>evil.xhtml</code> files as attachments to a MantisBT issue.</li>
<li>Attacker crafts a request to <code>file_download.php</code> with the <code>show_inline=1</code> parameter, the valid CSRF token, and the file IDs of the uploaded <code>evil.xhtml</code> attachment.</li>
<li>A victim user clicks a link (or is redirected) to the crafted <code>file_download.php</code> URL.</li>
<li>The server serves the <code>evil.xhtml</code> file inline, which executes the embedded <code>evil.js</code> JavaScript in the victim's browser, allowing the attacker to perform actions on behalf of the victim.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to execute arbitrary JavaScript code in the context of a victim's browser. This can lead to a variety of malicious activities, including session hijacking, defacement of the MantisBT interface, theft of sensitive information, or further exploitation of the MantisBT server or the victim's machine. Given the nature of bug tracking systems, successful exploitation could impact multiple users within an organization, potentially leading to widespread compromise.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Apply the patch provided by MantisBT (26647b2e68ba30b9d7987d4e03d7a16416684bc2) to remediate the vulnerability.</li>
<li>Deploy the Sigma rule &quot;Detect MantisBT XSS via file_download.php&quot; to identify potential exploitation attempts.</li>
<li>Monitor web server logs for requests to <code>file_download.php</code> with the <code>show_inline=1</code> parameter and potentially malicious content in the request.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>xss</category><category>mantisbt</category><category>github advisory</category></item><item><title>MantisBT Content Security Policy Bypass via Attachment Upload (CVE-2026-40597)</title><link>https://feed.craftedsignal.io/briefs/2026-05-mantisbt-csp-bypass/</link><pubDate>Mon, 11 May 2026 19:35:30 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-mantisbt-csp-bypass/</guid><description>A content security policy bypass vulnerability, CVE-2026-40597, exists in MantisBT versions 2.28.1 and earlier, allowing an attacker to bypass the _script-src_ directive by uploading a crafted attachment that, when downloaded, executes as JavaScript due to MIME type sniffing, given a pre-existing XSS / HTML injection vulnerability.</description><content:encoded><![CDATA[<p>MantisBT, a web-based bug tracking system, is vulnerable to a content security policy (CSP) bypass. Specifically, the vulnerability, identified as CVE-2026-40597, allows an attacker to circumvent the CSP's <code>script-src</code> directive. This is achieved by uploading a specially crafted attachment to a MantisBT issue. The vulnerability exists in MantisBT versions 2.28.1 and earlier. An attacker must first inject HTML or XSS. When the attachment is accessed via the <code>file_download.php</code> link, PHP's finfo mechanism incorrectly identifies it as a valid JavaScript MIME type. Because of this, the browser executes the payload within the context of the MantisBT application. This can lead to Cross-Site Scripting (XSS) attacks.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies or exploits an existing XSS or HTML injection vulnerability in MantisBT.</li>
<li>Attacker crafts a malicious payload designed to execute JavaScript code within the browser, and ensures that it will be sniffed as JavaScript by PHP's <code>finfo</code>.</li>
<li>Attacker uploads the crafted payload as an attachment to a MantisBT issue using the standard attachment upload functionality.</li>
<li>MantisBT stores the attachment, associating it with the specific issue.</li>
<li>A user (victim) accesses the issue containing the malicious attachment.</li>
<li>The user clicks the <code>file_download.php</code> link associated with the uploaded attachment.</li>
<li>The webserver serves the attachment via <code>file_download.php</code>. PHP's <code>finfo</code> incorrectly identifies the MIME type of the file as a valid JavaScript MIME type.</li>
<li>The browser imports the attachment as a <code>&lt;script&gt;</code> tag and executes the attacker-controlled JavaScript code within the security context of the MantisBT domain, leading to XSS.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability, in conjunction with a pre-existing XSS or HTML injection, allows an attacker to execute arbitrary JavaScript code in the context of the MantisBT application. This can lead to session hijacking, defacement of the MantisBT interface, sensitive information theft, or other malicious actions performed on behalf of the victim user. Given the wide use of MantisBT in software development and IT support organizations, a successful attack could impact a significant number of users.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade MantisBT to a patched version beyond 2.28.1 as indicated in the advisory (<a href="https://github.com/advisories/GHSA-9c3j-xm6v-j7j3)">https://github.com/advisories/GHSA-9c3j-xm6v-j7j3)</a>.</li>
<li>Deploy the Sigma rule <code>Detect MantisBT CSP Bypass via JavaScript MIME Sniffing</code> to detect attempts to exploit CVE-2026-40597.</li>
<li>Review and harden input validation and output encoding mechanisms to prevent XSS vulnerabilities, which are a prerequisite for exploiting CVE-2026-40597.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>csp-bypass</category><category>xss</category><category>attachment</category><category>mime-sniffing</category></item><item><title>MantisBT Stored XSS Vulnerability via Tag Timeline Display</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-mantisbt-xss/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-mantisbt-xss/</guid><description>A stored HTML injection vulnerability (CVE-2026-33548) exists in MantisBT version 2.28.0, allowing attackers to inject HTML and execute arbitrary JavaScript by manipulating tag names displayed in the timeline due to improper escaping.</description><content:encoded><![CDATA[<p>A stored cross-site scripting (XSS) vulnerability has been identified in MantisBT version 2.28.0. This flaw, tracked as CVE-2026-33548, stems from the improper handling of tag names retrieved from the history when displaying them in the timeline (my_view_page.php). Specifically, the application fails to adequately escape HTML entities within the tag names, allowing an attacker to inject malicious HTML code. If Content Security Policy (CSP) settings are permissive, this injected HTML can be leveraged to execute arbitrary JavaScript code within the context of a user's browser. This can lead to session hijacking, defacement, or other malicious activities. The vulnerability was discovered and responsibly reported by Vishal Shukla. Defenders should upgrade or implement workarounds.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker with appropriate privileges logs into a vulnerable MantisBT instance.</li>
<li>The attacker creates a new tag with a malicious payload embedded in the tag name (e.g., <code>&lt;img src=x onerror=alert(1)&gt;</code>).</li>
<li>The attacker associates the malicious tag with an issue.</li>
<li>The attacker renames the malicious tag, further storing the payload in the history.</li>
<li>A user views the issue's timeline on <code>my_view_page.php</code>.</li>
<li>The application retrieves the tag name from the history without proper escaping.</li>
<li>The malicious HTML is rendered in the user's browser.</li>
<li>If CSP allows, the injected JavaScript executes, leading to XSS.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to execute arbitrary JavaScript code in the context of other MantisBT users' browsers. This can lead to sensitive information disclosure, such as session cookies, which can then be used to hijack user accounts. The impact could also include defacement of the MantisBT interface or redirection of users to malicious websites. The vulnerability affects MantisBT 2.28.0 and requires immediate patching or mitigation.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to a patched version of MantisBT that includes the fix f32787c14d4518476fe7f05f992dbfe6eaccd815.</li>
<li>Apply the suggested workaround by wrapping <code>$this-&gt;tag_name</code> in a <code>string_html_specialchars()</code> call in <code>IssueTagTimelineEvent::html()</code>.</li>
<li>Deploy the Sigma rule &quot;MantisBT Tag Based XSS Attempt&quot; to detect potential exploitation attempts within web server logs.</li>
<li>Monitor web server logs for requests to <code>my_view_page.php</code> containing suspicious tag names with HTML entities as detected by the Sigma rule &quot;MantisBT Suspicious Tag&quot;.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>mantisbt</category><category>xss</category><category>html-injection</category><category>cve-2026-33548</category><category>webserver</category></item><item><title>MantisBT Authentication Bypass via SOAP API on MySQL</title><link>https://feed.craftedsignal.io/briefs/2024-01-mantisbt-auth-bypass/</link><pubDate>Tue, 02 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-mantisbt-auth-bypass/</guid><description>MantisBT instances running on MySQL are vulnerable to an authentication bypass in the SOAP API due to improper type checking on the password parameter, allowing attackers with a valid username to log in without the actual password.</description><content:encoded><![CDATA[<p>MantisBT, a widely used web-based bug tracking system, is susceptible to a critical authentication bypass vulnerability (CVE-2026-30849) affecting instances utilizing MySQL or compatible databases. This flaw stems from inadequate type checking on the password parameter within the SOAP API. Specifically, the vulnerability exists in MantisBT versions prior to 2.28.1. An attacker who knows a valid username can exploit this weakness to gain unauthorized access to the SOAP API, circumventing the need for the correct password. Other database backends are not affected due to their stricter type handling. Successful exploitation grants the attacker the ability to execute any API function accessible to the compromised user, posing a significant risk of data breaches, system compromise, and unauthorized modifications.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies a vulnerable MantisBT instance running on MySQL or a compatible database.</li>
<li>Attacker obtains a valid username for the MantisBT instance (e.g., through OSINT or social engineering).</li>
<li>Attacker crafts a malicious SOAP envelope containing the target username and a manipulated password parameter designed to exploit the type checking vulnerability.</li>
<li>Attacker sends the crafted SOAP request to the MantisBT instance's SOAP API endpoint.</li>
<li>The vulnerable MantisBT instance improperly processes the password parameter due to insufficient type validation.</li>
<li>The MantisBT instance authenticates the attacker as the targeted user without requiring the correct password.</li>
<li>Attacker leverages the authenticated SOAP API session to execute privileged API functions.</li>
<li>Attacker exfiltrates sensitive bug data, modifies bug reports, or performs other malicious actions within the MantisBT system.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to bypass authentication and gain unauthorized access to a MantisBT instance. The impact includes potential data breaches involving sensitive bug reports, project information, and user data. Attackers can modify or delete bug reports, disrupt project workflows, or escalate their access to other systems connected to the MantisBT instance. While the exact number of affected MantisBT installations is unknown, the widespread use of MantisBT across various sectors suggests a potentially broad impact. Disabling the SOAP API mitigates the risk, but still allows the attacker to retrieve user account information including email address and real name.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade MantisBT to version 2.28.1 or later to patch CVE-2026-30849 and remediate the authentication bypass vulnerability.</li>
<li>If upgrading is not immediately feasible, disable the SOAP API as a workaround, referencing the <a href="https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.config.api.disable">MantisBT documentation</a> .</li>
<li>Monitor web server logs for suspicious SOAP API requests containing unusual password parameters indicative of exploitation attempts. Deploy a webserver rule to detect unusual password parameters in SOAP API requests.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>mantisbt</category><category>authentication-bypass</category><category>soap-api</category></item></channel></rss>