|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Sec Bug #81523 The search bar in your site no contains atributte "maxlenght"
Submitted: 2021-10-13 17:06 UTC Modified: 2021-11-03 19:06 UTC
From: neibase123 at gmail dot com Assigned:
Status: Open Package: Website problem
PHP Version: Irrelevant OS: irrelevante
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: neibase123 at gmail dot com
New email:
PHP Version: OS:


 [2021-10-13 17:06 UTC] neibase123 at gmail dot com
Your site's search bar doesn't contain the "maxlength" html attribute, I enter an absurd amount of characters, if your server doesn't filter these characters, they can cause a Denial Of Service attack 

Test script:
#this script works on any page on the site that contains the search bar.
# please in console navigator paste lines one for one 
# tested in

document.getElementsByName("pattern")[0].value = "A".repeat(10000000)


Expected result:
Demonstrate how it can set a huge value in the search bar, if the attacker enters and your server doesn't filter these characters, they can cause a DOS attack


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-14 00:30 UTC]
-Package: *Web Server problem +Package: Website problem
 [2021-10-14 10:06 UTC]
-Private report: No +Private report: Yes
 [2021-10-14 10:06 UTC]
The missing maxlength attribute is certainly not a security issue,
since a client can ignore that.  Not restricting the length
server-side, however, might be an issue in this case.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 23:05:54 2022 UTC