Symfony _fragment - Detect
ID: symfony-fragment
Severity: unknown
Author: Palanichamy_perumal,TechbrunchFR
Tags: config,exposure,symfony,misconfig
Description
Section titled “Description”Symfony servers support a ”/_fragment” command that allows clients to provide custom PHP commands and return the HTML output.
YAML Source
Section titled “YAML Source”id: symfony-fragment
info: name: Symfony _fragment - Detect author: Palanichamy_perumal,TechbrunchFR severity: unknown description: | Symfony servers support a "/_fragment" command that allows clients to provide custom PHP commands and return the HTML output. reference: | - https://portswigger.net/daily-swig/symfony-based-websites-open-to-rce-attack-research-finds - https://medium.com/@m4cddr/how-i-got-rce-in-10-websites-26dd87441f22 - https://al1z4deh.medium.com/how-i-hacked-28-sites-at-once-rce-5458211048d5 - https://github.com/ambionics/symfony-exploits classification: cpe: cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: sensiolabs product: symfony shodan-query: http.html:"symfony Profiler" tags: config,exposure,symfony,misconfig
http: - method: GET path: - '{{BaseURL}}/_fragment'
matchers-condition: and matchers: - type: dsl dsl: - "status_code == 403" - "contains(body, 'Symfony') || contains(body, '403 Forbidden')" - "(\"8b2f83102bc96e5068d36df80301a64d\" == md5(body)) || (\"4df206fbc337c398c3b669172934c8cb\" == md5(body))" condition: and# digest: 490a004630440220619873d9561427b54321086df15e189f8ddebf40822b4e509ad85962634130d1022047b1d557bfd52a101d05b48c535a7a623d84b7c678f94c67b8f0bea322d0d484:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/misconfiguration/symfony/symfony-fragment.yaml"