Exploit database

GH-6a9637ea77c2e069e0599675232a26d3

r00t4dm/cve-2018-14667

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2018-14667

6 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6

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

WEB-INF/src/org/richfaces/datatable/UpdateBean.java

Java · 1,125 bytes
package org.richfaces.datatable;

import java.util.HashSet;
import java.util.Set;

import javax.faces.component.html.HtmlInputText;
import javax.faces.context.FacesContext;

import org.ajax4jsf.component.UIRepeat;

public class UpdateBean {

	HtmlInputText priceRef;
	private UIRepeat repeater;
	private Set<Integer> keys = null;
	
	/**
	 * @return the keys
	 */
	public Set getKeys() {
		return keys;
	}

	/**
	 * @param keys the keys to set
	 */
	public void setKeys(Set keys) {
		this.keys = keys;
	}

	public void setRepeater(UIRepeat repeater) {
		this.repeater = repeater;
	}

	public UIRepeat getRepeater() {
		return null;
	}

	public HtmlInputText getPriceRef() {
		return null;
	}

	public void setPriceRef(HtmlInputText priceRef) {
		this.priceRef = priceRef;
	}
	
	public String change(){
		
		HashSet keys = new HashSet<Integer>();
		int rowKey = repeater.getRowIndex();
		keys.add(rowKey);
		setKeys(keys);
		priceRef.processValidators(FacesContext.getCurrentInstance());
		priceRef.processUpdates(FacesContext.getCurrentInstance());
		return null;
	}
}