id: liferay-api

info:
  name: Liferay /api/liferay - API Exposed
  author: DhiyaneshDk
  severity: info
  reference: https://github.com/ilmila/J2EEScan/blob/master/src/main/java/burp/j2ee/issues/impl/LiferayAPI.java
  classification:
    cpe: cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: liferay
    product: liferay_portal
    shodan-query: title:"Liferay"
  tags: liferay,exposure,api,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/liferay"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - ".*Internal Server Error.*An error occurred while accessing the requested resource\\..*"

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 404
# digest: 4a0a004730450220762c98ca70e41f646930e9fa04e1f8320dd163c3b6f5712b5372a58f1a505335022100d7993b71becd802670b5539e772b0fa400aac6a315f8320ebc6bc5e75e7818dd:922c64590222798bb761d5b6d8e72950