Is code injection possible in Java?

前端 未结 8 1980
谎友^
谎友^ 2021-02-04 07:17

nowadays you can read much about code injection, exploits, buffer-, stack- and heap-overflows etc. leading to inject and run code. I wonder what of this stuff is relevant for Ja

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 07:28

    If the server application creates bytecode at runtime (for example with BCEL or Javassist), and if this creation can be influenced by user input, then a code injection is possible.

    However, if you application uses no magic (which should be 99% of all applications), it will not be possible.

提交回复
热议问题