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/LoginFormInfo.java

Java · 2,968 bytes
/* (c) 2016 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.web;

import org.geoserver.security.GeoServerSecurityProvider;

/**
 * Information about a login form that should be shown from the main page in the GeoServer UI. The
 * "order" field is based on the "name".
 *
 * @author Alessio Fabiani, GeoSolutions S.A.S.
 */
@SuppressWarnings("serial")
public class LoginFormInfo extends ComponentInfo<GeoServerBasePage>
        implements Comparable<LoginFormInfo> {
    String name;
    String icon = "";
    private Class<GeoServerSecurityProvider> filterClass;
    private String include;
    private String loginPath;

    /** Name of the login extension; it will determine also the order displayed for the icons */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Path to the icon; the graphic file must be places under resources on the same package of the
     * "componentClass"
     */
    public String getIcon() {
        return icon;
    }

    /**
     * Path to the icon; the graphic file must be places under resources on the same package of the
     * "componentClass"
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * Returns the GeoServerSecurityFilter class requiring the Login Button
     *
     * @return the filterClass
     */
    public Class<GeoServerSecurityProvider> getFilterClass() {
        return filterClass;
    }

    /**
     * Sets the GeoServerSecurityFilter class requiring the Login Button
     *
     * @param filterClass the filterClass to set
     */
    public void setFilterClass(Class<GeoServerSecurityProvider> filterClass) {
        this.filterClass = filterClass;
    }

    /**
     * Static HTML Resource to include in the form (if needed).
     *
     * @return the include
     */
    public String getInclude() {
        return include;
    }

    /**
     * Static HTML Resource to include in the form (if needed).
     *
     * @param include the include to set
     */
    public void setInclude(String include) {
        this.include = include;
    }

    /** Name of the login extension; it will determine also the order displayed for the icons */
    public String getName() {
        return name;
    }

    /**
     * Authentication Security Endpoint invoked by the pluggable form
     *
     * @return the loginPath
     */
    public String getLoginPath() {
        return loginPath;
    }

    /**
     * Authentication Security Endpoint invoked by the pluggable form
     *
     * @param loginPath the loginPath to set
     */
    public void setLoginPath(String loginPath) {
        this.loginPath = loginPath;
    }

    /** Sorts by name the Login extensions */
    @Override
    public int compareTo(LoginFormInfo other) {
        return getName().compareTo(other.getName());
    }
}