id: symfony-fosjrouting-bundle

info:
  name: Symfony FOSJsRoutingBundle
  author: DhiyaneshDk
  severity: info
  reference:
    - https://packagist.org/packages/friendsofsymfony/jsrouting-bundle
    - https://github.com/FriendsOfSymfony/FOSJsRoutingBundle
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"symfony Profiler"
  tags: misconfig,symfony

http:
  - method: GET
    path:
      - '{{BaseURL}}/js/routing?callback=fos.Router.setDatafoobarfoo'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '/**/fos.Router.setDatafoobarfoo({'
          - 'routes'
        condition: and

      - type: word
        part: header
        words:
          - "application/javascript"

      - type: status
        status:
          - 200
# digest: 490a0046304402206f0acc5a603186ab11cf9cef5d8fc2c6d7031faba53f17f5fa2f4b9af816753f0220527aa85477e9f09caf315a9fef5a99f2f6975415dc3deec0d53d2f2c4c94bc8b:922c64590222798bb761d5b6d8e72950