8000 [Security] Patch for CVE-2018-12040 on Symfony 3.4.x · Issue #28002 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] Patch for CVE-2018-12040 on Symfony 3.4.x #28002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sundowndev opened this issue Jul 19, 2018 · 3 comments
Closed

[Security] Patch for CVE-2018-12040 on Symfony 3.4.x #28002

sundowndev opened this issue Jul 19, 2018 · 3 comments

Comments

@sundowndev
Copy link

This CVE is open since January and haven't been fixed. Details here

The report tags Symfony 3.3.6 but it's still present on 3.4.6.

SensioLabs Symfony version 3.3.6 - Cross-Site Scripting (Reflect)

# Exploit Title: SensioLabs Symfony version 3.3.6 - Cross-Site Scripting (Reflect)
# Date: 08-06-2018
# Software Link: https://symfony.com/
# Exploit Author: HaMM0nz (Chakrit S.), a member of KPMG Cyber Security team in Thailand
# CVE: CVE-2018-12040
# Category: webapps

1. Description

Symfony is a set of PHP Components, a Web Application framework, a Philosophy, and a Community  all working together in harmony. (Copied from homepage.)

2. Proof of Concept

1. Navigate to http://www.example.com/_profiler/ , by default the credential is not required to access this component.
2. Insert any non-existence path in the website for example, a random path is "http://www.example.com/qwertyuio".
3. In the Symfony profiler navigate to the row with HTTP response code "404" and click to the "Token" link in page.
4. Go to Exception pane and follow the any link in the page e.g. "vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php"
5. Inject <script>alert("XSS")</script> into "file" parameter , the PoC exploit will be "http://www.example.com/_profiler/open?file=<script>alert("XSS")</script>".

3. Timeline

3.1 Discovery and report - 5 June 2018.
3.2 CVE ID was assigned - 8 June 2018.
3.3 Public - 8 June 2018.

4. Solution

Upgrade the Symfony to the version 4.1 or higher.
@fabpot
Copy link
Member
fabpot commented Jul 19, 2018

The profile is a debug tool. As such, it must never be deployed on production server. We do not guarantee that such development tools don't have security issues (actually, we can guarantee the contrary). As such, there is nothing to fix. If we can workaround this, fell free to submit a pull request.

@fabpot fabpot closed this as completed Jul 19, 2018
@xabbuh
Copy link
Member
xabbuh commented Jul 19, 2018

The issue should also have been fixed by #26922 and #26980 which were part of the 3.4.9 release.

@sundowndev
Copy link
Author
sundowndev commented Jul 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0