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 files26
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- CoverageMimeTypeMapper.java
- DimensionBean.java
- FileReference.java
- FormatNameMimeMapper.java
- GMLCovHandler.java
- GMLCoverageResponseDelegate.java
- GMLTransformer.java
- GranuleStack.java
- GranuleStackImpl.java
- ImgMimeTypeMapper.java
- MIMETypeMapper.java
- MultidimensionalCoverageResponse.java
- TimeDimensionHelper.java
- TranslatorHelper.java
- WCS20CoverageMetadataProvider.java
- WCS20DescribeCoverageResponse.java
- WCS20DescribeCoverageTransformer.java
- WCS20GetCapabilitiesResponse.java
- WCS20GetCapabilitiesTransformer.java
- WCS20GetCoverageMultipartResponse.java
- WCS20GetCoverageResponse.java
- WCSDefaultValuesHelper.java
- WCSDimensionsHelper.java
- WCSDimensionsSubsetHelper.java
- WCSDimensionsValueParser.java
- WCSExtendedCapabilitiesProvider.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wcs2_0/src/main/java/org/geoserver/wcs2_0/response/TranslatorHelper.java
Java · 2,504 bytes/* (c) 2017 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wcs2_0.response;
import java.util.Enumeration;
import org.geoserver.platform.ServiceException;
import org.xml.sax.helpers.AttributesImpl;
import org.xml.sax.helpers.NamespaceSupport;
/**
* A helper object factoring out common methods used in Translators, we might want to add these to
* TranslatorSupport later
*
* @author Andrea Aime - GeoSolutions
*/
class TranslatorHelper {
/**
* Register all namespaces as xmlns:xxx attributes for the top level element of a xml document
*/
void registerNamespaces(NamespaceSupport ns, AttributesImpl attributes) {
Enumeration declaredPrefixes = ns.getDeclaredPrefixes();
while (declaredPrefixes.hasMoreElements()) {
String prefix = (String) declaredPrefixes.nextElement();
String uri = ns.getURI(prefix);
// ignore xml prefix
if ("xml".equals(prefix)) {
continue;
}
String prefixDef = "xmlns:" + prefix;
attributes.addAttribute("", prefixDef, prefixDef, "", uri);
}
}
/** Adds together two sets of schema locations */
String[] append(String[] locations1, String[] locations2) {
String[] result = new String[locations1.length + locations2.length];
System.arraycopy(locations1, 0, result, 0, locations1.length);
System.arraycopy(locations2, 0, result, locations1.length, locations2.length);
return result;
}
/** Builds the schema locations from the provided namespace/location list */
String buildSchemaLocation(String... schemaLocations) {
StringBuilder schemaLocation = new StringBuilder();
try {
for (int i = 0; i < schemaLocations.length - 1; i += 2) {
schemaLocation.append(" ");
schemaLocation
.append(schemaLocations[i])
.append(" ")
.append(schemaLocations[i + 1]);
}
} catch (ArrayIndexOutOfBoundsException e) {
throw new ServiceException(
"Extended capabilities provider returned improper "
+ "set of namespace,location pairs from getSchemaLocations()",
e);
}
return schemaLocation.toString();
}
}