id: CVE-2020-36719

info:
  name: ListingPro < 2.6.1 - Arbitrary Plugin Installation/Activation/Deactivation
  author: ritikchaddha
  severity: critical
  description: |
    The ListingPro - WordPress Directory & Listing Theme for WordPress is vulnerable to Arbitrary Plugin Installation, Activation and Deactivation in versions before 2.6.1. This is due to a missing capability check on the lp_cc_addons_actions function. This makes it possible for unauthenticated attackers to arbitrarily install, activate and deactivate any plugin.
  impact: |
    Unauthenticated attackers can arbitrarily install, activate or deactivate plugins, potentially installing malicious plugins to gain complete site control.
  remediation: |
    Upgrade to ListingPro version 2.6.1 or later.
  reference:
    - https://blog.nintechnet.com/wordpress-listingpro-theme-fixed-a-critical-vulnerability/
    - https://nvd.nist.gov/vuln/detail/CVE-2020-36719
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-36719
    epss-score: 0.04304
    epss-percentile: 0.90172
    cwe-id: CWE-862
    cpe: cpe:2.3:a:cridio:listingpro:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: cridio
    product: listingpro
    fofa-query: body="/wp-content/plugins/listingpro"
  tags: cve,cve2020,wp,wp-pluginwordpress,listingpro,passive,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/listingpro/style.css"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "ListingPro"
          - "Version:"
        condition: and

      - type: dsl
        dsl:
          - compare_versions(detected_version, '< 2.6.1')
          - status_code == 200
        condition: and

    extractors:
      - type: regex
        part: body
        name: detected_version
        group: 1
        regex:
          - '(?i)Version:\s?([\w.]+)'
# digest: 4b0a00483046022100bee89bc5fea5c3c118d9fee92ff3dbdd19f68ec0761bef50f426731d30752406022100e91e4daa0d02ddef35bf6a5739050bb6c1305b6bffa6392fb3dec11dc4c6bc00:922c64590222798bb761d5b6d8e72950