diff --git a/api.wordpress.org/public_html/dotorg/slack/community-deputies-calendly-webhook.php b/api.wordpress.org/public_html/dotorg/slack/community-deputies-calendly-webhook.php
index cb4a7b7e38..e90dacf17e 100644
--- a/api.wordpress.org/public_html/dotorg/slack/community-deputies-calendly-webhook.php
+++ b/api.wordpress.org/public_html/dotorg/slack/community-deputies-calendly-webhook.php
@@ -49,7 +49,7 @@ function api_request( $url ) {
}
// Check the request is valid.
-if ( empty( $_GET['secret'] ) || ! hash_equals( COMMUNITY_CALENDLY_SECRET, $_GET['secret'] ) ) {
+if ( empty( $_GET['secret'] ) || ! is_string( $_GET['secret'] ) || ! hash_equals( COMMUNITY_CALENDLY_SECRET, wp_unslash( $_GET['secret'] ) ) ) {
header( 'HTTP/1.1 403 Forbidden' );
die( 'Invalid secret provided.' );
}
diff --git a/api.wordpress.org/public_html/dotorg/slack/security-team.php b/api.wordpress.org/public_html/dotorg/slack/security-team.php
index 65ce43cf57..c71b5d4f81 100644
--- a/api.wordpress.org/public_html/dotorg/slack/security-team.php
+++ b/api.wordpress.org/public_html/dotorg/slack/security-team.php
@@ -1,4 +1,18 @@