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

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: 490a004630440220192ac7b4aa697588cb24be61bce6471616d4ef234e314f1b6e400b5b33d8f9b302206a9028fff4d5e8bf5c07f1c21ccca39a41eaea8af0cecb3ef32bad895e99092a:922c64590222798bb761d5b6d8e72950