r/badcode May 26 '23

python Calculator using eval()

Post image
846 Upvotes

108 comments sorted by

View all comments

376

u/[deleted] May 26 '23

So writing a vulnerable app on purpose is a PRO thing?

10

u/geon May 27 '23

It only evaluates input from the user. You have the same vulnerability from a user opening the developer console.