Tainted flow: 'topic_url' from input (line 15, user input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
print(f"Scraping topic: {topic_id}") # Fetch first page to auto-detect total pages r = requests.get(topic_url) soup = BeautifulSoup(r.content, 'html5lib') last_offsets = re.findall(r'/topic/' + topic_id + r'/\+(\d+)', str(soup)) if last_offsets:- Confidence
- 95% confidence
- Finding
- r = requests.get(topic_url)
