Skip to content
Memory corruption Disclosed report Beginner

Buffer overflow

The sign-up form on a donation platform accepted an email address of enormous size, and after repeated submissions the application returned an error. The reporter claims this could crash the program or lead to code execution, but the text only shows an error message.

kaushalag29 Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 23 hours

A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold or when a program attempts to put data in a memory area past a buffer. In this case, a buffer is a sequential section of memory allocated to contain anything from a character string to an array of integers. Writing outside the bounds of a block of allocated memory can corrupt data, crash the program, or cause the execution of malicious code. For better refernce: https://www.owasp.org/index.php/Buffer_Overflow

POC: Go to https://liberapay.com/sign-up Now type(copy and paste using python) email address of size more than 100mb or in gbs and sign up. After signing up for few times u will receive this error as shown in sent pic.

Steps to resolve: Restrict size limit on input parameter.

Impact

Category:Availability: Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop. Access control (instruction processing): Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program’s implicit security policy. Other: When the consequence is arbitrary code execution, this can often be used to subvert any other security service.

Attachments

Screenshot_from_2018-06-09_12-15-18.png
Screenshot_from_2018-06-09_12-15-18.png From the original on HackerOne

The original report as published on HackerOne, by kaushalag29. 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 sign-up input had no length limit, so an oversized email address was accepted and later mishandled, though the text does not show a real memory corruption.

Impact

The reporter claims the overflow could crash the application or allow arbitrary code execution, but the only evidence is an error message, so the real impact is unproven.

What the attacker needed

Ability to send very large requests

How it was found

  1. Open the sign-up page.
  2. Submit an email address of over 100 MB, pasted with a script.
  3. Repeat the sign-up several times.
  4. Observe an error message.

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 buffer is a fixed-size area of memory a program uses to hold data. If a program copies more data into it than fits, the extra data spills into neighbouring memory, which can crash the program or, in bad cases, let an attacker run their own code. Here the reporter says a very long email address in a sign-up form caused an error, but no crash or code execution is actually demonstrated.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by kaushalag29

View all

1 more disclosed report, best first.

More from Liberapay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.