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,discovery

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