Closed cvizino closed 3 years ago
Thanks for the reproducer! I'll try to take a close look at this next week.
No need to look into this--it's a side effect of the base64 encoding. For certain base64 encodings, there can actually be four ways to represent the same binary data. This is due to the base64 encoding not aligning perfectly to the input buffer. Changing the base64 string does not alter or affect the underlying datastructures at all. So, what I raised is a non-issue and certainly not a security one.
If a munge credential is altered in any way, shouldn't the decode fail?
munge(7) says:
However, with this reproducer it's easy to see where this is not always the case.
Here's the run:
Offset 140 is probably in the payload section of the credential but it still seems wrong that the decode should succeed when the credential has been altered.