PT-2019-14761

CVE-2019-16676

·

Published

2019-09-30

·

Updated

2019-10-04

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Plataformatec Simple Form versions prior to 5.0
Description The issue is related to incorrect access control in the file method? function, located in lib/simple form/form builder.rb. This allows a user-supplied string to be invoked as a method call, potentially leading to code execution, denial of service, or information disclosure. For example, an attacker could manipulate input to call actions like #destroy or execute computation-intensive methods. The issue only affects pages that build forms based on user-provided input.
Recommendations For versions prior to 5.0, upgrade to version 5.0 to fix the issue. As a temporary workaround, consider explicitly passing the input type using the as option, such as <%= form.input :avatar, as: :file %>, to avoid relying on Simple Form's automatic discovery of input types. If your application does not build forms based on user-provided input, you are not affected by this issue.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-R74Q-GXCG-73HX
Found an issue in the description? Have something to add? Feel free to write us 👾