-
-
Notifications
You must be signed in to change notification settings - Fork 32k
poplib.py: Missing integer parsing validation causes client crash on invalid server response #130637
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
Comments
Mr-Sunglasses
added a commit
to Mr-Sunglasses/cpython
that referenced
this issue
Feb 27, 2025
This is a wrong exception ( |
ericvsmith
added a commit
that referenced
this issue
Mar 2, 2025
#130646) Co-authored-by: Eric V. Smith <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 2, 2025
… method (pythonGH-130646) (cherry picked from commit a42168d) Co-authored-by: Kanishk Pachauri <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 2, 2025
… method (pythonGH-130646) (cherry picked from commit a42168d) Co-authored-by: Kanishk Pachauri <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
terryjreedy
pushed a commit
that referenced
this issue
Mar 2, 2025
…` method (GH-130646) (#130764) gh-130637: Add validation for numeric response data in `stat()` method (GH-130646) (cherry picked from commit a42168d) Co-authored-by: Kanishk Pachauri <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
terryjreedy
pushed a commit
that referenced
this issue
Mar 2, 2025
…` method (GH-130646) (#130763) gh-130637: Add validation for numeric response data in `stat()` method (GH-130646) (cherry picked from commit a42168d) Co-authored-by: Kanishk Pachauri <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
… method (python#130646) Co-authored-by: Eric V. Smith <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
In poplib.py at line 229 the code attempts to convert a server response to an integer without first verifying that the response is numeric. If the server returns a non-numeric response, the int() conversion fails causing the client to crash.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
Linked PRs
stat()
method #130646stat()
method (GH-130646) #130763stat()
method (GH-130646) #130764The text was updated successfully, but these errors were encountered: