Exploit databaseDownload repository ZIP
GH-9a017fa45abc7e1f8f6ba6e1285cae54
iplayforsg/cve-2023-51444
Sources for CVE-2023-51444
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files36
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- filter/
- gml2/
- gml3/
- v1_0_0/
- v1_1_0/
- v2_0/
- ApplicationSchemaConfiguration.java
- ApplicationSchemaConfiguration2.java
- ApplicationSchemaXSD.java
- ApplicationSchemaXSD1.java
- ApplicationSchemaXSD2.java
- CurveTypeWrapper.java
- FeatureTypeSchema.java
- FeatureTypeSchemaBuilder.java
- GML2OutputFormat.java
- GML2OutputFormat2.java
- GML2Profile.java
- GML32OutputFormat.java
- GML3FeatureTransformer.java
- GML3GeometryTranslator.java
- GML3OutputFormat.java
- GML3Profile.java
- GMLSchemaTranslator.java
- NameSpaceElement.java
- NameSpaceTranslator.java
- NameSpaceTranslatorFactory.java
- PropertyTypePropertyExtractor.java
- SchemaCleanerCallback.java
- SqlViewParamsExtractor.java
- TypeMappingProfile.java
- WFSHandlerFactory.java
- WFSURIHandler.java
- WFSXmlUtils.java
- XMLSchemaTranslator.java
- XSProfile.java
- XSQNameBinding.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wfs/src/main/java/org/geoserver/wfs/xml/XSProfile.java
Java · 2,618 bytes/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wfs.xml;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.xml.namespace.QName;
import org.geotools.feature.AttributeTypeBuilder;
import org.geotools.feature.NameImpl;
import org.geotools.feature.type.ProfileImpl;
import org.geotools.feature.type.SchemaImpl;
import org.geotools.xs.XS;
import org.geotools.xs.XSSchema;
import org.opengis.feature.type.Name;
import org.opengis.feature.type.Schema;
/** A profile of {@link XSSchema} which makes the java class to type mapping unique. */
public class XSProfile extends TypeMappingProfile {
static Set<Schema> profiles = new HashSet<>();
static {
Set<Name> proper = new HashSet<>();
proper.add(name(XS.BYTE)); // Byte.class
proper.add(name(XS.HEXBINARY)); // byte[].class
proper.add(name(XS.SHORT)); // Short.class
proper.add(name(XS.INT)); // Integer.class
proper.add(name(XS.FLOAT)); // Float.class
proper.add(name(XS.LONG)); // Long.class
proper.add(name(XS.QNAME)); // Qname.class
proper.add(name(XS.DATE)); // java.sql.Date.class
proper.add(name(XS.DATETIME)); // java.sql.Timestamp.class
proper.add(name(XS.TIME)); // java.sql.Time.class
proper.add(name(XS.BOOLEAN)); // Boolean.class
proper.add(name(XS.DOUBLE)); // Double.class
proper.add(name(XS.STRING)); // String.class
proper.add(name(XS.INTEGER)); // BigInteger.class
proper.add(name(XS.DECIMAL)); // BigDecimal.class
proper.add(name(XS.ANYURI)); // URI.class
profiles.add(new ProfileImpl(new XSSchema(), proper));
// date mappings between java and xml schema are kind of messed up, so
// we create a custom schema which also contains a mapping for
// java.util.Date
Schema additional = new SchemaImpl(XS.NAMESPACE);
AttributeTypeBuilder ab = new AttributeTypeBuilder();
ab.setName("date");
ab.setBinding(Date.class);
additional.put(name(XS.DATETIME), ab.buildType());
profiles.add(new ProfileImpl(additional, Collections.singleton(name(XS.DATETIME))));
// profile.add(name(XS.ANYTYPE)); //Map.class
}
static Name name(QName qName) {
return new NameImpl(qName.getNamespaceURI(), qName.getLocalPart());
}
public XSProfile() {
super(profiles);
}
}