JavaInjection & inputDifficulty 2/3
public Session readSession(HttpServletRequest request) throws Exception {
byte[] raw = Base64.getDecoder().decode(request.getParameter("session"));
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(raw));
return (Session) in.readObject();
}