BAEL-2121 XStream RCE
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.baeldung.rce;
|
||||
|
||||
/**
|
||||
* Class which contains an action to throw {@link AttackExploitedException}.
|
||||
* This helper is used by {@link AppTest} to determine when the remote code
|
||||
* exploit has taken place.
|
||||
*/
|
||||
final class AttackExploitedExceptionThrower {
|
||||
|
||||
public void throwAttackExploitedException() {
|
||||
throw new AttackExploitedException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user