-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1393 as a shop admin when i get a new subscriber they are added to Mailchimp #1394
#1393 as a shop admin when i get a new subscriber they are added to Mailchimp #1394
Conversation
url = f"https://{dc}.api.mailchimp.com/3.0/ping" | ||
|
||
# Make the GET request | ||
response = requests.get(url, auth=HTTPBasicAuth("anystring", mailchimp_api_key)) |
Check failure
Code scanning / CodeQL
Full server-side request forgery Critical
user-provided value
response = requests.get( | ||
f"https://{dc}.api.mailchimp.com/3.0/lists/{list_id}", | ||
auth=HTTPBasicAuth("anystring", mailchimp_api_key), | ||
) |
Check failure
Code scanning / CodeQL
Full server-side request forgery Critical
user-provided value
else: | ||
msg = f"Failed to ping Mailchimp API. Status code: {response.status_code}. Response: {response.text}" # noqa: E501 | ||
log.error(msg) | ||
return msg |
Check warning
Code scanning / CodeQL
Reflected server-side cross-site scripting Medium
user-provided value
🚀 PR was released in |
🚀 PR was released in |
Issue ref: #1393
Screenshot before:
Screenshot after:
How to run test(s) for this PR see: Testing