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 files11

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

extension/wps/wps-core/src/main/java/org/geoserver/wps/process/ProcessSelector.java

Java · 1,181 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.wps.process;

import java.util.Set;
import org.geotools.process.ProcessFactory;
import org.opengis.feature.type.Name;

public abstract class ProcessSelector implements ProcessFilter {

    @Override
    public ProcessFactory filterFactory(ProcessFactory pf) {
        // first check, do we want to return this factory at all?
        Set<Name> processNames = pf.getNames();
        int count = 0;
        for (Name processName : processNames) {
            if (allowProcess(processName)) {
                count++;
            }
        }

        if (count == 0) {
            // does it generate at least one process we are going to actually produce?
            // if not the factory itself is going to be filtered out
            return null;
        } else if (count == processNames.size()) {
            return pf;
        }

        return new SelectingProcessFactory(pf, this);
    }

    protected abstract boolean allowProcess(Name processName);
}