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 files20

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

community/ogcapi/ogcapi-styles/src/main/java/org/geoserver/ogcapi/styles/StyleAttribute.java

Java · 1,242 bytes
/* (c) 2019 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.ogcapi.styles;

import com.fasterxml.jackson.annotation.JsonValue;
import java.io.Serializable;

public class StyleAttribute implements Serializable {

    enum AttributeType {
        string,
        uri,
        enumeration("enum"),
        number,
        integer,
        date,
        dateTime,
        bool("boolean");

        String type;

        AttributeType() {}

        AttributeType(String type) {
            this.type = type;
        }

        @JsonValue
        public String getType() {
            if (type != null) {
                return type;
            } else {
                return name();
            }
        }

        @Override
        public String toString() {
            return getType();
        }
    }

    String id;
    AttributeType type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public AttributeType getType() {
        return type;
    }

    public void setType(AttributeType type) {
        this.type = type;
    }
}