Skip to content
Business logic Write-up Intermediate

Git-Rotate: Leveraging GitHub Actions to Bypass Microsoft Entra Smart lockout

The article describes a technique to bypass Microsoft Entra's Smart Lockout by using GitHub Actions to rotate source IP addresses for password spraying. An attacker could attempt many login guesses without triggering IP-based lockout, as demonstrated against a test tenant.

research.aurainfosec.io

Published on research.aurainfosec.io

Before proceeding, it’s important to keep in mind that GitHub takes abuse and spam of Actions seriously, and they have a dedicated team to track “spammy users”. I am not liable for any account closures due to breaches of their terms and conditions.

The author, on research.aurainfosec.io

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

Likely Smart Lockout's differentiation between familiar and unfamiliar locations relies partly on source IP address, which can be rotated using GitHub Actions.

What the attacker needed

GitHub account; Public repository for free Actions; Target login endpoint; Catcher server with public IP

How it was found

  1. Set up a GitHub repository with a workflow that runs a Python script to send a login request.
  2. Use a kicker script to trigger many workflow runs via the GitHub API, each with a different username/password combination.
  3. Each workflow run executes on a GitHub-hosted VM with a random IP address and sends the login request to the target.
  4. The sprayer script forwards the login response to a catcher server.
  5. The catcher processes the response to determine if the login was successful.

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.

Password spraying is trying a few common passwords against many accounts to avoid lockouts. Smart Lockout is a defence that watches for suspicious login patterns, partly based on where the login comes from. This article shows that by sending each guess from a different GitHub Actions machine, each with a new IP address, the defence can be avoided.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.