Skip to content
SSRF Disclosed report Intermediate

SSRF in notifications.server configuration

An administrator could set the notification server configuration to point at an attacker-controlled host, causing the Phabricator server to send requests to that host. The attacker's server could then redirect those requests to internal or external resources, enabling internal port scanning and service version discovery.

codeprivate Follow

Originally disclosed on HackerOne

Bounty$300 Medium 4.7 View original
  • Fixed in 10 hours
  • Paid in 10 hours
  • Disclosed after 30 days
<mongoose>

Modifying the notification server settings so that it connects to a malicious server. An attacker is able to redirect traffic from the vulnerable application to internal or external network resources. Steps To Reproduce:

  1. Open your phabricator installation authenticated with an administrator user.
  2. Go to Config> Settings> notification.servers
  3. Copy the values ​​of "Simple Example" and replace them in "Database Value" with the attacker's data. ( in type admin block )

something like that:

[
  {
    "type": "client",
    "host": "phabricator.mycompany.com",
    "port": 22280,
    "protocol": "https"
  },
  {
    "type": "admin",
    "host": "X.X.X.X",
    "port": 22281,
    "protocol": "http"
  }
]

Being X.X.X.X is the IP of the malicious server.

4 . The malicious server receives a GET request from the victim server to the path "/ status", puts an index.php file in that directory of his server and can redirect the destination of the original request to internal or external assets.

PoC

<?php
header("Location: http://anywere.loc/bad_intentions");
?>
</mongoose>

Impact

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. Referer: https://www.owasp.org/index.php/Server_Side_Request_Forgery

I made a video exploiting this vulnerability in my own phabricator installation. demonstrating the steps to reproduce, and making 2 types of attacks possible with this. (F788864)

Attachments

SSRF-Phabricator-POC.mp4 From the original on HackerOne

The original report as published on HackerOne, by codeprivate. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the notification server configuration accepts arbitrary host values without validating that they point to trusted or internal-only destinations, so the server will connect to any address supplied.

Impact

An attacker with administrator access could use the server to reach internal resources, scan internal ports and learn the versions of services running there.

What the attacker needed

Administrator access to Phabricator; attacker-controlled server reachable by victim

How it was found

  1. Log in to the Phabricator installation as an administrator.
  2. Open the notification server settings under Config > Settings.
  3. Replace the database value with a configuration pointing at the attacker's host.
  4. The attacker's server receives a request on the status path and can redirect it to internal or external resources.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A server-side request forgery (SSRF) bug means the application can be tricked into making network requests on the attacker's behalf. Here, whoever controls the notification server setting can make the Phabricator server talk to a machine they own, and that machine can bounce the request onward to places the attacker cannot reach directly, such as internal systems.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by codeprivate

View all

1 more disclosed report, best first.

More from Phabricator

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.