id: posthog-admin-panel

info:
  name: PostHog Login Panel - Detect
  author: theabhinavgaur
  severity: info
  description: PostHog login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:posthog:posthog:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: posthog
    product: posthog
    shodan-query: http.title:"posthog"
    fofa-query: title="posthog"
    google-query: intitle:"posthog"
  tags: panel,posthog

http:
  - method: GET
    path:
      - "{{BaseURL}}/login?next=/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>PostHog</title>'
          - 'content="PostHog'
          - 'POSTHOG_HOST'
        condition: or

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