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 files15
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- builder/
- decorator/
- iterator/
- regionate/
- utils/
- KMLEncoder.java
- KMLMap.java
- KMLMapOutputFormat.java
- KMLMapResponse.java
- KMLReflector.java
- KMZMapOutputFormat.java
- KmlEncodingContext.java
- NetworkLinkMapOutputFormat.java
- WFSKMLOutputFormat.java
- WebMapServiceKmlInterceptor.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
kml/src/main/java/org/geoserver/kml/WebMapServiceKmlInterceptor.java
Java · 1,377 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.kml;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.geoserver.platform.ServiceException;
import org.geoserver.wms.GetMapRequest;
import org.geoserver.wms.WMS;
import org.geoserver.wms.WebMapService;
public class WebMapServiceKmlInterceptor implements MethodInterceptor {
private WMS wms;
private WebMapService webMapService;
public WebMapServiceKmlInterceptor(WMS wms, WebMapService webMapService) {
this.wms = wms;
this.webMapService = webMapService;
}
@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
if (invocation.getMethod().getName().equals("kml")) {
try {
GetMapRequest getMap = (GetMapRequest) invocation.getArguments()[0];
return KMLReflector.doWms(getMap, webMapService, wms);
} catch (Exception e) {
if (e instanceof ServiceException) {
throw e;
} else {
throw new ServiceException(e);
}
}
} else {
return invocation.proceed();
}
}
}