Skip to content
Account takeover Write-up Beginner

Bug-Bounty/How I Found My FIRST Vulnerability and How could I Access the Admin Panel using it +…

The login flow sent a one-time code by email or phone and applied no rate limiting, so the author could brute force the code and sign in as any user. A public GitLab repository listed admin email addresses, and a second admin subdomain showed a full control panel once the admin account was used.

rogxoorsafe Follow

Published on medium.com

Hello, my name is Alireza and in this post I am going to explain how I was able to discover my first vulnerability in a private program And I was able to access the admin panel.

Alireza Rogxoor, 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

Likely the one-time code check had no attempt limit or lockout, and admin identities were exposed through a public GitLab repository and a weakly protected admin subdomain.

Impact

An attacker could take over any user account, including administrator accounts, and reach the full admin control panel.

What the attacker needed

No account needed to start; victim email or phone known; public GitLab repo lists admin emails

How it was found

  1. Find the login page that authenticates users with a one-time code sent by email or phone.
  2. Brute force the one-time code to log in as an arbitrary user.
  3. Run subdomain discovery and find the GitLab, admin and admin2 hosts.
  4. Read the public GitLab repository to collect the list of admin email addresses.
  5. Log in with an admin email and brute force that account's one-time code.
  6. Open the admin2 subdomain with the admin session to reach the full control panel.

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.

When you log in, the site sends a short numeric code to your phone or email and asks you to type it back. If the site lets someone guess that code over and over without slowing them down or locking the account, a stranger can eventually guess it and get into your account. Here the author also found admin email addresses in a public code repository, so guessing an admin's code gave access to an admin control panel.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.