Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://github.com/zh54321/SharePointDumper Content Categories: Based on the analysis, this content was categorized under "Azure Pentesting -> Az - Entra ID (AzureAD) & Azure IAM (or a new Microsoft 365 / Microsoft Graph / SharePoint Online subsection under Azure identity/post-exploitation); include as 'Microsoft Graph delegated token abuse for SharePoint enumeration & exfiltration (pre-auth download URLs, first-party client IDs/redirect URIs, CAE/refresh, traffic shaping)'.". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
What this is
SharePointDumper is a PowerShell-based SharePoint extraction + auditing utility designed for SOC/DLP testing, purple teaming, and basic red-team assessments. Given an already obtained Microsoft Graph OAuth2 delegated access token, it:
🔧 Technical Details
Delegated Graph token → SharePoint data exfiltration at scale: If you obtain a delegated Microsoft Graph access token with
Sites.Read.AllorSites.ReadWrite.All, you can programmatically enumerate SharePoint resources through Graph (sites → drives → folders/files) and then exfiltrate file contents by downloading items via SharePoint “pre-authentication” download URLs. This turns a token theft event into bulk document theft with high confidentiality impact.Using pre-consented Microsoft first-party OAuth clients to get usable tokens: When many Microsoft first-party app registrations already have pre-consented
Sites.Read…permissions, an operator can request tokens using those knownClientID+RedirectUrlpairs (and sometimes an-Originheader for non-FOCI clients) instead of registering a new app in the tenant. Tools like EntraTokenAid automateInvoke-Authto obtain these to...🤖 Agent Actions
Summary:
Tests:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.