id: traccar-settings-disclosure

info:
  name: Traccar Server Settings - Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Traccar exposes server settings at the /api/server endpoint without authentication.
  reference:
    - https://www.traccar.org/api-reference/
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Traccar"
  tags: traccar,disclosure,unauth,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/server"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"version":'
          - '"forceSettings":'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100c18569d9968865c38d554a6ba16675672a1ed3d26eb81aeae3bb832b30e595f70221009071da30c834607369f5bfe503e663c238e6cd94a29ab57d8caf9979655d1043:922c64590222798bb761d5b6d8e72950