Adi Bhutani Adi Bhutani - 5 months ago 24
Python Question

map(eval, raw_input().split()) less secure?

Referring to this stackoverflow question a comment by "phoris" states that

map(eval, raw_input().split())
is less secure. Can somebody explain how is is it less secure and in what context?

Answer

Any context. It puts user input through eval(), which is a gaping wide security hole.

Comments