Skip to content
OAuth / SSO Write-up Intermediate

I Found a Critical OAuth Vulnerability in Open edX — Here’s How It Happened

The OAuth 1.0 timestamp and nonce validation function in Open edX's LTI provider always returned true, so it never rejected stale timestamps or reused nonces. An attacker who captured a signed LTI launch request could replay it to authenticate as the victim and access their courses or grades.

abdurrahimjamalzada Follow

Published on medium.com

I’m Abdurrahim Jamalzada, a security researcher from Azerbaijan. A few weeks ago, while reviewing the Open edX LMS codebase, I stumbled upon something that immediately caught my attention — a function that was supposed to validate OAuth requests but was doing absolutely nothing.

Abdurrahim Jamalzada, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The validate_timestamp_and_nonce method was implemented as an unconditional 'return True', so timestamp freshness and nonce uniqueness were never enforced.

Impact

An attacker on the same network could capture and replay a student's LTI launch request to authenticate as them, potentially accessing courses, altering grades, or reaching paid content; the CVSS score is moderate because the attack requires network position and user interaction.

What the attacker needed

Attacker on the same network; victim sends an LTI launch request; attacker can capture that request

The fix

The function should reject timestamps older than five minutes, store each nonce, and reject any nonce already seen; the text says the patch was included in the Verawood release.

How it was found

  1. Sign a legitimate LTI launch request with a valid consumer key and secret.
  2. Send the signed request to the LTI provider endpoint and observe a 200 response.
  3. Send the exact same signed body again, with the same nonce, timestamp and signature.
  4. Observe that the second request is also accepted with a 200 response, confirming the replay.

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 write-up has not been written yet. The Original tab links to the source.

OAuth 1.0 uses a timestamp and a one-time random value called a nonce to stop someone reusing a captured request. Open edX's check for these was a stub that always said yes, so the same signed request could be sent again and accepted. That let someone who saw a request on the network act as the student who sent it.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.