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: 4b0a004830460221008c8fccf46fcfa6902900e52580d4fa5bc3f8d52a9415cdeb5b46a5cfe8f0ef2e022100b19016befedf21e755bffcec98f5e8171ecaed10a03a817d45b235359340a66f:922c64590222798bb761d5b6d8e72950