|
|
|
|
|
by culturedsystems
1536 days ago
|
|
I don't think there's any vulnerability in your repo as it is. It's not deserializing attacker controlled data, it's deserializing a string which was serialised by the application. There could be a vulnerability if, instead of accepting a String, the controller accepted some other class, which itself had custom serialisation logic which was vulnerable. |
|
I agree with you though that it seems non-obvious.
My thought is that it's possible to build a payload that is able to go from "serialize(string) -> deserialize(string) -> object".
If it's possible to do that, then there is some possibility that there is an RCE here. But I'd still have to poke at the @CacheResult annotation to understand what a vulnerable usage would look like.
First thing is first though. Start with the simplest case. Prove or disprove exploitability before moving up the chain.