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

cgi module should handle large post attack #38700

Closed
yueluo mannequin opened this issue Jun 22, 2003 · 4 comments
Closed

cgi module should handle large post attack #38700

yueluo mannequin opened this issue Jun 22, 2003 · 4 comments
Assignees
Labels
extension-modules C modules in the Modules dir

Comments

@yueluo
Copy link
Mannequin

yueluo mannequin commented Jun 22, 2003

BPO 758665
Nosy @akuchling

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/akuchling'
closed_at = <Date 2004-06-05.19:12:57.000>
created_at = <Date 2003-06-22.05:20:20.000>
labels = ['extension-modules', 'invalid']
title = 'cgi module should handle large post attack'
updated_at = <Date 2004-06-05.19:12:57.000>
user = 'https://bugs.python.org/yueluo'

bugs.python.org fields:

activity = <Date 2004-06-05.19:12:57.000>
actor = 'akuchling'
assignee = 'akuchling'
closed = True
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2003-06-22.05:20:20.000>
creator = 'yueluo'
dependencies = []
files = []
hgrepos = []
issue_num = 758665
keywords = []
message_count = 4.0
messages = ['16577', '16578', '16579', '16580']
nosy_count = 3.0
nosy_names = ['akuchling', 'insomnike', 'yueluo']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue758665'
versions = []

@yueluo
Copy link
Mannequin Author

yueluo mannequin commented Jun 22, 2003

Currently, the FieldStorage class will try to read in all
the client's input to the cgi script. This may result in
deny of service attack if the client tries to post huge
amount of data. I wonder if FieldStorage could take a
parameter limiting the max post size just like the
$CGI::POST_MAX in Perl CGI.pm module.

@yueluo yueluo mannequin closed this as completed Jun 22, 2003
@yueluo yueluo mannequin added the invalid label Jun 22, 2003
@yueluo yueluo mannequin assigned akuchling Jun 22, 2003
@yueluo yueluo mannequin added the extension-modules C modules in the Modules dir label Jun 22, 2003
@yueluo
Copy link
Mannequin Author

yueluo mannequin commented Jun 22, 2003

Logged In: YES
user_id=806666

Also, a parameter like Perl's $CGI::DISABLE_UPLOADS is also a
good idea.

@insomnike
Copy link
Mannequin

insomnike mannequin commented Jun 5, 2004

Logged In: YES
user_id=1057404

cgi.py does support a cgi.maxlen variable which can be used
for this purpose. It defaults to 0, however.

@akuchling
Copy link
Member

Logged In: YES
user_id=11375

Closing.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

1 participant