0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/app/services/problem_check
Nat 61f12e13aa SECURITY: Prevent any signed AWS SNS TopicARN from being accepted via webhooks
Any AWS account holder can subscribe their own SNS topic to a Discourse instance's /webhooks/aws and publish bounce notifications that AWS will sign legitimately. The forged bounces are processed against arbitrary user emails, bumping bounce_score and eventually triggering email revocation..

This fix adds a new `aws_sns_topic_arn_allowlist` site setting. Also hardens Jobs::ProcessSnsNotification against three issues:
- Binds bounces to (message_id, to_address) via find_by, so a legitimately-subscribed SNS publisher can no longer bounce arbitrary recipients we didn't send to.
- Skips duplicate notifications (next if email_log.bounced?) — AWS SNS delivers at-least-once.
- Uses update! instead of update_columns so EmailLog's existing before_save normalizes the bounce status code.

Also add a dashboard problem flags self-hosted admins whose SMTP looks like SES but who haven't set the allowlist yet.

https://github.com/discourse/discourse/security/advisories/GHSA-8f9m-v436-wr3x
2026-06-30 16:10:52 +02:00
..
bad_favicon_url.rb
content_security_policy_disabled.rb FEATURE: Warn admins when Content Security Policy is disabled (#40791) 2026-06-11 11:34:37 +01:00
email_polling_errored_recently.rb
email_sending_failures.rb FEATURE: Add PM whisper feedback for email sending failures (#40250) 2026-05-22 17:17:15 -03:00
facebook_config.rb
failing_emails.rb
force_https.rb FIX: Fix scheduled targeted problem checks (#35696) 2025-11-10 10:09:14 +08:00
github_config.rb
github_onebox_backoff.rb FEATURE: Route all GitHub API requests through one rate-limited client (#40637) 2026-06-15 10:59:10 +02:00
google_analytics_version.rb
google_oauth2_config.rb
group_email_credentials.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
host_names.rb
image_magick.rb
inline_problem_check.rb
maxmind_db_configuration.rb
missing_aws_sns_topic_arn.rb SECURITY: Prevent any signed AWS SNS TopicARN from being accepted via webhooks 2026-06-30 16:10:52 +02:00
missing_mailgun_api_key.rb Revert "DEV: Replace MissingMailgunApiKey check with comprehensive Em… (#38038) 2026-02-24 19:38:30 +00:00
out_of_date_themes.rb
poll_pop3_auth_error.rb
poll_pop3_timeout.rb
problem.rb DEV: Support target in problem check problem constructor (#31922) 2025-03-24 10:10:41 +08:00
qq_mail_smtp.rb FEATURE: Warn admins when QQ Mail SMTP is configured 2026-01-30 16:39:24 +00:00
rails_env.rb
ram.rb
s3_backup_config.rb
s3_cdn.rb
s3_upload_config.rb
sidekiq_check.rb I18n: Fix reference to sidekiq_check string (#40416) 2026-06-01 11:16:10 -04:00
starttls_disabled.rb FIX: actually disable SMTP starttls if the user is attempting to disable it 2025-11-04 23:42:14 -05:00
subfolder_ends_in_slash.rb
translation_overrides.rb
twitter_config.rb
twitter_login.rb
unreachable_themes.rb
upcoming_change_stable_opted_out.rb DEV: Remove enable_upcoming_changes global setting gate (#38360) 2026-03-10 10:08:20 +10:00
watched_words.rb