Skip to content
Business logic Disclosed report Beginner

Weak Bithdate Validation Implemented on Sign Up

The sign-up form's birthdate year dropdown was limited to a range, but the server did not enforce that range, so a user could submit an out-of-range year and have the account created. The same weakness applied to child accounts, allowing an implausible age to be stored and displayed.

paranoidglitch Follow

Originally disclosed on HackerOne

  • Disclosed after 8 days

The Birthdate Field on the KhanAcademy's Sign Up page for new users has the year range from 2017 to 1897.

01-daterange.png
01-daterange.png From the original on HackerOne

However, while signing up for a new account, I was able to set the year to 1033 by manipulating the data being sent to the server and the account was successfully created. I can also confirm the year by checking the settings page of my account. Please refer to the screenshots for information.

02-accountsignup.png
02-accountsignup.png From the original on HackerOne
03-originalpostdata.png
03-originalpostdata.png
04-modifiedpostdata.png
04-modifiedpostdata.png
05-settingspage.png
05-settingspage.png

I was also able to create a Child account with the same bug. Attaching the screenshot where the system says "You don't have an email address connected to this Khan Academy account. Since you're 1017 years old, you can connect an email address to your account, which will unlink it from your parent's account.".

06-childaccount.png
06-childaccount.png From the original on HackerOne
07-1017yearsold.png
07-1017yearsold.png

Suggestion: Proper validation should be implemented on Birthdate field so that the user is not able to set any year other than what is being displayed on the dropdown.

The original report as published on HackerOne, by paranoidglitch. 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

Root cause

Likely the server trusted the client-side dropdown restriction and did not validate the submitted birthdate year against the allowed range.

Impact

A user could create an account, including a child account, with an implausible birth year stored and displayed; no further harm is shown.

What the attacker needed

Ability to modify the sign-up request

The fix

The server should validate the birthdate year against the allowed range rather than relying on the dropdown.

How it was found

  1. Open the sign-up page and start creating a new account.
  2. Intercept or modify the birthdate data sent to the server.
  3. Set the year to a value outside the dropdown range, such as 1033.
  4. Submit the form and observe that the account is created.
  5. Check the account settings page to confirm the stored year.

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.

A website's sign-up form shows a dropdown of allowed years, but the browser only controls what you see. If the server does not check the value again, someone can send a different year directly. Here the server accepted an impossible birth year, so the account was created with a nonsensical age.

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 from Khan Academy

View all

The newest disclosed reports for this program.

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.