id: emby-panel

info:
  name: Emby Login Panel - Detect
  author: idealphase
  severity: info
  description: |
    Emby login panel was detected.
  reference:
    - https://github.com/MediaBrowser/Emby
    - https://emby.media/
  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:emby:emby:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: emby
    shodan-query: http.title:"emby"
    vendor: emby
    verified: true
  tags: panel,emby,oss

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Emby</title>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<script src="apploader\.js\?v=(.+)" defer><\/script>'
# digest: 4a0a004730450221009b910f6bb89355ef6ba546d41911128e71fb947e4e0e2cb325b606cce571480c0220706bac9c0a358605846edad741c924c940a1806f5cc15a5a17f203989a91428f:922c64590222798bb761d5b6d8e72950