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 files9

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

main/src/main/java/org/geoserver/security/auth/AuthenticationCacheKey.java

Java · 1,385 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.security.auth;

import java.util.Objects;

/**
 * Composite key implementation for filter name and cache key
 *
 * @author christian
 */
public class AuthenticationCacheKey {
    private String filterName, cacheKey;

    public AuthenticationCacheKey(String filterName, String cacheKey) {
        this.filterName = filterName;
        this.cacheKey = cacheKey;
    }

    public String getFilterName() {
        return filterName;
    }

    public String getCacheKey() {
        return cacheKey;
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) return true;
        if (!(other instanceof AuthenticationCacheKey)) return false;

        AuthenticationCacheKey otherKey = (AuthenticationCacheKey) other;
        return (Objects.equals(filterName, otherKey.filterName))
                && (Objects.equals(cacheKey, otherKey.cacheKey));
    }

    @Override
    public int hashCode() {
        return ((filterName == null) ? 0 : filterName.hashCode())
                ^ ((cacheKey == null) ? 0 : cacheKey.hashCode());
    }

    @Override
    public String toString() {
        return filterName + ":" + cacheKey;
    }
}