Hacker News new | ask | show | jobs
by adrusi 1817 days ago
The clojure reader supports the #= prefix before a form, which will cause the reader to read the following form, pass it to eval, and use the result as if it were part of the passed in data.

    (def #=(symbol "foo") :bar)
Gets read as

    (def foo :bar)
1 comments

Yeah, so someone could provide a malicious input like:

    (read-string "#=(launch-the-missiles)")