We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [malicious-code]

Code that harms the system, data, or private information. Viruses, trojans, spyware, etc. are forms of malicious code.

Filter by
Sorted by
Tagged with
51
votes
13answers
10k views

Why are eval-like features considered evil, in contrast to other possibly harmful features?

Most modern languages (which are somehow interpreted) have some kind of eval function. Such a function executes arbitrary language code, most of the time passed as the main argument as a string (...
1
vote
1answer
1k views

Is parsing a submitted JSON object safe?

I have a RESTful API, built in NODE.js that does what you would expect it to: consumes data and then makes it accessible. Currently, data being submitted to my server is nested form data: data[0][...
2
votes
3answers
5k views

Avoid malicious code while dynamically loading classes with ClassLoader

Background One of the advantages of decoupled components in systems is that you can extend the system without having to touch the existing code. Sometimes you don't even have to recompile the old ...