Lookup for vulnerable packages by Package URL.
| Purl | pkg:composer/symfony/form@2.7.38 |
| Type | composer |
| Namespace | symfony |
| Name | form |
| Version | 2.7.38 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 2.7.50 |
| Latest_non_vulnerable_version | 6.2.6 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-frbz-vpfe-vbh9 |
| vulnerability_id |
VCID-frbz-vpfe-vbh9 |
| summary |
Unrestricted Upload of File with Dangerous Type
When using the scalar type hint `string` in a setter method (e.g. `setName(string$name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2018-19789
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-frbz-vpfe-vbh9 |
|
|
| Fixing_vulnerabilities |
| 0 |
| url |
VCID-xdtu-22ad-63aq |
| vulnerability_id |
VCID-xdtu-22ad-63aq |
| summary |
Attacker can read all files content on the server
When a form is submitted by the user, the request handler classes of the Form component merge POST data (known as the `$_POST` array in plain PHP) and uploaded files data (known as the `$_FILES` array in plain PHP) 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 locale 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2017-16790
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-xdtu-22ad-63aq |
|
|
| Risk_score | null |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:composer/symfony/form@2.7.38 |