Skip to content

Commit 7dd8674

Browse files
marek-trtikOwen Jones
authored and
Owen Jones
committed
Added rules file for insecure deserialisation issues in WebGoat.
1 parent f7f8aa5 commit 7dd8674

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"namespace": "com.diffblue.security",
3+
"rules":
4+
[
5+
{
6+
"comment": "Incoming accountName is potentially dangerous.",
7+
"class": "Main",
8+
"method": "makeTainted:(Ljava/lang/String;)Ljava/lang/String;",
9+
"result": {
10+
"location": "returns",
11+
"taint": "Tainted XML string"
12+
}
13+
},
14+
{
15+
"comment": "A tainted XML string is insecurely deserialised.",
16+
"class": "com.thoughtworks.xstream.XStream",
17+
"method": "fromXML:(Ljava/lang/String;)Ljava/lang/Object;",
18+
"sinkTarget": {
19+
"location": "arg1",
20+
"taint": "Tainted XML string"
21+
}
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)