Hi,
I'm coding an application where I want to let the user learn javascript in this way:
- The user write javascript code on the browser like in an IDE.
- The user saves it and the code will be saved as a string in my backend No-SQL database (MongoDB/CouchDB).
- The user opens the application some days later and I pass that string to the web browser where the code will be executed with eval().
There will be only JSON data transferred between backend server and web browser. The server won't do anything on the code string, it will only save it directly into the database.
Could this code possibly do any damage on the server side?