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

[Bug]: Vulnerability about insecure file upload #2077

Open
aibot88 opened this issue Dec 15, 2024 · 1 comment
Open

[Bug]: Vulnerability about insecure file upload #2077

aibot88 opened this issue Dec 15, 2024 · 1 comment

Comments

@aibot88
Copy link

aibot88 commented Dec 15, 2024

Installation Method | 安装方法与平台

Others (Please Describe)

Version | 版本

Latest | 最新版

OS | 操作系统

Linux

Describe the bug | 简述

any installation model, version, os will affect by this vulnerability

File Upload

abstract

remote attack, deny of service

poc

to exploit vulnerability, someone must upload a huge file (maximum the left space of server. ), A huge and complex zip file is better choice.

content

A vulnerability in the file upload functionality of gpt_academic 3.9 allows attackers to upload excessively large files without proper size validation. This can result in resource exhaustion, leading to a denial of service (DoS) condition, as the server struggles to process or store the uploaded data. The issue occurs due to the absence of adequate file size limits or validation mechanisms in the upload process.

Screen Shot | 有帮助的截图

image

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

there is no file type or file size limitation in the on_upload_file logic

@aibot88
Copy link
Author

aibot88 commented Dec 16, 2024

repair PR:#2086

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

1 participant