Skip to content

Xps

plugin

Generates a malicious XPS document (CVE-2020-0605) for XpsDocument or PrintQueue.AddJob(path) - binary output, use --outputpath to save it as an .xps file

Declared metadata, not a runtime result. How to read evidence.

Terminal window
.\ysonet.exe -p Xps -h

Target declarations

Runtime tokens: unspecified.

Structured formatter and requirement metadata is not declared. Read the description and option help for conditions.

Options (6)
OptionHelpDefaultRequired
m|mode=which markup part carries the payload: 'fdseq' (default, the FixedDocumentSequence start part), 'fdoc' (the FixedDocument part), 'fpage' (the FixedPage part), or 'all'. The parts were patched at different times, so this chooses what a given target build still parses unrestricted. Default value: "fdseq". Suggested values: fdseq, fdoc, fpage, all.fdseqfalse
c|command=the command to be executed Required.Not declaredtrue
t|testwhether to run the payload locally. This opens the generated document twice: once with the patched default (must be blocked) and once with the legacy switches flipped FOR THIS PROCESS ONLY, which runs your command. Default: falsefalsefalse
minifyWhether to minify the payloads where applicable (experimental). Default: falsefalsefalse
ust|usesimpletypeThis is to remove additional info only when minifying and FormatterAssemblyStyle=Simple. Default: truetruefalse
rawcmdCommand will be executed as is without `cmd /c ` being appended (anything after the first space is an argument). Default value: "false".falsefalse
Mode declarations
[
  {
    "name": "FixedDocumentSequence part (.fdseq)",
    "description": "Payload in the start part, parsed by XpsDocument.GetFixedDocumentSequence.",
    "options": [
      "command",
      "test",
      "minify",
      "usesimpletype",
      "rawcmd"
    ],
    "requiredOptions": [
      "command"
    ],
    "preset": {
      "mode": "fdseq"
    }
  },
  {
    "name": "FixedDocument part (.fdoc)",
    "description": "Payload in the document part, parsed by XpsValidatingLoader via DocumentReference.",
    "options": [
      "command",
      "test",
      "minify",
      "usesimpletype",
      "rawcmd"
    ],
    "requiredOptions": [
      "command"
    ],
    "preset": {
      "mode": "fdoc"
    }
  },
  {
    "name": "FixedPage part (.fpage)",
    "description": "Payload in the page part, parsed by XpsValidatingLoader via PageContent.",
    "options": [
      "command",
      "test",
      "minify",
      "usesimpletype",
      "rawcmd"
    ],
    "requiredOptions": [
      "command"
    ],
    "preset": {
      "mode": "fpage"
    }
  },
  {
    "name": "Every part (unknown patch level)",
    "description": "Payload in all three markup parts at once.",
    "options": [
      "command",
      "test",
      "minify",
      "usesimpletype",
      "rawcmd"
    ],
    "requiredOptions": [
      "command"
    ],
    "preset": {
      "mode": "all"
    }
  }
]

Credit: Soroush Dalili

All modules · Full catalog JSON