Possible Timing Side-Channel in XMLRPC Verification
The XML-RPC signature check appears to use a non-constant-time comparison, which may leak timing information; the fix is to use hash_equals().
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
I mentioned this to @daljo628 and he suggested submitting it here instead.
This looks very much like a classic timing attack vulnerability. The fix would be to use hash_equals() (which I have provided a sane polyfill for in sarciszewski/php-future if you don't already have one handy).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Ability to trigger the XML-RPC signature check; ability to observe timing differences
The fix
The comparison should be replaced with a constant-time function such as hash_equals().
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program checks a secret code, it may stop comparing at the first mismatch. If an attacker can measure how long the check takes, that could leak information. This report says the XML-RPC signature check looks like that, so it should use a comparison that always takes the same time.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.