Skip to content
Business logic Write-up Beginner

How i get my first Logic Bug and how to find them

The email change flow required password verification, but the verification page accepted a return parameter that let a user skip straight to the email change page. An attacker could change the account email without entering the password, which the triager said only matters if combined with session hijacking.

zomasec Follow

Published on medium.com

I am now in the beginning of my bug hunting journey in real applications. so when i start hunting in freepalestine.com i decided to focus in logical bugs because all of the other bug hunters can look for normal bugs like XSS and SQLI and CSRF …. and most of them already used scanners and tools to scan these bugs so…

Hazem El-Sayed, 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 application trusted a user-controlled return parameter to decide the post-verification destination and did not confirm that password verification had been completed before allowing the email change.

Impact

An attacker with an existing session could change the account email without knowing the password; the triager rated this medium because it only raises impact when combined with a separate session hijacking exploit.

What the attacker needed

An existing user session; access to the email change flow

How it was found

  1. Start the normal email change flow from the user profile settings.
  2. Notice the verification page uses a return parameter pointing to the email change page.
  3. Decode the return parameter and open the email change page directly, skipping password entry.
  4. Change the email address without providing the password.

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 change your email on a website, it usually asks for your password first to prove it is you. Here, the page that checks the password had a setting that told it where to go next, and by editing that setting the author went straight to the change page. The site did not check that the password step had actually happened.

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.

More by zomasec

View all

1 more disclosed report, best first.

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.