Open emily40830 opened 2 years ago
+1 附上原文
In order to restore data in the same object types, the decoding process needs to be able to instantiate arbitrary classes. This is frequently a source of security problems [5]: if an attacker can get your application to decode an arbitrary byte sequence, they can instantiate arbitrary classes, which in turn often allows them to do terrible things such as remotely executing arbitrary code [6, 7].
是指說在 runtime 用 reflection 的方式動態生成 instance 嗎? 這邊提到的安全問題是不是指可以任意序列與反序列化編譯過後的檔案? 應該如何避免這類操作的產生(反被反序列化),大家有沒有什麼經驗可以分享?