CVE-2017-16790
An issue was discovered in Symfony before 2.7.38, 2.8.31, 3.2.14, 3.3. ...
Overview
Description
An issue was discovered in Symfony before 2.7.38, 2.8.31, 3.2.14, 3.3.13, 3.4-BETA5, and 4.0-BETA5. When a form is submitted by the user, the request handler classes of the Form component merge POST data and uploaded files data into one array. This big array forms the data that are then bound to the form. At this stage there is no difference anymore between submitted POST data and uploaded files. A user can send a crafted HTTP request where the value of a "FileType" is sent as normal POST data that could be interpreted as a local file path on the server-side (for example, "file:///etc/passwd"). If the application did not perform any additional checks about the value submitted to the "FileType", the contents of the given file on the server could have been exposed to the attacker.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-20
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Composer (PHP) | symfony/form | >=2.7.0, <2.7.38>=2.8.0, <2.8.31>=3.0.0, <3.2.14>=3.3.0, <3.3.13>=3.0.0, <3.1.0+2 more | 2.7.382.8.313.2.143.3.13 |
| Composer (PHP) | symfony/symfony | >=2.7.0, <2.7.38>=2.8.0, <2.8.31>=3.0.0, <3.2.14>=3.3.0, <3.3.13>=3.1.0, <3.2.0+2 more | 2.7.382.8.313.2.143.3.13 |
Open a package to see all its vulnerabilities.
Operating systems · 6 fixes
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | symfony | 3.4.0+dfsg-1 |
| 12 | symfony | 3.4.0+dfsg-1 |
| 13 | symfony | 3.4.0+dfsg-1 |
| 14 | symfony | 3.4.0+dfsg-1 |
| 9 | symfony | 2.8.7+dfsg-1.3+deb9u1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| symfony | 3.4.0+dfsg-1 |
References
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/form/CVE-2017-16790.yaml
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2017-16790.yaml
- github.com https://github.com/symfony/form
- github.com https://github.com/symfony/symfony/pull/24993
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-16790
- symfony.com https://symfony.com/blog/cve-2017-16790-ensure-that-submitted-data-are-uploaded-files
- symfony.com https://symfony.com/cve-2017-16790
- www.debian.org https://www.debian.org/security/2018/dsa-4262
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.