Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malicious File Upload Vulnerability #269

Open
hacip opened this issue Jun 20, 2023 · 2 comments
Open

Malicious File Upload Vulnerability #269

hacip opened this issue Jun 20, 2023 · 2 comments

Comments

@hacip
Copy link

hacip commented Jun 20, 2023

UploadController.cs file does not have any security control if the Editor chose to upload a video.

Between Line 101 and 110 on UploadController.cs, it gets a file submitted via HTTP request (Line 20), sets a hard-coded destination for the upload (Custom/Media), and calls the UploadVideo function which is in the same file.

The UploadVideo function does only check if the target directory exists or not, but it does not check the file.

Therefore, it is possible to upload a malicious file that can run commands on the app server.

To mitigate, file type should be checked using a white-list approach, if the type of the fille is not known by the application, the upload function should return an error.

@hacip hacip changed the title Malicious File Upload Vulnerability - CVE-2023-33404 Malicious File Upload Vulnerability Jun 21, 2023
@VFA91
Copy link

VFA91 commented Jun 26, 2023

Hi @hacip do you know any alternative to this repo? i want to do something similar to wordpress for users like this, the only thing is that this is not in .net Core, it works in any technology, thank you very much.

@Davi-Gray
Copy link

You could take a look at DotNetNuke (or "DNN" as they're calling it now). I definitely would not use BlogEngine.NET right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants