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 files12

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

community/gsr/src/main/java/org/geoserver/gsr/api/AbstractGeoServicesConverter.java

Java · 1,562 bytes
/* (c) 2020 Open Source Geospatial Foundation - all rights reserved
 * This code is licensed under the GPL 2.0 license, available at the root
 * application directory.
 */

/* Copyright (c) 2017 Boundless - http://boundlessgeo.com All rights reserved.
 * This code is licensed under the GPL 2.0 license, available at the root
 * application directory.
 */

package org.geoserver.gsr.api;

import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import org.geoserver.gsr.model.GSRModel;
import org.geoserver.rest.converters.BaseMessageConverter;
import org.springframework.http.MediaType;

/** Abstract class for all {@link GSRModel} converters */
public abstract class AbstractGeoServicesConverter extends BaseMessageConverter<GSRModel> {

    protected AbstractGeoServicesConverter(MediaType... supportedMediaTypes) {
        super(supportedMediaTypes);
    }

    protected AbstractGeoServicesConverter(
            Charset defaultCharset, MediaType... supportedMediaTypes) {
        super(defaultCharset, supportedMediaTypes);
    }

    /**
     * Serializes an object in a context-insensitive way, so that it can be called outside of the
     * regular request handling hierarchy. Mainly used for exception handling; see {@link
     * FormatParameterInterceptor} and {@link GeoServicesExceptionResolver}.
     *
     * @param os {@link OutputStream} to write to
     * @param o Object to write
     * @throws IOException
     */
    public abstract void writeToOutputStream(OutputStream os, Object o) throws IOException;
}