Skip to content
Crypto Disclosed report Advanced

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().

voodookobra Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 3 months

https://github.com/Automattic/jetpack/blob/bc7a4541ef6f0e9f583376d801ab0c40cfb976c3/class.jetpack-xmlrpc-server.php#L115

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).

The original report as published on HackerOne, by voodookobra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by voodookobra

View all

5 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.