-
Notifications
You must be signed in to change notification settings - Fork 1
/
SSTI.bcheck
41 lines (37 loc) · 902 Bytes
/
SSTI.bcheck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
metadata:
language: v1-beta
name: "SSTI"
description: "Server-side template injection (SSTI)"
author: "MrW0l05zyn"
tags: "ssti"
run for each:
payloads =
"{1234*2}",
"{1234+1234}",
"%{1234*2}",
"%{1234+1234}",
"<%= 1234*2 %>",
"<%= 1234+1234 %>",
"${1234*2}",
"${1234+1234}",
"{{1234*2}}",
"{{1234+1234}}",
"#{1234*2}",
"#{1234+1234}",
"@{1234*2}",
"@{1234+1234}",
"@(1234*2)",
"@(1234+1234)"
given any insertion point then
if not({base.response} matches "2468|2\,468|2\.468|\<2468\>") then
send payload:
appending: {payloads}
send payload:
replacing: {payloads}
if {latest.response} matches "2468|2\,468|2\.468|\<2468\>" then
report issue:
severity: high
confidence: tentative
detail: "Server-side template injection (SSTI)"
end if
end if