News for hackers. Stuff that matters.
Re:CVE-2019-5418 – File Content Disclosure on Rails by mbell on Thursday March 21, 2019 @06:54PM (#19458167)
It requires a specific usage of `render` that is extremely rare. I've never seen it in a real application.
Re:CVE-2019-5418 – File Content Disclosure on Rails by tptacek on Thursday March 21, 2019 @06:57PM (#19458198)
All it requires is "render :file" without the optional format argument. We found it immediately in applications, and other people on our Slack found it in theirs as well (though not necessarily exploitable, situationally).
Re:CVE-2019-5418 – File Content Disclosure on Rails by mbell on Thursday March 21, 2019 @07:56PM (#19458502)
I'm aware of the trigger, `render file:` is, in my experience, extremely rare. I can't recall ever wanting to render a template file located outside the application directory.