python / python/cpython

[security] Open redirect attack due to insufficient validation in Urlparse

Open
#88,907 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.11 3.7 (EOL) 3.8 (EOL) 3.9 (EOL) stdlib type-security
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 44744
Nosy @lysnikolaou, @loganasherjones, @ready-research

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 = None
closed_at = None
created_at = <Date 2021-07-26.14:58:32.795>
labels = ['type-security', '3.8', '3.9', '3.10', '3.11', '3.7', 'library']
title = '[security] Open redirect attack due to insufficient validation in Urlparse'
updated_at = <Date 2021-07-30.20:30:12.641>
user = 'https://github.com/ready-research'

bugs.python.org fields:

activity = <Date 2021-07-30.20:30:12.641>
actor = 'terry.reedy'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-07-26.14:58:32.795>
creator = 'ready-research'
dependencies = []
files = []
hgrepos = []
issue_num = 44744
keywords = []
message_count = 5.0
messages = ['398232', '398273', '398274', '398276', '398295']
nosy_count = 3.0
nosy_names = ['lys.nikolaou', 'loganasherjones', 'ready-research']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'test needed'
status = 'open'
superseder = None
type = 'security'
url = 'https://bugs.python.org/issue44744'
versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Urlparse behavior described in BPO issue 44744 and inspect the current URL-parsing implementation. Reproduce the open-redirect case and determine the validation expected for affected inputs. Done means the attack is prevented and regression coverage verifies the corrected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.