id: routes-ini

info:
  name: routes.ini File Exposure
  author: geeknik
  severity: info
  metadata:
    verified: true
    max-request: 15
    google-query: intitle:"index of" "routes.ini"
    github-query: filename:routes.ini
  tags: routes,config,exposure,files

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"
    payloads:
      paths:
        - "/routes.ini"
        - "/config/routes.ini"
        - "/admin/configs/routes.ini"
        - "/application/configs/routes.ini"
        - "/aplicacao/routes/configs/routes.ini"
        - "/routes/configs/routes.ini"
        - "/cloudexp/routes/configs/routes.ini"
        - "/cms/routes/configs/routes.ini"
        - "/moto/routes/configs/routes.ini"
        - "/Partners/routes/configs/routes.ini"
        - "/radio/routes/configs/routes.ini"
        - "/seminovos/routes/configs/routes.ini"
        - "/shop/routes/configs/routes.ini"
        - "/site_cg/routes/configs/routes.ini"
        - "/slr/routes/configs/routes.ini"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "defaults.action"
          - "routes.admin"
        condition: and

      - type: word
        part: body
        words:
          - "[routes]"
          - "GET /"
        condition: and
# digest: 4a0a004730450220087081d254941ead7496dc85c00fc6cf685b6b16328afaf058dbe0b8d322200f02210091e2c123c0b8e2b77df0d9cbe2f7777866b49be0d52229c03866260685e42695:922c64590222798bb761d5b6d8e72950