Skip to content

Commit a7b5105

Browse files
committed
fixes for e2e tests
1 parent 6e18a44 commit a7b5105

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

end2end/attack_events.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"operation": "(MySQL Connector/J) java.sql.Connection.prepareStatement"
1313
},
1414
"javalin_mysql_request": {
15-
"url": ""
15+
"url": "http://localhost:8098/api/create?a=b#test2"
1616
},
1717
"javalin_postgres_attack": {
1818
"blocked": true,
@@ -40,7 +40,7 @@
4040
"user_id": "123"
4141
},
4242
"spring_mysql_boot_mysql_request": {
43-
"url": ""
43+
"url": "http://localhost:8098/api/create"
4444
},
4545
"spring_mysql_boot_mariadb_attack": {
4646
"blocked": true,

end2end/javalin_mysql_kotlin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
javalin_mysql_app.add_payload(
77
key="sql", test_event=events["javalin_mysql_attack"], test_request=events["javalin_mysql_request"],
88
safe_request=Request(route="/api/create?a=b#test2", body={"name": "Bobby"}),
9-
unsafe_request=Request(route="/api/create", body={"name": "Malicious Pet\", \"Gru from the Minions\") -- "})
9+
unsafe_request=Request(route="/api/create?a=b#test2", body={"name": "Malicious Pet\", \"Gru from the Minions\") -- "})
1010
)
1111

1212
javalin_mysql_app.add_payload(

end2end/spring_boot_mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
spring_boot_mysql_app = App(8082)
66

77
spring_boot_mysql_app.add_payload(
8-
"sql_mysql",test_event=events["spring_mysql_boot_mysql_attack"], test_request=events["spring_mysql_boot_mysql_request"]
8+
"sql_mysql",test_event=events["spring_mysql_boot_mysql_attack"], test_request=events["spring_mysql_boot_mysql_request"],
99
safe_request=Request("/api/pets/create?b=2&c=3#fragment", headers={'user': '123'}, body={"name": "Bobby"}),
1010
unsafe_request=Request(
11-
"/api/pets/create", headers={'user': '123'}, body={"name": 'Malicious Pet", "Gru from the Minions") -- '}
11+
"/api/pets/create?b=2&c=3#fragment", headers={'user': '123'}, body={"name": 'Malicious Pet", "Gru from the Minions") -- '}
1212
)
1313
)
1414

0 commit comments

Comments
 (0)