GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `http.cookiejar` skips domain checks for cookies with a negative `Version` · Issue #160300 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue DescriptionBug reportBug description:
Any server a program contacts with a shared import urllib.request from http.cookiejar import CookieJar from email.message import Message class Response: def __init__(self, set_cookie): self.msg = Message() self.msg["Set-Cookie"] = set_cookie def info(self): return self.msg for version in "", "; Version=-1": jar = CookieJar() req = urllib.request.Request("http://www.a.example/") jar.extract_cookies( Response("k=v; Domain=b.example; Path=/" + version), req) req = urllib.request.Request("http://www.b.example/") jar.add_cookie_header(req) print(repr(version), "->", req.get_header("Cookie")) Output on main: Expected CPython versions tested on:CPython main branch Operating systems tested on:Linux Linked PRs
ANT-2026-TA36I7V7 Activity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-securityA security issueA security issue ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |