id: juniper-panel

info:
  name: Juniper J-Web Panel - Detect
  author: bhutch
  severity: info
  description: |
    Juniper J-Web panel was detected.
  reference:
    - https://www.juniper.net/documentation/us/en/software/jweb-ex/jweb-ex-application-package/topics/concept/ex-series-j-web-interface-overview.html
  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
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Juniper Web Device Manager"
  tags: panel,juniper,vpn,login

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

    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '(i?)<title>(Log In - )?Juniper Web Device Manager</title>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: model
        part: body
        group: 1
        regex:
          - 'var modelphpStr = "(.*?)";'
# digest: 4a0a00473045022004c0d2b36304a31056af737785895e9764ed7284d24339b57b5c784cee9a7776022100dd85f721e16e08bcece7bb1e43b83698501c296ba473db56d02e77adbd8bfede:922c64590222798bb761d5b6d8e72950