Google Workspace Security: DeleFriend Vulnerability Might Enable Unwanted Access to APIs


Hunters scientists kept in mind the vulnerability might lead to advantage escalation. Google said the report “does not determine a hidden security problem in our items.”

Cybersecurity researchers from the firm Hunters found a vulnerability in Google Office that might allow unwanted access to Office APIs. The defect is substantial because it could let aggressors utilize advantage escalation to gain access that would otherwise only be available to users with Super Admin gain access to. Hunters named this security defect DeleFriend.

Jump to:

Vulnerability discovered in Google’s domain-wide delegation

According to the Hunters group, the vulnerability is based upon Google Work space’s function in managing user identities across Google Cloud services. Domain-wide delegation (DWD) connects identity objects from either Google Work Space Market or a Google Cloud Platform Service Account to Work Area.

Domain-wide delegation can be utilized by assaulters in two primary methods: to produce a new delegation after having actually accessed to a Super Admin advantage on the target Workspace environment through another attack, or to “identify effective mixes of service account secrets and OAuth scopes,” Hunters stated. This second way is the unique method the scientists have actually found. Yonatan Khanashvilli, risk searching expert at Group Axon at Hunters, posted a far more in-depth description of DeleFriend.

Response from Google

Hunters revealed this flaw to Google in August 2023 and composed, “Google is currently reviewing the issue with their Item group to assess possible actions based upon our suggestions.”

An anonymous Google agent told The Hacker News in November 2023, “This report does not recognize a hidden security problem in our products. As a finest practice, we encourage users to make certain all accounts have the least quantity of benefit possible (see guidance here). Doing so is crucial to combating these types of attacks.”

Why this Google Work space vulnerability is especially hazardous

Hunters stated this vulnerability is especially hazardous since it is long-lasting (GCP Service account secrets do not have expiry dates by default), easy to hide and hard to identify. When inside an account with Super Admin opportunities, enemies might possibly view e-mails in Gmail, view somebody’s schedule in Google Calendar or exfiltrate data from Google Drive.

“The potential repercussions of destructive stars misusing domain-wide delegation are severe. Instead of affecting just a single identity, as with private OAuth authorization, exploiting DWD with existing delegation can impact every identity within the Workspace domain,” stated Khanashvili in the press release.

SEE: Overworked IT pros in Australian small companies have a number of alternatives for handling cyber security. (TechRepublic)

How to find and resist DeleFriend

In addition to making sure benefits are established appropriately, as Google notes, IT admins might create each service account in a different job if possible, Hunters said. Other suggestions from Hunters to safeguard against DeleFriend exploitation are:

  • Limit OAuth scopes in delegations as much as possible, using the principle of least benefit.
  • Prevent administrative scopes such as
  • Focus detection engineering and hazard searching practices on suspicious delegations and multiple private key productions over a short amount of time.
  • Keep security posture and health finest practices.

Google suggests the following:

  • Please inspect if you are currently using domain wide delegation by visiting the Admin Console page. If you are not utilizing DWD today then there is no current threat and future DWD usage need to follow the upcoming best practices guide.
  • If you have Service Accounts that you have established for DWD, you should examine each setup and safe and secure access to those service accounts by:
  • Guaranteeing the Service Accounts have least advantages in terms of API scopes granted to them by checking out this page on the Admin Console and revoking Service Account access to unused scopes.
  • Make Sure just Super Admins or comparable security roles in GCP console have the ability to create/update those service accounts and associated secrets.

Hunters created a proof-of-concept tool for running the DeleFriend exploitation technique manually. The tool works by enumerating GCP Projects using the Resource Supervisor API, iterating and enumerating on GCP Service account resources and job resources, and examining particular functions and consents from there, consisting of extracting private key value from a privateKeyData characteristic secret (Figure A). Completion result is a JWT item, which can be exchanged with a temporary gain access to token to permit access to Google APIs. Konanshvili’s blog post consists of more detail.

Figure A

Delefriend snippet. Part of the DeleFriend make use of involves a key development function that extracts the personal crucial worth from a privateKeyData characteristic key, Hunters found. Image: Hunters

The tool is intended for scientists in order to spot misconfigurations, and “boost awareness around OAuth delegation attacks in GCP and Google Workspace and to improve the security posture of companies that use the Domain-Wide-Delegation function,” Hunters wrote.

Keep in mind: This story was updated with recommendations from Google.


Leave a Reply

Your email address will not be published. Required fields are marked *