Exploit database

GH-9a017fa45abc7e1f8f6ba6e1285cae54

iplayforsg/cve-2023-51444

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-51444

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files77Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

main/src/main/java/org/geoserver/security/HTTPMethod.java

Java · 1,112 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;

/**
 * Simple enum for HTTMethods
 *
 * @author christian
 */
public enum HTTPMethod {
    GET("GET"),
    POST("POST"),
    HEAD("HEAD"),
    OPTIONS("OPTIONS"),
    PUT("PUT"),
    DELETE("DELETE"),
    TRACE("TRACE");

    private HTTPMethod(String name) {
        this.name = name;
    }

    private final String name;

    @Override
    public String toString() {
        return name;
    }

    public static HTTPMethod fromString(String method) {
        if ("GET".equals(method)) return GET;
        if ("POST".equals(method)) return POST;
        if ("HEAD".equals(method)) return HEAD;
        if ("OPTIONS".equals(method)) return OPTIONS;
        if ("PUT".equals(method)) return PUT;
        if ("DELETE".equals(method)) return DELETE;
        if ("TRACE".equals(method)) return TRACE;
        throw new RuntimeException("Unknown HTTP method: " + method);
    }
}