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 files2

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

web/rest/src/main/java/org/geoserver/web/RESTSettingsPanel.java

Java · 1,728 bytes
/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
 * (c) 2014 OpenPlans
 * This code is licensed under the GPL 2.0 license, available at the root
 * application directory.
 */
package org.geoserver.web;

import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
import org.geoserver.catalog.MetadataMap;
import org.geoserver.config.SettingsInfo;
import org.geoserver.rest.util.RESTUtils;
import org.geoserver.web.data.settings.SettingsPluginPanel;
import org.geoserver.web.util.MetadataMapModel;

/**
 * Simple Panel which adds a TextField for setting the Root Directory for the WorkSpace or Global
 * Settings.
 *
 * @author Nicola Lagomarsini Geosolutions S.A.S.
 */
public class RESTSettingsPanel extends SettingsPluginPanel {

    public RESTSettingsPanel(String id, IModel<SettingsInfo> model) {
        super(id, model);
        // Model associated to the metadata map
        final PropertyModel<MetadataMap> metadata = new PropertyModel<>(model, "metadata");

        // TextField associated to the root directory to map
        TextField rootField =
                new TextField<>(
                        "rootdir",
                        new MetadataMapModel<>(metadata, RESTUtils.ROOT_KEY, String.class));
        add(rootField);

        // CheckBox associated to the root directory to map
        CheckBox quietCheckBox =
                new CheckBox(
                        "quiet",
                        new MetadataMapModel<>(
                                metadata, RESTUtils.QUIET_ON_NOT_FOUND_KEY, Boolean.class));
        add(quietCheckBox);
    }
}