Giter Club home page Giter Club logo

Comments (7)

tyranid avatar tyranid commented on July 20, 2024

The "fix" is in App.config with the line . That just disables the security fix where you could pass an IMessage object which was actually a remote proxy. However as long as the server is running with TypeFilterLevel.Full then useser should work, however only a subset of commands work in that scenario.

Presumably the exception you're getting is from the server, not the client? Perhaps double check the server code is actually set to TypeFilterLevel.Full. Also it might be down to the way that the channels are registered in the server, the code might be passing say an IPC channel when only a TCP channel is registered and vice versa.

from exploitremotingservice.

Meatballs1 avatar Meatballs1 commented on July 20, 2024

Did you mean to say, the line <add key="microsoft:Remoting:AllowTransparentProxyMessage" value="true"/> ?

I am only trying to use ls. Exception is from the server.

Having a look at the network traffic with a 'legitimate' client I wrote it only talks on the one channel to send the command and retrieve the output (basically string getProperty(string x)), and doesn't use the second channel/tcp connection (default 11111).

from exploitremotingservice.

Meatballs1 avatar Meatballs1 commented on July 20, 2024

Had another look at the code, it only creates and registers a TcpServerChannel (with a BinaryServerFormatterSinkProvider { TypeFilterLevel.Full }. There is no BinaryClientFormatterSinkProvider, I assume in this configuration it won't do the connect back to our service on11111?

from exploitremotingservice.

tyranid avatar tyranid commented on July 20, 2024

Yeah, basically it assumed that you'd normally setup both a client and a server provider, which is what a normal TcpChannel would do, but if they just register a server channel then there's no client channel to talk back to you. What .NET runtime is the server using? If it's at least 3.5 then could repurpose one of my direct serialization attacks.

from exploitremotingservice.

Meatballs1 avatar Meatballs1 commented on July 20, 2024

Good suggestion, I thought they were all patched but I just tried your TypeConfuseDelegate (in ysoserial.net) and substituted the 'data' in SendRequest ftw :)

from exploitremotingservice.

tyranid avatar tyranid commented on July 20, 2024

Glad it sounds like it works :-) None of those serialization bugs are actually patched. At some point I'd try and merge them into the tool but I've not had the time or the inclination. At the least I probably should add a command which just takes a blob and send it to there server.

from exploitremotingservice.

tyranid avatar tyranid commented on July 20, 2024

Meatballs1 added a 'raw' command to the tool to take an arbitrary BASE64 string with a serialized .NET stream. I also changed the option to also take a file containing the binary data for the stream which makes it easier for large serialized blobs. Closing this issue.

from exploitremotingservice.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.