Exploit databaseDownload repository ZIP
GH-363954f7470c0baf277ea90d3a71b9fe
scabench/jsonorg-fn1
Sources for CVE-2022-45688
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files22
scabench/jsonorg-fn1Revision 8f8d6314c2ab
- ↑..Parent directory
- CDL.java
- Cookie.java
- CookieList.java
- HTTP.java
- HTTPTokener.java
- JSONArray.java
- JSONException.java
- JSONML.java
- JSONObject.java
- JSONPointer.java
- JSONPointerException.java
- JSONPropertyIgnore.java
- JSONPropertyName.java
- JSONString.java
- JSONStringer.java
- JSONTokener.java
- JSONWriter.java
- Property.java
- XML.java
- XMLParserConfiguration.java
- XMLTokener.java
- XMLXsiTypeConverter.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/main/java/shaded/org/json/XMLXsiTypeConverter.java
Java · 1,218 bytespackage shaded.org.json;
/*
Public Domain.
*/
/**
* Type conversion configuration interface to be used with xsi:type attributes.
* <pre>
* <b>XML Sample</b>
* {@code
* <root>
* <asString xsi:type="string">12345</asString>
* <asInt xsi:type="integer">54321</asInt>
* </root>
* }
* <b>JSON Output</b>
* {@code
* {
* "root" : {
* "asString" : "12345",
* "asInt": 54321
* }
* }
* }
*
* <b>Usage</b>
* {@code
* Map<String, XMLXsiTypeConverter<?>> xsiTypeMap = new HashMap<String, XMLXsiTypeConverter<?>>();
* xsiTypeMap.put("string", new XMLXsiTypeConverter<String>() {
* @Override public String convert(final String value) {
* return value;
* }
* });
* xsiTypeMap.put("integer", new XMLXsiTypeConverter<Integer>() {
* @Override public Integer convert(final String value) {
* return Integer.valueOf(value);
* }
* });
* }
* </pre>
* @author kumar529
* @param <T> return type of convert method
*/
public interface XMLXsiTypeConverter<T> {
T convert(String value);
}