Git Product home page Git Product logo

citrix-printer-exfil's Introduction

Data Exfilitation through Citrix Printer Redirection

This was an idea we implemented during an engagement back in 2017 to exfiltrate data from a hardened Citrix XenApp environment through client printer redirection, i.e. client printers can be mapped to a Citrix session. When client printing is permitted we can use the printer metadata to copy data to or from an "isolated" virtualised desktop back to the client.

The attack works like this:

  1. Client sets up a printer locally;
  2. A Citrix session is established by the client;
  3. If client printing is permitted the printer is now available on the "virtualised desktop";
  4. The "printer comments" metadata on the shared printer is used to write data;
  5. The metadata becomes visible to the client where it can be copied off;
  6. Rinse & Repeat;

The proof of concept breaks down a file into bytes and then creates a loop to copy the data over in chunks. The same concept can be used to copy tools and scripts over for further recon/exploitation.

There can be a slight delay between writing the data on the virtualised desktop and receiving it on the client side, there is also a limit on the number of bytes you send per change, so it's probably not going to let send or receive large data chunks.

Credit: Mansour Al-Zayani (MZ) for implementing the idea and writing a large portion of the code.

Reported to Citrix 18 Feb 2017.

citrix-printer-exfil's People

Contributors

withdk avatar

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.