Skip to content

Instantly share code, notes, and snippets.

View JLLeitschuh's full-sized avatar

Jonathan Leitschuh JLLeitschuh

View GitHub Profile

Safer-Eval Sandbox Escape POC

safer-eval is a node JS library that supposedly provides a 'safe' way to 'eval' untrusted javascript.

As the maintainer warns in the README:

Warning: The saferEval function may be harmful - so you are warned!

However, it is still used by various libraries to parse/execute untrusted code in such a way that there is an implied

@JLLeitschuh
JLLeitschuh / CVE-2019-10779_GCHQ_Stroom_POC.md
Last active January 21, 2020 17:11
POC for CVE-2019-10779

GCHQ Stroom is vulnerable to Cross-Site Scripting due to the ability to load the Stroom dashboard on another site and insufficient protection against window event origins.

Versions

  • Affected versions: < 5.5.12 & < 6.0.25
  • Patched versions: 5.5.12 & 6.0.25

POC

Launch Stroom and assign it a hostname like stroom.my-company.com, then log in.

import tutorial
from Person t
where t.getHeight() > 150 and
t.getHairColor() != "blond" and
exists (string c | t.getHairColor() = c) and
t.getAge() >= 30 and
t.getLocation() = "east" and
(t.getHairColor() = "black" or t.getHairColor() = "brown") and
not (t.getHeight() > 180 and t.getHeight() < 190) and