Improving callable service objects with private constructors in Ruby
· 6 min read
Privatizing the constructor methods of callable services in Ruby on Rails for cleaner APIs and tests.
On 2019-08-02 we at bitcrowd discovered a security vulnerability in simple_form
. simple_form
is one of the go-to ways to easily handle HTML forms in Ruby on Rails. The security issue allows arbitrary code execution in the worst case, but at least has potential for data corruption or DOS attacks. This security issue was responsibly disclosed by bitcrowd. Find details about the timeline of the events and a more detailed description below.