BAEL-2121 XStream RCE

This commit is contained in:
Johnathan Gilday
2019-06-30 21:45:57 -04:00
parent 1318804764
commit 1ba4b23099
9 changed files with 333 additions and 2 deletions

View File

@@ -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();
}
}