Exploit databaseDownload repository ZIP
GH-e73e7d824bb9d2234457b41188e85b62
rusakovichma/cve-2019-10172
Sources for CVE-2019-10172
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files4
rusakovichma/cve-2019-10172Revision 41c52d46bc4f
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/main/java/com/github/rusakovichma/cve201910172/SecureDOMDeserializer.java
Suggested starting fileJava · 766 bytespackage com.github.rusakovichma.cve201910172;
import com.github.rusakovichma.cve201910172.model.Person;
import com.github.rusakovichma.cve201910172.secure.DOMDeserializer;
import org.codehaus.jackson.map.DeserializationContext;
import org.w3c.dom.Document;
public class SecureDOMDeserializer extends DOMDeserializer<Person> {
public SecureDOMDeserializer() {
super(Person.class);
}
public Person _deserialize(String value, DeserializationContext ctxt) {
Document doc = this.parse(value);
Person person = new Person();
person.age = Integer.valueOf(doc.getElementsByTagName("age").item(0).getTextContent());
person.name = doc.getElementsByTagName("name").item(0).getTextContent();
return person;
}
}