Exploit database

GH-5d29f404c63d8ecd3e3deb091f4e6d1d

agilevatester/strutssecurity

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-50164

18 sources

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

Repository files2
agilevatester/strutssecurityRevision ba082b527b08

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

S2-009/src/com/demo/action/UserAction.java

Java · 807 bytes
package com.demo.action;

import com.opensymphony.xwork2.ActionSupport;




public class UserAction extends ActionSupport {
    private Integer age = null;
    private String name = null;
    private String email = null;

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return this.age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return this.email;
    }

    public String execute() throws Exception {
        if (this.name.isEmpty() || this.email.isEmpty()) {
            return "error";
        }
        return "success";
    }
}