id: dolibarr-panel

info:
  name: Dolibarr Login Panel - Detect
  author: pikpikcu,daffainfo,righettod
  severity: info
  description: Dolibarr 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
  metadata:
    max-request: 1
    shodan-query: http.title:"Dolibarr"
  tags: panel,dolibarr

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'Set-Cookie: DOLSESSID_'

      - type: word
        part: body
        words:
          - '<meta name="author" content="Dolibarr Development Team">'
          - 'authentication mode = dolibarr'
          - 'Includes JS of Dolibarr'
          - '<div class="login_table_title center" title="Dolibarr'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<td align="center">Dolibarr ([0-9.]+)<\/td>'
          - '<td class="center">Dolibarr ([0-9.]+)<\/td>'
          - '<div id="infoVersion">Dolibarr ([0-9.]+)<\/div>'
          - 'amp;version=([0-9.]+)'
# digest: 4a0a004730450221008640c66c88cd8ff0f8e974872eca1c0f89c9736b28171af45aec97139d9d2c4e0220745503e0b07acfb8d34f3a92169638c285adfcfe54ecf85cc20183ddcce7b92b:922c64590222798bb761d5b6d8e72950