Allows large characters in password filling in athou/commafeed
Reported on
Jul 5th 2022
Description
The commafeed
application allows large characters to insert in the input field "password" which can allow attackers to cause a Denial of Service (DoS) via a crafted HTTP request.
Proof of Concept
1. Register a new account.
2. Fill a normal email, fill the "Password" and "Password (agian)" input field with huge characters (more than 1 lakh)
3. Register
You will see the application accepts large characters and if we will increase the characters then it can lead to Dos.
Payload
You can get the large character at there (you can increase more) https://drive.google.com/file/d/1Q_optB_MfI7byzpS7SB8kPeVNc2DebwT/view?usp=sharing
Patch recommendation:
The password input should be limited to 50 characters or less
Impact
This weakness will generally lead to undefined behavior and therefore crashes. Such as DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Instability
References
- https://huntr.dev/bounties/78e88fe0-5ffc-4b2e-8ff9-a7b7da1ff746/
- https://huntr.dev/bounties/97e36678-11cf-42c6-889c-892d415d9f9e/
- https://cwe.mitre.org/data/definitions/190.html#:~:text=An%20integer%20overflow%20or%20wraparound%20occurs%20when%20an%20integer%20value,very%20small%20or%20negative%20number.