Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions shuffle-tools/1.2.0/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@

data = {"numbers": targets, "body": body}

url = "https://shuffler.io/api/v1/functions/sendsms"
# this is just to expose this feature to onprem users as well
base = self.url if "shuffler.io" in self.url or "run.app" in self.url else "https://shuffler.io"

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
shuffler.io
may be at an arbitrary position in the sanitized URL.
url = "%s/api/v1/functions/sendsms" % base
headers = {"Authorization": "Bearer %s" % apikey}
return requests.post(url, headers=headers, json=data, verify=False).text

Expand Down Expand Up @@ -226,7 +228,9 @@
except Exception as e:
pass

url = "https://shuffler.io/functions/sendmail"
# this is just to expose this feature to onprem users as well
base = self.url if "shuffler.io" in self.url or "run.app" in self.url else "https://shuffler.io"

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
shuffler.io
may be at an arbitrary position in the sanitized URL.
url = "%s/functions/sendmail" % base
headers = {"Authorization": "Bearer %s" % apikey}
return requests.post(url, headers=headers, json=data).text

Expand Down
Loading