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 files9

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

extension/imagemap/src/main/java/org/vfny/geoserver/wms/responses/map/htmlimagemap/HTMLImageMapResponse.java

Java · 1,473 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.vfny.geoserver.wms.responses.map.htmlimagemap;

import java.io.IOException;
import java.io.OutputStream;
import org.geoserver.ows.Response;
import org.geoserver.platform.Operation;
import org.geoserver.platform.ServiceException;
import org.springframework.util.Assert;

/**
 * Handles a GetMap response that produces a map in HTMLImageMap format.
 *
 * @author Mauro Bartolomeoli
 */
public class HTMLImageMapResponse extends Response {

    public HTMLImageMapResponse() {
        super(EncodeHTMLImageMap.class, HTMLImageMapMapProducer.MIME_TYPE);
    }

    /**
     * Writes the generated map to an OutputStream.
     *
     * @param output final output stream
     */
    @Override
    public void write(Object value, OutputStream output, Operation operation)
            throws IOException, ServiceException {
        Assert.isInstanceOf(EncodeHTMLImageMap.class, value);
        EncodeHTMLImageMap htmlImageMapEncoder = (EncodeHTMLImageMap) value;
        try {
            htmlImageMapEncoder.encode(output);
        } finally {
            htmlImageMapEncoder.dispose();
        }
    }

    @Override
    public String getMimeType(Object value, Operation operation) throws ServiceException {
        return HTMLImageMapMapProducer.MIME_TYPE;
    }
}