Conversation

Saw something on a pen test today I haven't seen before. The application loads the session information from the session storage in the browser rather than from the cookies collection and then adds it as a header to every request. I'm not sure if that's better or worse or what.

2
1
0

And look, the "encryptedId" is a base64 encoded unsigned JWT. What fun.

2
2
0

@Sempf
Base64 is nearly five times better than rot13.

2
4
0

@varx The field is literally called "EncryptedId" ... and it is base64 encoded. Not even signed!

0
1
0

@mirabilos @Sempf
Okay base64 is only 1.64 times better than 3ROT13.

1
0
0
@FritzAdalis @Sempf ok we'll just need 4 more quantum computers
0
0
2

@mirabilos @FritzAdalis @Sempf Look, we're in the age of Unicode, so rot77499* is the new rot13.

* For rotating over the characters of Unicode 16.0, so YMMV depending on when you read this.

1
0
0

@FritzAdalis @mirabilos @Sempf rot13 the base64. That’s military grade[*] encryption

[*] Roman Republic military

1
1
0

@jonathankoren @FritzAdalis @mirabilos A the infamous Double Encryption.

(I actually had someone tell me that. They had URL encoded and Base64 encoded a string and told me it was "double ecrypted" so I didn't have to even worry about it.)

0
1
0
@Sempf the same-origin policy is better than the absolutely ridiculous model cookies use. csrf tokens are no fun either!
1
0
0

@ww I haven't figured out how yet, but they are protecting from CSRF. Gonna figure that out Monday.

0
1
0