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.03338
    epss-percentile: 0.87436
    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: 490a0046304402207583ed4d648014a2fe62be39349f255794e3ca3fbe1e59673da0497bdcef8f35022006d7c573fbb765d91bf45ef561e183e17ac86ac5965bb2bd23dbc0abaf199d44:922c64590222798bb761d5b6d8e72950