RCE via GitHub import
> Sawyer is a crazy class that converts a hash to an object whose methods are based on the hash's key:<p>People keep adding hidden interpreters and 'exec' commands in their projects where no one expects them to be. As far as I can tell the library is just supposed to make HTTP requests, it's just a fancy client library?<p>This needs to be the kind of thing that developers are trained on, like "don't hash passwords" and "don't build up SQL strings from untrusted input". "Don't build your own 'exec' and hide it in your library, don't reinvent object serialization".<p>There is almost always a better way to solve a problem than by transmitting arbitrary code. <i>Sometimes there isn't</i> but it's rare, and in those cases it's very explicit ie: "I'm sending this database a query, I expect it to execute it".