id: tugboat-config-exposure

info:
  name: Tugboat Configuration File Exposure
  author: geeknik
  severity: critical
  description: A Tugboat configuration file was discovered. Tugboat is a command line tool for interacting with DigitalOcean droplets.
  reference:
    - https://github.com/petems/tugboat
    - https://www.digitalocean.com/community/tools/tugboat
  metadata:
    max-request: 1
  tags: tugboat,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/.tugboat"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "authentication"
          - "access_token"
          - "ssh_user"
        condition: and

    extractors:
      - type: regex
        part: body
        regex:
          - 'access_token: .*'
# digest: 4a0a004730450221008ec2bd2103009d97c901082a8c57d366f55bddc020d23210a31255ec231b8d0102201ed004db44b88a6411123b8559220e2351710221f27e59ab060a4198cd25b62b:922c64590222798bb761d5b6d8e72950