Azure Database for PostgreSQL Flexible Server Extension Elevation of Privilege Vulnerability (CVE-2024-49042)
An administrator-level user of an Azure Database for PostgreSQL Flexible Server could send a crafted request to escalate to SuperUser privileges when a specific non-default feature is enabled. The attacker gains the same privileges as the SuperUser role.
Originally disclosed on Microsoft
FAQ
How could an attacker exploit this vulnerability? An attacker with the administrator role of "azure_pg_admin" in the target environment could exploit this vulnerability to gain the same privileges as a SuperUser by sending a specially crafted request to an Azure Database for PostgreSQL Flexible Server with specific non-default functionality enabled.
FAQ
According to the CVSS metric, privileges required is high (PR:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires the attacker to have administrator privileges on the target system.
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploits this vulnerability would gain the same privileges as the SuperUser role.
Azure Database for PostgreSQL
Azure Database for PostgreSQL
Microsoft
Microsoft
Customer Action Required
Yes
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 a flaw in how the extension functionality handles privilege checks, allowing an administrator role to reach SuperUser-level operations.
Impact
An attacker with the administrator role could gain SuperUser privileges, but only when the specific non-default functionality is enabled.
What the attacker needed
Administrator role azure_pg_admin; non-default functionality enabled
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 database has different levels of permission. An administrator can do a lot but not everything; a SuperUser can do everything. This bug let someone who was only an administrator send a special request and become a SuperUser, which is a higher level of control.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.