RCE via malicious SNS subscription payload
Package
Discourse
(Discourse)
Affected versions
stable <= 2.7.8; beta <= 2.8.0.beta6; tests-passed <= 2.8.0.beta6
Patched versions
stable >= 2.7.9; beta >= 2.8.0.beta7; tests-passed >= 2.8.0.beta7
Impact
A validation bug in the upstream aws-sdk-sns gem can lead to RCE in Discourse via a maliciously crafted request.
Patches
This issue is patched in the latest stable, beta and tests-passed versions of Discourse.
Workarounds
To workaround the issue without updating, requests with a path starting
/webhooks/aws
could be blocked at an upstream proxy.