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 files55
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- CheckAttributesFeatureCollection.java
- ClipIntersectsFeatureCollection.java
- ClipIntersectsFeatureIterator.java
- DecoratingCatalogFactory.java
- DecoratingCoverageInfo.java
- DecoratingCoverageStoreInfo.java
- DecoratingDataAccess.java
- DecoratingDataStoreInfo.java
- DecoratingFeatureSource.java
- DecoratingFeatureTypeInfo.java
- DecoratingGridCoverage2DReader.java
- DecoratingGridFormat.java
- DecoratingLayerGroupInfo.java
- DecoratingLayerInfo.java
- DecoratingSimpleFeatureSource.java
- DecoratingStructuredGridCoverage2DReader.java
- DecoratingWMSLayerInfo.java
- DecoratingWMSStoreInfo.java
- DecoratingWMTSLayerInfo.java
- DecoratingWMTSStoreInfo.java
- DefaultSecureCatalogFactory.java
- DefaultSecureDataFactory.java
- ReadOnlyDataAccess.java
- ReadOnlyDataStore.java
- SecuredCoverageInfo.java
- SecuredCoverageStoreInfo.java
- SecuredDataStoreInfo.java
- SecuredFeatureCollection.java
- SecuredFeatureIterator.java
- SecuredFeatureLocking.java
- SecuredFeatureSource.java
- SecuredFeatureStore.java
- SecuredFeatureTypeInfo.java
- SecuredGetFeatureInfoRequest.java
- SecuredGetMapRequest.java
- SecuredGridCoverage2DReader.java
- SecuredGridFormat.java
- SecuredLayerGroupInfo.java
- SecuredLayerInfo.java
- SecuredObjectFactory.java
- SecuredObjects.java
- SecuredSimpleFeatureCollection.java
- SecuredSimpleFeatureIterator.java
- SecuredSimpleFeatureLocking.java
- SecuredSimpleFeatureSource.java
- SecuredSimpleFeatureStore.java
- SecuredStructuredGridCoverage2DReader.java
- SecuredWMSLayer.java
- SecuredWMSLayerInfo.java
- SecuredWMSStoreInfo.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
main/src/main/java/org/geoserver/security/decorators/SecuredGridFormat.java
Java · 2,139 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.security.decorators;
import org.geoserver.security.Response;
import org.geoserver.security.SecureCatalogImpl;
import org.geoserver.security.WrapperPolicy;
import org.geotools.coverage.grid.io.AbstractGridFormat;
import org.geotools.coverage.grid.io.GridCoverage2DReader;
import org.geotools.util.factory.Hints;
/**
* Secures a format applying the policy
*
* @author Andrea Aime - GeoSolutions
*/
public class SecuredGridFormat extends DecoratingGridFormat {
WrapperPolicy policy;
public SecuredGridFormat(AbstractGridFormat delegate, WrapperPolicy policy) {
super(delegate);
this.policy = policy;
}
@Override
public GridCoverage2DReader getReader(Object source, Hints hints) {
GridCoverage2DReader reader = delegate.getReader(source, hints);
if (reader == null) {
return reader;
} else {
return SecuredObjects.secure(reader, policy);
}
}
@Override
public GridCoverage2DReader getReader(Object source) {
GridCoverage2DReader reader = delegate.getReader(source);
if (reader == null) {
return reader;
} else {
return SecuredObjects.secure(reader, policy);
}
}
/**
* Notifies the caller the requested operation is not supported, using a plain {@link
* UnsupportedOperationException} in case we have to conceal the fact the data is actually
* writable, using an Spring Security security exception otherwise to force an authentication
* from the user
*/
RuntimeException notifyUnsupportedOperation() {
if (policy.response == Response.CHALLENGE) {
return SecureCatalogImpl.unauthorizedAccess();
} else
return new UnsupportedOperationException(
"This data access is read only, service code is supposed to perform writes via FeatureStore instead");
}
}