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 files38
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- rest/
- vertical/
- AbstractParametricEntity.java
- AnimationMetadata.java
- AnimationMetadataPPIO.java
- CRSRequestHandler.java
- CoverageRenderSupport.java
- DownloadAnimationProcess.java
- DownloadEstimatorProcess.java
- DownloadMapProcess.java
- DownloadMetadata.java
- DownloadMetadataPPIO.java
- DownloadProcess.java
- DownloadServiceConfiguration.java
- DownloadServiceConfigurationGenerator.java
- DownloadServiceConfigurationWatcher.java
- DownloadUtilities.java
- Format.java
- FrameWarning.java
- GeopkgPPIO.java
- GeopkgRasterPPIO.java
- GeopkgVectorPPIO.java
- GridGeometryProvider.java
- JaxbPPIO.java
- Layer.java
- LimitedImageOutputStream.java
- LimitedOutputStream.java
- MetaGridCoverage2D.java
- Parameter.java
- Parameters.java
- ROIManager.java
- RasterDownload.java
- RasterEstimator.java
- ScaleToTarget.java
- StaticDownloadServiceConfiguration.java
- VectorDownload.java
- VectorEstimator.java
- package-info.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
extension/wps-download/src/main/java/org/geoserver/wps/gs/download/GeopkgVectorPPIO.java
Java · 1,871 bytes/* (c) 2021 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.wps.gs.download;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.commons.io.IOUtils;
import org.geoserver.catalog.FeatureTypeInfo;
import org.geoserver.catalog.ResourceInfo;
import org.geotools.data.simple.SimpleFeatureCollection;
import org.geotools.geopkg.FeatureEntry;
import org.geotools.geopkg.GeoPackage;
public class GeopkgVectorPPIO extends GeopkgPPIO {
/** Constructor. */
protected GeopkgVectorPPIO() {
super(SimpleFeatureCollection.class, SimpleFeatureCollection.class);
}
@Override
public void encode(Object value, OutputStream os) throws Exception {
SimpleFeatureCollection fc = (SimpleFeatureCollection) value;
File file = File.createTempFile("geopkg", ".tmp.gpkg");
try {
// write the geopackage
try (GeoPackage geopkg = getGeoPackage(file)) {
FeatureEntry e = new FeatureEntry();
Object ri = fc.getSchema().getUserData().get(ResourceInfo.class);
if (ri instanceof FeatureTypeInfo) {
FeatureTypeInfo meta = (FeatureTypeInfo) ri;
// initialize entry metadata
e.setIdentifier(meta.getTitle());
e.setDescription(abstractOrDescription(meta));
}
geopkg.add(e, fc);
geopkg.createSpatialIndex(e);
}
// copy over to the output
try (InputStream is = new FileInputStream(file)) {
IOUtils.copy(is, os);
}
} finally {
file.delete();
}
}
}