Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_EXPL_Shitrix_Exploit_Code_Jan20_1

Detects payloads used in Shitrix exploitation CVE-2019-19781

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-01-13
Modified
2023-12-05
Score / Quality
70 / 85

What this rule detects

Detects payloads used in Shitrix exploitation CVE-2019-19781

It defines 15 patterns (15 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

expl-shitrix-exploit-code-jan20-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_Shitrix_Exploit_Code_Jan20_1 : FILE CVE_2019_19781
{
	meta:
		description = "Detects payloads used in Shitrix exploitation CVE-2019-19781"
		author = "Florian Roth (Nextron Systems)"
		id = "7fab3a9b-82a5-573a-b210-2ae65f1a7f24"
		date = "2020-01-13"
		modified = "2023-12-05"
		reference = "https://isc.sans.edu/forums/diary/Citrix+ADC+Exploits+Overview+of+Observed+Payloads/25704/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/exploit_shitrix.yar#L2-L29"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "00687b30235be5ef3c00432b5b96bbc325dee553e7c0cb565d6f389b1bce12de"
		score = 70
		quality = 85
		tags = "FILE, CVE-2019-19781"

	strings:
		$s01 = "/netscaler/portal/scripts/rmpm.pl" ascii
		$s02 = "tee /netscaler/portal/templates/" ascii
		$s03 = "exec(\\'(wget -q -O- http://" ascii
		$s04 = "cd /netscaler/portal; ls" ascii
		$s05 = "cat /flash/nsconfig/ns.conf" ascii
		$s06 = "/netscaler/portal/scripts/PersonalBookmak.pl" ascii
		$s07 = "template.new({'BLOCK'='print readpipe(" ascii
		$s08 = "pwnpzi1337" fullword ascii
		$s09 = "template.new({'BLOCK'="
		$s10 = "template.new({'BLOCK'%3d"
		$s11 = "my ($citrixmd, %FORM);"
		$s12 = "(CMD, \"($citrixmd) 2>&1"
		$b1 = "NSC_USER:" ascii nocase
		$b2 = "NSC_NONCE:" ascii nocase
		$b3 = "/../" ascii

	condition:
		1 of ( $s* ) or all of ( $b* )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$s01text"/netscaler/portal/scripts/rmpm.pl"ascii
$s02text"tee /netscaler/portal/templates/"ascii
$s03text"exec(\\'(wget -q -O- http://"ascii
$s04text"cd /netscaler/portal; ls"ascii
$s05text"cat /flash/nsconfig/ns.conf"ascii
$s06text"/netscaler/portal/scripts/PersonalBookmak.pl"ascii
$s07text"template.new({'BLOCK'='print readpipe("ascii
$s08text"pwnpzi1337"fullword ascii
$s09text"template.new({'BLOCK'="
$s10text"template.new({'BLOCK'%3d"
$s11text"my ($citrixmd, %FORM);"
$s12text"(CMD, \"($citrixmd) 2>&1"
$b1text"NSC_USER:"ascii nocase
$b2text"NSC_NONCE:"ascii nocase
$b3text"/../"ascii

Condition

1 of ( $s* ) or all of ( $b* )

In plain words (Heuristic)

  • All patterns in ( $b* ) must match.
  • At least 1 patterns in ( $s* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Florian Roth (Nextron Systems)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 7fab3a9b-82a5-573a-b210-2ae65f1a7f24

Tags:FILECVE_2019_19781