Skip to main content
Back
DemonstrationAzure
2 min read

ExtraReplica crossed a tenant boundary in Azure Database for PostgreSQL

Environment
Azure PostgreSQL research demonstration by Wiz
When
Research in January 2022; individual test dates not statedDisclosed Apr 28, 2022
Entry
Wiz identifies a privilege boundary failure in the Microsoft-managed database environment.

Wiz demonstrated that a flaw it calls ExtraReplica in Azure Database for PostgreSQL allowed database access across account boundaries on the public-access Flexible Server offering. Private-access Flexible Servers and the Single Server offering were outside this cross-account finding. Microsoft deployed a fix and found no access to customer data.

What the demonstration did

Research team
Wiz
Internet
Azure PostgreSQL
Database engine
Flexible Server

Research demonstration / Wiz

  1. 1

    Managed database privileges

    January 2022

    Wiz identifies a privilege boundary failure in the Microsoft-managed database environment.

  2. 2

    Flexible Server deployment

    January 2022

    Wiz demonstrates cross-account access on affected public-access Flexible Servers.

Impact

Wiz demonstrated unauthorized cross-account database access in the public-access Flexible Server deployment. Single Server was outside the cross-account result; one underlying privilege issue also affected that offering.

Would the controls have stopped it?

Private-access Flexible Servers were outside the affected configuration

Microsoft fixed the service for existing deployments. The incident report explicitly excludes Flexible Servers deployed with private virtual network integration. This was a distinct networking choice, separate from filtering addresses on a public server.

Incident control assessments

1
Prevented
0
Contained
1
Not covered

How it could have been prevented

The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.

Research team
Wiz
Internet
Azure PostgreSQL
Database engine
Flexible Server

Research demonstration / Wiz

1 · Managed database privileges

1 Not covered

2 · Flexible Server deployment

1 Prevented

Key facts

  • Wiz reported the PostgreSQL service findings to Microsoft on January 11.
  • Microsoft told Wiz it had reproduced all the reported vulnerabilities.
  • A fix had reached all vulnerable instances by February 25.
  • Wiz published its research and reported that Microsoft knew of no exploitation attempts. Flexible Server instances deployed with private access were outside the cross-tenant finding.
  • Microsoft found no customer data access. All public-access Flexible Servers were affected. Private-access Flexible Servers and Single Server were outside the cross-account issue.

Sources

Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.

  1. 1.
    Wiz Research discovers “ExtraReplica”— a cross-account database vulnerability in Azure PostgreSQLWiz Research · Apr 29, 2022 · ResearchWiz demonstrated unauthorized cross-account database access in the public-access Flexible Server deployment. Single Server was outside the cross-account result; one underlying privilege issue also affected that offering.
  2. 2.
    Network with private access (virtual network integration) in Azure Database for PostgreSQL flexible serverMicrosoft · undated · Vendor reportMicrosoft describes delegated subnets and private addresses for Flexible Server virtual network integration.
  3. 3.
    Azure Database for PostgreSQL Flexible Server Privilege Escalation and Remote Code ExecutionMicrosoft Security Response Center · Apr 28, 2022 · AdvisoryMicrosoft found no customer data access. All public-access Flexible Servers were affected. Private-access Flexible Servers and Single Server were outside the cross-account issue.

The estate in the replay follows the researchers' description of their own test environment. Verdicts describe what a control does when it is in place before the run. They are not an assessment of any company's security program.

More cloud attack breakdowns

All breakdowns