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 files54Next files →

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

community/ogcapi/ogcapi-core/src/main/java/org/geoserver/ogcapi/ReturnValueMethodParameter.java

Java · 1,072 bytes
/* (c) 2019 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.ogcapi;

import java.lang.reflect.Method;
import org.springframework.core.MethodParameter;

/** A simple carrier for the controller method return value, used in the API dispatcher */
class ReturnValueMethodParameter extends MethodParameter {

    private final Object returnValue;

    public ReturnValueMethodParameter(Method method, Object returnValue) {
        super(method, -1);
        this.returnValue = returnValue;
    }

    protected ReturnValueMethodParameter(ReturnValueMethodParameter original) {
        super(original);
        this.returnValue = original.returnValue;
    }

    @Override
    public Class<?> getParameterType() {
        return (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());
    }

    @Override
    public ReturnValueMethodParameter clone() {
        return new ReturnValueMethodParameter(this);
    }
}