I had an interesting discussion with a PHP security colleague.
Say a person has a PHP site that works with a standard HTML form. The attacker decides to use the Chrome developer tools and add to the DOM enctype="multipart/form-data"and file input.
An attacker is downloading a file, it probably will not be executed if it is a virus, but it still uses the bandwidth / storage for this moment. Will the file go to the PHP directory /tmpjust by doing this? Won't this make any form any that is unsafe, since the user can upload the file in any form?
On a larger scale, if 100,000 people added this to the DOM and uploaded a random gigabyte file? Wouldn't that affect their bandwidth and / or memory?
Jream source
share