Toutes les vulnérabilités
HIGHInfra

CLOUD-CLOUDSQL-PRIVESC-2023

Cloud · GCP · Google Cloud SQL for SQL Server

Résumé

On 24 May 2023 Dig Security disclosed a privilege-escalation chain in Google Cloud SQL for SQL Server, originally reported to Google in February 2023, that let an attacker escalate from a limited database role to full system administrator and reach the host operating system. The chain first abused a gap in GCP's security hardening to add the attacker's user to DbRootRole, an elevated GCP admin role that nonetheless lacked full SQL Server permissions, then exploited a further misconfiguration in the role permission architecture to grant the SQL Server sysadmin role and obtain complete control of the database engine. With sysadmin rights the researchers reached the underlying container and host OS, letting them list privileged paths, read sensitive files and extract secrets, including internal GCP data and credentials related to the managed service. This was a provider-side flaw under shared responsibility that customers could not patch; Google remediated it in April 2023 and it was found and reported by researchers with no evidence of exploitation in the wild.

Comment l’éviter dans votre code

  • Apply least privilege to Cloud SQL database users and avoid granting broad admin roles.
  • Restrict Cloud SQL access with private IP, authorized networks and the Cloud SQL Auth Proxy.
  • Rotate database and service credentials after provider advisories affecting managed databases.
  • Enable Security Command Center and audit Cloud SQL admin and role-change activity.
  • Encrypt data with customer-managed encryption keys and isolate workloads across projects.

Références

Vulnérabilités liées

Tout Infra →