Exploit databaseDownload repository ZIP
GH-9a017fa45abc7e1f8f6ba6e1285cae54
iplayforsg/cve-2023-51444
Sources for CVE-2023-51444
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files25
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- CharsetPanel.html
- CharsetPanel.java
- CheckBoxParamPanel.html
- CheckBoxParamPanel.java
- ColorPickerPanel.html
- ColorPickerPanel.java
- DirectoryParamPanel.java
- DropDownChoiceParamPanel.html
- DropDownChoiceParamPanel.java
- FileModel.java
- FileParamPanel.html
- FileParamPanel.java
- LabelParamPanel.html
- LabelParamPanel.java
- NamespacePanel.html
- NamespacePanel.java
- ParamPanel.java
- PasswordParamPanel.html
- PasswordParamPanel.java
- TextAreaParamPanel.html
- TextAreaParamPanel.java
- TextParamPanel.html
- TextParamPanel.java
- WorkspacePanel.html
- WorkspacePanel.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
web/core/src/main/java/org/geoserver/web/data/store/panel/WorkspacePanel.java
Java · 2,400 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.web.data.store.panel;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.markup.html.form.validation.FormComponentFeedbackBorder;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.geoserver.catalog.WorkspaceInfo;
import org.geoserver.web.data.workspace.WorkspaceChoiceRenderer;
import org.geoserver.web.data.workspace.WorkspacesModel;
/** A label + workspace dropdown form panel */
@SuppressWarnings("serial")
public class WorkspacePanel extends Panel implements ParamPanel<WorkspaceInfo> {
private DropDownChoice<WorkspaceInfo> choice;
public WorkspacePanel(
final String id,
final IModel<WorkspaceInfo> workspaceModel,
final IModel<String> paramLabelModel,
final boolean required) {
// make the value of the combo field the model of this panel, for easy
// value retriaval
super(id, workspaceModel);
// the label
String requiredMark = required ? " *" : "";
Label label = new Label("paramName", paramLabelModel.getObject() + requiredMark);
add(label);
// the drop down field, with a decorator for validations
choice =
new DropDownChoice<>(
"paramValue",
workspaceModel,
new WorkspacesModel(),
new WorkspaceChoiceRenderer());
choice.setRequired(required);
// set the label to be the paramLabelModel otherwise a validation error would look like
// "Parameter 'paramValue' is required"
choice.setLabel(paramLabelModel);
FormComponentFeedbackBorder feedback = new FormComponentFeedbackBorder("border");
feedback.add(choice);
add(feedback);
}
/**
* Returns the form component used in the panel in case it is needed for related form components
* validation
*/
@Override
public FormComponent<WorkspaceInfo> getFormComponent() {
return choice;
}
}