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 files7
agilevatester/strutssecurityRevision ba082b527b08

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

S2-015/src/com/demo/action/LoginAction.java

Java · 738 bytes
package com.demo.action;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {
    private String username;
    private String password;

    public String execute() {
        if ("admin".equals(username) && "password".equals(password)) {
            return SUCCESS;
        } else {
            addActionError("Invalid username or password");
            return ERROR;
        }
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}