Skip to content

[OPINION/share yours] Should we limit file types in the file uploader? #45

@robiso

Description

@robiso

Short discussion description

  • Since version 2.3.0, the built in WonderCMS file uploader accepts ANY file type, not just pictures.
  • This brings great responsibility to the admin user. The admin user must NOT upload malicious files that could harm their own website.
  • Some people have voiced their opinion that this is bad and that the user could harm himself by uploading any malicious files.

Below are arguments for and against this uploading any file type feature

Arguments to keep this feature (uploading any files)

  • This is similar functionality to FTP/SSH uploading (no limits).
  • Only the admin can upload files:
    • meaning if the admin wants to hurt his/her website, there are other channels to do self-harm than the simple file uploader.
  • We've removed this limit to enable users to upload whatever extension they want.

Arguments to limit this feature to just uploading pictures

  • User can not inflict harm to their website through the file uploader (but can still do this via FTP/SSH/other channels).
  • If the user gets compromised, an attacker can upload whatever they want in their files directory.

How can the user be compromised?

  • Sharing their password.
  • Sharing their login URL, which could lead to password brute forcing.
    • It is very important to keep your login URL safe for cases like this.

What happens when an user in a shared environment gets compromised?

  • Shared hosting plans usually have a protection in place, a protection that limits the user only to their account - so no further damager could be done (to other users on the same hosting plan):
    • the user inflicts damage only upon himself and his website (and no other users on the same shared hosting plan).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions