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

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