Remote Code Execution in SzafirHost
Krajowa Izba Rozliczeniowa SzafirHost
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Krajowa Izba Rozliczeniowa SzafirHost |
| No fix yet |
Original description
SzafirHost verifies the signature of the downloaded JAR file using class JarInputStream (reading from the beginning of the file), but loads classes using class JarFile/URLClassLoader (reading the Central Directory from the end). It can lead to remote code execution by allowing an attacker to combine a genuine, signed JAR file with a malicious ZIP file, causing the verification to pass but the malicious class to be loaded.
This issue was fixed in version 1.2.1.
From the CVE record · CERT-PL