I am encoding an application in which I want the user to recognize javascript this way:
- The user writes javascript code in the browser, as in the IDE.
- The user saves it and the code will be saved as a string in my No-SQL database (MongoDB / CouchDB).
- The user opens the application a few days later, and I pass this line to a web browser, where the code will be executed using eval ().
Only JSON data will be transmitted between the backend server and the web browser. The server will not do anything in the code line, it will save it directly to the database.
Can this code damage the server?
source
share