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 files13

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

community/jms-cluster/jms-commons/src/main/java/org/geoserver/cluster/JMSEventHandlerSPI.java

Java · 1,599 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.cluster;

import java.io.Serializable;

/**
 * SPI class which is used by JMSManager to instantiate the relative handler.<br>
 * Its implementations may be loaded into the Spring context as a singleton.<br>
 * SPI bean id name MUST be the same as SPI SimpleClassName <br>
 *
 * @see {@link JMSEventHandler}
 * @author Carlo Cancellieri - [email protected]
 * @param <S> ToggleType implementing Serializable
 * @param <O> ToggleType of the object to handle
 */
public abstract class JMSEventHandlerSPI<S extends Serializable, O> {
    /**
     * The key of the property stored into message which tells the Handler used to serialize the
     * message and the one which will be used to de-serialize and synchronize
     */
    private static final String PROPERTY_KEY = "JMSEventHandlerSPI";

    /**
     * Integer representing the priority of this handler:<br>
     *
     * <p><b>Lower</b> value means <b>higher</b> priority.
     */
    private final int priority;

    public JMSEventHandlerSPI(final int priority) {
        this.priority = priority;
    }

    /** @return the priority */
    public final int getPriority() {
        return priority;
    }

    public static String getKeyName() {
        return PROPERTY_KEY;
    }

    public abstract boolean canHandle(final Object event);

    public abstract JMSEventHandler<S, O> createHandler();
}