Skip to content

Commit e4550b4

Browse files
Fix malicious load generator and bump version to 0.11.0 (#109)
* 🐛 fix(malicious-load-generator): Fix login exploit * 🔖 chore: Bump version to 0.11.0
1 parent 62a1fc4 commit e4550b4

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ annotations:
22
licenses: Apache-2.0
33
apiVersion: v2
44
name: unguard
5-
version: 0.10.1
5+
version: 0.11.0
66
description: Unguard is an insecure cloud-native microservices demo application.
77
type: application
88
home: https://github.com/dynatrace-oss/unguard
99
icon: https://github.com/dynatrace-oss/unguard/blob/main/docs/images/logo/unguard-logo-red-small.png
10-
appVersion: 0.10.1
10+
appVersion: 0.11.0

chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The command removes all the Kubernetes components associated with the chart and
8484
To install Unguard in a specific version provide the `--version` flag with the version you want to install:
8585
8686
```sh
87-
helm install unguard oci://ghcr.io/dynatrace-oss/unguard/chart/unguard --version 0.10.1
87+
helm install unguard oci://ghcr.io/dynatrace-oss/unguard/chart/unguard --version 0.11.0
8888
```
8989
9090
## Parameters

chart/values.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ maliciousLoadGenerator:
5454
container:
5555
image:
5656
repository: ghcr.io/dynatrace-oss/unguard/unguard-malicious-load-generator
57-
tag: 0.10.1
57+
tag: 0.11.0
5858
pullPolicy: IfNotPresent
5959
ports:
6060
containerPort: 8083
@@ -113,7 +113,7 @@ userSimulator:
113113
container:
114114
image:
115115
repository: ghcr.io/dynatrace-oss/unguard/unguard-user-simulator
116-
tag: 0.10.1
116+
tag: 0.11.0
117117
pullPolicy: IfNotPresent
118118

119119
env:
@@ -144,7 +144,7 @@ membershipService:
144144
container:
145145
image:
146146
repository: ghcr.io/dynatrace-oss/unguard/unguard-membership-service
147-
tag: 0.10.1
147+
tag: 0.11.0
148148
pullPolicy: IfNotPresent
149149
ports:
150150
containerPort: 8083
@@ -174,7 +174,7 @@ userAuthService:
174174
container:
175175
image:
176176
repository: ghcr.io/dynatrace-oss/unguard/unguard-user-auth-service
177-
tag: 0.10.1
177+
tag: 0.11.0
178178
pullPolicy: IfNotPresent
179179
ports:
180180
containerPort: 9091
@@ -209,7 +209,7 @@ adService:
209209
container:
210210
image:
211211
repository: ghcr.io/dynatrace-oss/unguard/unguard-ad-service
212-
tag: 0.10.1
212+
tag: 0.11.0
213213
pullPolicy: IfNotPresent
214214
ports:
215215
containerPort: 8082
@@ -243,7 +243,7 @@ envoyProxy:
243243
container:
244244
image:
245245
repository: ghcr.io/dynatrace-oss/unguard/unguard-envoy-proxy
246-
tag: 0.10.1
246+
tag: 0.11.0
247247
pullPolicy: IfNotPresent
248248
ports:
249249
- name: http
@@ -267,7 +267,7 @@ microblogService:
267267
container:
268268
image:
269269
repository: ghcr.io/dynatrace-oss/unguard/unguard-microblog-service
270-
tag: 0.10.1
270+
tag: 0.11.0
271271
pullPolicy: IfNotPresent
272272
ports:
273273
containerPort: 8080
@@ -320,7 +320,7 @@ statusService:
320320
container:
321321
image:
322322
repository: ghcr.io/dynatrace-oss/unguard/unguard-status-service
323-
tag: 0.10.1
323+
tag: 0.11.0
324324
pullPolicy: IfNotPresent
325325
ports:
326326
containerPort: 8083
@@ -375,7 +375,7 @@ proxyService:
375375
container:
376376
image:
377377
repository: ghcr.io/dynatrace-oss/unguard/unguard-proxy-service
378-
tag: 0.10.1
378+
tag: 0.11.0
379379
pullPolicy: IfNotPresent
380380
ports:
381381
containerPort: 8081
@@ -402,7 +402,7 @@ likeService:
402402
container:
403403
image:
404404
repository: ghcr.io/dynatrace-oss/unguard/unguard-like-service
405-
tag: 0.10.1
405+
tag: 0.11.0
406406
pullPolicy: IfNotPresent
407407
ports:
408408
containerPort: 8000
@@ -438,7 +438,7 @@ paymentService:
438438
container:
439439
image:
440440
repository: ghcr.io/dynatrace-oss/unguard/unguard-payment-service
441-
tag: 0.10.1
441+
tag: 0.11.0
442442
pullPolicy: IfNotPresent
443443
env:
444444
API_PATH: /payment-service
@@ -468,7 +468,7 @@ frontend:
468468
container:
469469
image:
470470
repository: ghcr.io/dynatrace-oss/unguard/unguard-frontend
471-
tag: 0.10.1
471+
tag: 0.11.0
472472
pullPolicy: IfNotPresent
473473
ports:
474474
containerPort: 3000

src/malicious-load-generator/locustfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,11 @@ def get_sql_golang(self):
179179
def post_sql_login_injection_nodejs(self):
180180
parameters = {'name': random.choice(SQL_CMDS_LOGIN_USERNAME), 'password': 'user'}
181181

182-
# post with the malicious SQL command
183-
self.client.post("/login", data=parameters, headers=self.get_random_x_forwarded_for_header())
182+
# get with the malicious SQL command
183+
self.client.get("/login", params=parameters, headers=self.get_random_x_forwarded_for_header())
184+
184185
time.sleep(1)
186+
self.on_start()
185187

186188
@task()
187189
def post_sql_php(self):

0 commit comments

Comments
 (0)