Re:CVE-2019-5418 – File Content Disclosure on Rails
by tibbon on Thursday March 21, 2019 @07:08PM
(#19458271)
Were I evil, I'd be looking at anyone who has upvoted or commented on such SO posts, and then looking at what companies they work for, and trying to run attacks against every site/repo/app they are linked to to see if they use this technique.
Or just, you know, looking in Github for anyone doing this and open sourcing their site.
You have to do something wrong to have the bug --- render a file without specifying the format --- but you have to do something extra to avoid that mistake, and the feature works just fine if you don't, so I'm not surprised that we've found it in real applications.