Skip to content

Commit 85b24c8

Browse files
authored
FIX: Fix security issue in Fetch_Tags.py (HarshCasper#1280)
No certificate validation detected for HTTP request.Disabling certificate validation for HTTP request leave application vulnerable to man-in-the-middle attacks.
1 parent 02d8a5f commit 85b24c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/Tags_Scraper/Fetch_Tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_html(self, url):
4545
"""get_html method returns the html of the url passed"""
4646
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
4747
try:
48-
response = requests.get(url, headers=self.usr_agent, verify=False)
48+
response = requests.get(url, headers=self.usr_agent, verify=True)
4949
response.raise_for_status()
5050
return response.text
5151
except:

0 commit comments

Comments
 (0)