Skip to content
Business logic Write-up Intermediate

Proofpoint Discovers Potentially Dangerous Microsoft Office 365 Functionality that can Ransom Files Stored on SharePoint and OneDrive

Proofpoint found that an attacker with access to a SharePoint Online or OneDrive account can reduce the document library versioning limit and then encrypt files multiple times, making the original versions unrecoverable. This allows ransomware to target cloud-stored files, demanding a decryption key from the attacker.

Proofpoint Follow

Published on proofpoint.com

Ransomware attacks have traditionally targeted data across endpoints or network drives. Until now, IT and security teams felt that cloud drives would be more resilient to ransomware attacks.

Proofpoint (@proofpoint), on proofpoint.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the versioning limit for document libraries can be reduced by any site owner without admin rights, and files can be edited multiple times to overwrite all restorable versions with encrypted content.

Impact

An attacker could encrypt files in SharePoint Online and OneDrive and make the original versions unrecoverable, enabling ransomware extortion; however, files stored in a hybrid state on both endpoint and cloud reduce the impact, and a full ransom requires compromising both endpoint and cloud account.

What the attacker needed

Access to a SharePoint or OneDrive account; ability to change document library settings; ability to edit and encrypt files

The fix

Microsoft should restrict who can change versioning limits or provide a reliable way to restore older versions; the report notes Microsoft stated the functionality works as intended and that older versions may be recoverable with support for 14 days, but Proofpoint could not restore them.

How it was found

  1. Gain access to a user's SharePoint Online or OneDrive account by compromising credentials, tricking them into authorizing a malicious OAuth app, or hijacking a session.
  2. Reduce the versioning limit of the document library to a low number, such as 1.
  3. Encrypt each file twice (or encrypt once and make other changes) so that all restorable versions become encrypted.
  4. Demand a ransom from the organization, as the original files are no longer recoverable without the decryption key.

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 write-up has not been written yet. The Original tab links to the source.

When you store files in the cloud, services like SharePoint and OneDrive keep old copies (versions) so you can go back if something goes wrong. This report shows that if an attacker gets into your account, they can change the settings to keep fewer old copies and then encrypt the files many times, so the old safe copies are lost. Then they can demand money to give you the key to unlock the files.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.