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

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

web/core/src/main/java/org/geoserver/web/ComponentInfo.java

Java · 2,847 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.geoserver.web;

import java.io.Serializable;
import org.apache.wicket.Component;

/**
 * Information about a component being plugged into a user interface.
 *
 * <p>Subclasses of this class are used to implement user interface "extension points". For an
 * example see {@link MenuPageInfo}.
 *
 * @author Andrea Aime, The Open Planning Project
 * @author Justin Deoliveira, The Open Planning Project
 * @param <C>
 */
@SuppressWarnings("serial")
public abstract class ComponentInfo<C extends Component> implements Serializable {

    /** the id of the component */
    String id;
    /** the title of the component */
    String title;
    /** The description of the component */
    String description;
    /** the class of the component */
    Class<C> componentClass;
    /** Controls access to the component */
    ComponentAuthorizer authorizer = ComponentAuthorizer.ALLOW;

    /** The id of the component. */
    public String getId() {
        return id;
    }
    /** Sets the id of the component. */
    public void setId(String id) {
        this.id = id;
    }
    /**
     * The i18n key for the title of the component.
     *
     * <p>The exact way this title is used depends one the component. For instance if the component
     * is a page, the title could be the used for a link to the page. If the component is a panel in
     * a tabbed panel, the title might be the label on the tab.
     */
    public String getTitleKey() {
        return title;
    }
    /** The i18n key for the title of the component. */
    public void setTitleKey(String title) {
        this.title = title;
    }

    /**
     * The i18n key for the description of the component.
     *
     * <p>This description is often used as a tooltip, or some contextual help.
     */
    public String getDescriptionKey() {
        return description;
    }

    /** Sets the description of the component. */
    public void setDescriptionKey(String description) {
        this.description = description;
    }

    /** The implementation class of the component. */
    public Class<C> getComponentClass() {
        return componentClass;
    }

    /** Sets the implementation class of the component. */
    public void setComponentClass(Class<C> componentClass) {
        this.componentClass = componentClass;
    }

    /** The authorizer that controls access to the component. */
    public ComponentAuthorizer getAuthorizer() {
        return authorizer;
    }

    /** Sets the authorizer that controls access to the component. */
    public void setAuthorizer(ComponentAuthorizer authorizer) {
        this.authorizer = authorizer;
    }
}