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 files47
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- ActionTypeBinding.java
- AllSomeTypeBinding.java
- BaseRequestTypeBinding.java
- Base_TypeNameListTypeBinding.java
- DeleteElementTypeBinding.java
- DescribeFeatureTypeTypeBinding.java
- FeatureCollectionTypeBinding.java
- FeatureReferenceTypeBinding.java
- FeatureTypeListTypeBinding.java
- FeatureTypeTypeBinding.java
- FeaturesLockedTypeBinding.java
- FeaturesNotLockedTypeBinding.java
- GMLObjectTypeListTypeBinding.java
- GMLObjectTypeTypeBinding.java
- GetCapabilitiesTypeBinding.java
- GetFeatureTypeBinding.java
- GetFeatureWithLockTypeBinding.java
- GetGmlObjectTypeBinding.java
- IdentifierGenerationOptionTypeBinding.java
- InsertElementTypeBinding.java
- InsertResultTypeBinding.java
- InsertedFeatureTypeBinding.java
- LockFeatureResponseTypeBinding.java
- LockFeatureTypeBinding.java
- LockTypeBinding.java
- MetadataURLTypeBinding.java
- NativeTypeBinding.java
- OperationTypeBinding.java
- OperationsTypeBinding.java
- OutputFormatListTypeBinding.java
- PropertyTypeBinding.java
- QueryTypeBinding.java
- ResultTypeTypeBinding.java
- TransactionResponseTypeBinding.java
- TransactionResultsTypeBinding.java
- TransactionSummaryTypeBinding.java
- TransactionTypeBinding.java
- TypeNameListTypeBinding.java
- UpdateElementTypeBinding.java
- WFS.java
- WFSConfiguration.java
- WFSSchemaLocationResolver.java
- WFS_CapabilitiesTypeBinding.java
- WfsXmlReader.java
- XlinkPropertyNameBinding.java
- XmlSchemaEncoder.java
- wfs.xsd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wfs/src/main/java/org/geoserver/wfs/xml/v1_1_0/GetFeatureTypeBinding.java
Java · 10,659 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.v1_1_0;
import java.math.BigInteger;
import javax.xml.namespace.QName;
import net.opengis.wfs.GetFeatureType;
import net.opengis.wfs.QueryType;
import net.opengis.wfs.ResultTypeType;
import net.opengis.wfs.WfsFactory;
import org.eclipse.emf.common.util.EList;
import org.geoserver.wfs.xml.SqlViewParamsExtractor;
import org.geotools.util.Converters;
import org.geotools.xsd.AbstractComplexBinding;
import org.geotools.xsd.ElementInstance;
import org.geotools.xsd.Node;
/**
* Binding object for the type http://www.opengis.net/wfs:GetFeatureType.
*
* <p>
*
* <pre>
* <code>
* <xsd:complexType name="GetFeatureType">
* <xsd:annotation>
* <xsd:documentation>
* A GetFeature element contains one or more Query elements
* that describe a query operation on one feature type. In
* response to a GetFeature request, a Web Feature Service
* must be able to generate a GML3 response that validates
* using a schema generated by the DescribeFeatureType request.
* A Web Feature Service may support other possibly non-XML
* (and even binary) output formats as long as those formats
* are advertised in the capabilities document.
* </xsd:documentation>
* </xsd:annotation>
* <xsd:complexContent>
* <xsd:extension base="wfs:BaseRequestType">
* <xsd:sequence>
* <xsd:element maxOccurs="unbounded" ref="wfs:Query"/>
* </xsd:sequence>
* <xsd:attribute default="results" name="resultType"
* type="wfs:ResultTypeType" use="optional">
* <xsd:annotation>
* <xsd:documentation>
* The resultType attribute is used to indicate
* what response a WFS should return to user once
* a GetFeature request is processed.
* Possible values are:
* results - meaning that the full response set
* (i.e. all the feature instances)
* should be returned.
* hits - meaning that an empty response set
* should be returned (i.e. no feature
* instances should be returned) but
* the "numberOfFeatures" attribute
* should be set to the number of feature
* instances that would be returned.
* </xsd:documentation>
* </xsd:annotation>
* </xsd:attribute>
* <xsd:attribute default="text/xml; subtype=gml/3.1.1"
* name="outputFormat" type="xsd:string" use="optional">
* <xsd:annotation>
* <xsd:documentation>
* The outputFormat attribute is used to specify the output
* format that the Web Feature Service should generate in
* response to a GetFeature or GetFeatureWithLock element.
* The default value of 'text/xml; subtype=gml/3.1.1'
* indicates that the output is an XML document that
* conforms to the Geography Markup Language (GML)
* Implementation Specification V3.1.1.
* For the purposes of experimentation, vendor extension,
* or even extensions that serve a specific community of
* interest, other acceptable output format values may be
* used to specify other formats as long as those values
* are advertised in the capabilities document.
* For example, the value WKB may be used to indicate that a
* Well Known Binary format be used to encode the output.
* </xsd:documentation>
* </xsd:annotation>
* </xsd:attribute>
* <xsd:attribute name="maxFeatures" type="xsd:positiveInteger" use="optional">
* <xsd:annotation>
* <xsd:documentation>
* The maxFeatures attribute is used to specify the maximum
* number of features that a GetFeature operation should
* generate (regardless of the actual number of query hits).
* </xsd:documentation>
* </xsd:annotation>
* </xsd:attribute>
* <xsd:attribute name="traverseXlinkDepth" type="xsd:string" use="optional">
* <xsd:annotation>
* <xsd:documentation>
* This attribute indicates the depth to which nested property
* XLink linking element locator attribute (href) XLinks are
* traversed and resolved if possible. A value of "1"
* indicates that one linking element locator attribute
* (href) Xlink will be traversed and the referenced element
* returned if possible, but nested property XLink linking
* element locator attribute (href) XLinks in the returned
* element are not traversed. A value of "*" indicates that
* all nested property XLink linking element locator attribute
* (href) XLinks will be traversed and the referenced elements
* returned if possible. The range of valid values for this
* attribute consists of positive integers plus "*".
* If this attribute is not specified then no xlinks shall be
* resolved and the value of traverseXlinkExpiry attribute (if
* it specified) may be ignored.
* </xsd:documentation>
* </xsd:annotation>
* </xsd:attribute>
* <xsd:attribute name="traverseXlinkExpiry"
* type="xsd:positiveInteger" use="optional">
* <xsd:annotation>
* <xsd:documentation>
* The traverseXlinkExpiry attribute value is specified in
* minutes. It indicates how long a Web Feature Service
* should wait to receive a response to a nested GetGmlObject
* request.
* This attribute is only relevant if a value is specified
* for the traverseXlinkDepth attribute.
* </xsd:documentation>
* </xsd:annotation>
* </xsd:attribute>
* </xsd:extension>
* </xsd:complexContent>
* </xsd:complexType>
*
* </code>
* </pre>
*
* @generated
*/
public class GetFeatureTypeBinding extends AbstractComplexBinding {
WfsFactory wfsfactory;
public GetFeatureTypeBinding(WfsFactory wfsfactory) {
this.wfsfactory = wfsfactory;
}
/** @generated */
@Override
public QName getTarget() {
return WFS.GETFEATURETYPE;
}
/** Sets execution mode to be before */
@Override
public int getExecutionMode() {
return BEFORE;
}
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
@Override
public Class<GetFeatureType> getType() {
return GetFeatureType.class;
}
/**
*
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated modifiable
*/
@Override
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
GetFeatureType getFeature = wfsfactory.createGetFeatureType();
// lt;xsd:element maxOccurs="unbounded" ref="wfs:Query"/>
@SuppressWarnings("unchecked")
EList<QueryType> query = getFeature.getQuery();
query.addAll(node.getChildValues(QueryType.class));
// <xsd:attribute default="results" name="resultType"
// type="wfs:ResultTypeType" use="optional">
if (node.hasAttribute("resultType")) {
getFeature.setResultType((ResultTypeType) node.getAttributeValue("resultType"));
}
// <xsd:attribute default="text/xml; subtype=gml/3.1.1"
// name="outputFormat" type="xsd:string" use="optional">
if (node.hasAttribute("outputFormat")) {
getFeature.setOutputFormat((String) node.getAttributeValue("outputFormat"));
}
// <xsd:attribute name="maxFeatures" type="xsd:positiveInteger" use="optional">
if (node.hasAttribute("maxFeatures")) {
getFeature.setMaxFeatures((BigInteger) node.getAttributeValue("maxFeatures"));
}
// support startIndex from wfs 2.0
if (node.hasAttribute("startIndex")) {
// since this is not going to be defined as a type in the schema we have to manually
// convert it since the parser won't parse it into the correct type for us
getFeature.setStartIndex(
Converters.convert(node.getAttributeValue("startIndex"), BigInteger.class));
}
// <xsd:attribute name="traverseXlinkDepth" type="xsd:string" use="optional">
if (node.hasAttribute("traverseXlinkDepth")) {
getFeature.setTraverseXlinkDepth((String) node.getAttributeValue("traverseXlinkDepth"));
}
// <xsd:attribute name="traverseXlinkExpiry"
// type="xsd:positiveInteger" use="optional">
if (node.hasAttribute("traverseXlinkExpiry")) {
getFeature.setTraverseXlinkExpiry(
(BigInteger) node.getAttributeValue("traverseXlinkExpiry"));
}
// viewParams
SqlViewParamsExtractor.viewParams(getFeature, node);
return getFeature;
}
}