PT-2019-14761 · Plataformatec · Simpleform

Published

2019-09-30

·

Updated

2019-10-04

·

CVE-2019-16676

CVSS v3.1

9.8

Critical

VectorAV: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.

Exploit

Fix

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2019-16676
GHSA-R74Q-GXCG-73HX

Affected Products

Simpleform