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 files39

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

restconfig/src/main/java/org/geoserver/rest/catalog/FormatCollectionWrapper.java

Java · 1,067 bytes
/* (c) 2017 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.rest.catalog;

import org.geotools.data.simple.SimpleFeatureCollection;

/** Base class for collection wrappers used to decide the output format in the controller code */
public abstract class FormatCollectionWrapper {

    SimpleFeatureCollection collection;

    public FormatCollectionWrapper(SimpleFeatureCollection collection) {
        this.collection = collection;
    }

    public SimpleFeatureCollection getCollection() {
        return collection;
    }

    public static class XMLCollectionWrapper extends FormatCollectionWrapper {

        public XMLCollectionWrapper(SimpleFeatureCollection collection) {
            super(collection);
        }
    }

    public static class JSONCollectionWrapper extends FormatCollectionWrapper {

        public JSONCollectionWrapper(SimpleFeatureCollection collection) {
            super(collection);
        }
    }
}