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 files77
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- auth/
- concurrent/
- config/
- decorators/
- event/
- file/
- filter/
- impl/
- password/
- rememberme/
- validation/
- xml/
- AbstractCatalogFilter.java
- AbstractResourceAccessManager.java
- AccessLevel.java
- AccessLimits.java
- AccessMode.java
- AdminRequest.java
- AuthorizingRoleService.java
- AuthorizingUserGroupService.java
- BruteForceListener.java
- CatalogFilter.java
- CatalogFilterAccessManager.java
- CatalogMode.java
- ConcurrentAuthenticationException.java
- ConstantFilterChain.java
- CoverageAccessLimits.java
- DataAccessLimits.java
- DelegatingAuthenticationProvider.java
- DisabledResourceFilter.java
- DisabledServiceResourceFilter.java
- GeoServerAuthenticationProvider.java
- GeoServerRequestMatcher.java
- GeoServerRoleConverter.java
- GeoServerRoleService.java
- GeoServerRoleStore.java
- GeoServerSecurityFilterChain.java
- GeoServerSecurityFilterChainProxy.java
- GeoServerSecurityManager.java
- GeoServerSecurityProvider.java
- GeoServerSecurityService.java
- GeoServerUserGroupService.java
- GeoServerUserGroupStore.java
- GroupAdminRoleService.java
- GroupAdminUserGroupService.java
- HTTPMethod.java
- HtmlLoginFilterChain.java
- HttpDigestUserDetailsServiceWrapper.java
- InMemorySecurityFilter.java
- IncludeQueryStringAntPathRequestMatcher.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
main/src/main/java/org/geoserver/security/GeoServerRequestMatcher.java
Java · 2,095 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;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.web.util.matcher.RequestMatcher;
/**
* GeoServer {@link RequestMatcher} implementation.
*
* <p>The class is responsible for checking against {@link HTTPMethod} objects and the passed {@link
* RequestMatcher} objects.
*
* @author christian
*/
public class GeoServerRequestMatcher implements RequestMatcher {
private Set<HTTPMethod> methods;
private RequestMatcher[] matchers;
public GeoServerRequestMatcher(Set<HTTPMethod> methods, RequestMatcher... matchers) {
this.methods = methods;
// if (methods !=null && methods.isEmpty())
// methods=null;
this.matchers = matchers;
}
/**
* First, the HTTP method is checked using {@link #matchesHTTPMethod(HttpServletRequest)}. If
* <code>true</code>, the request is checked against the {@link RequestMatcher} objects in
* {@link #matchers}. The first match returns <code>true</code>.
*
* <p>If no match occurs, return <code>false</code>.
*/
@Override
public boolean matches(HttpServletRequest request) {
if (matchesHTTPMethod(request) == false) return false;
if (matchers == null) return false;
for (RequestMatcher matcher : matchers) {
if (matcher.matches(request)) return true;
}
return false;
}
/**
* If {@link #methods} is <code>null</code>, the return value is always <code>true</code>.
*
* <p>Return <code>true</code> if the HTTP method is contained in {@link #methods}
*/
protected boolean matchesHTTPMethod(HttpServletRequest request) {
if (methods == null) return true;
HTTPMethod method = HTTPMethod.fromString(request.getMethod());
return methods.contains(method);
}
}