Skip to content

Commit ab2c693

Browse files
authored
Merge pull request #20320 from rapid7/revert-20109-rails-7.2-upgrade
Revert "Bump rails version to 7.2"
2 parents 04c368f + fb02b4a commit ab2c693

File tree

13 files changed

+268
-193
lines changed

13 files changed

+268
-193
lines changed

Gemfile.lock

Lines changed: 36 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ PATH
44
metasploit-framework (6.4.70)
55
aarch64
66
abbrev
7-
actionpack (~> 7.2.0)
8-
activerecord (~> 7.2.0)
9-
activesupport (~> 7.2.0)
7+
actionpack (~> 7.1.0)
8+
activerecord (~> 7.1.0)
9+
activesupport (~> 7.1.0)
1010
aws-sdk-ec2
1111
aws-sdk-ec2instanceconnect
1212
aws-sdk-iam
@@ -20,6 +20,7 @@ PATH
2020
bootsnap
2121
bson
2222
chunky_png
23+
concurrent-ruby (= 1.3.4)
2324
csv
2425
dnsruby
2526
drb
@@ -37,7 +38,7 @@ PATH
3738
getoptlong
3839
hrr_rb_ssh-ed25519
3940
http-cookie
40-
irb
41+
irb (~> 1.7.4)
4142
jsobfu
4243
json
4344
metasm
@@ -122,41 +123,41 @@ GEM
122123
aarch64 (2.1.0)
123124
racc (~> 1.6)
124125
abbrev (0.1.2)
125-
actionpack (7.2.2.1)
126-
actionview (= 7.2.2.1)
127-
activesupport (= 7.2.2.1)
126+
actionpack (7.1.5.1)
127+
actionview (= 7.1.5.1)
128+
activesupport (= 7.1.5.1)
128129
nokogiri (>= 1.8.5)
129130
racc
130-
rack (>= 2.2.4, < 3.2)
131+
rack (>= 2.2.4)
131132
rack-session (>= 1.0.1)
132133
rack-test (>= 0.6.3)
133134
rails-dom-testing (~> 2.2)
134135
rails-html-sanitizer (~> 1.6)
135-
useragent (~> 0.16)
136-
actionview (7.2.2.1)
137-
activesupport (= 7.2.2.1)
136+
actionview (7.1.5.1)
137+
activesupport (= 7.1.5.1)
138138
builder (~> 3.1)
139139
erubi (~> 1.11)
140140
rails-dom-testing (~> 2.2)
141141
rails-html-sanitizer (~> 1.6)
142-
activemodel (7.2.2.1)
143-
activesupport (= 7.2.2.1)
144-
activerecord (7.2.2.1)
145-
activemodel (= 7.2.2.1)
146-
activesupport (= 7.2.2.1)
142+
activemodel (7.1.5.1)
143+
activesupport (= 7.1.5.1)
144+
activerecord (7.1.5.1)
145+
activemodel (= 7.1.5.1)
146+
activesupport (= 7.1.5.1)
147147
timeout (>= 0.4.0)
148-
activesupport (7.2.2.1)
148+
activesupport (7.1.5.1)
149149
base64
150150
benchmark (>= 0.3)
151151
bigdecimal
152-
concurrent-ruby (~> 1.0, >= 1.3.1)
152+
concurrent-ruby (~> 1.0, >= 1.0.2)
153153
connection_pool (>= 2.2.5)
154154
drb
155155
i18n (>= 1.6, < 2)
156156
logger (>= 1.4.2)
157157
minitest (>= 5.1)
158+
mutex_m
158159
securerandom (>= 0.3)
159-
tzinfo (~> 2.0, >= 2.0.5)
160+
tzinfo (~> 2.0)
160161
addressable (2.8.7)
161162
public_suffix (>= 2.0.2, < 7.0)
162163
afm (0.2.2)
@@ -219,9 +220,9 @@ GEM
219220
csv (3.3.2)
220221
daemons (1.4.1)
221222
date (3.4.1)
222-
debug (1.10.0)
223-
irb (~> 1.10)
224-
reline (>= 0.3.8)
223+
debug (1.8.0)
224+
irb (>= 1.5.0)
225+
reline (>= 0.3.1)
225226
diff-lcs (1.6.0)
226227
dnsruby (1.72.4)
227228
base64 (~> 0.2.0)
@@ -242,7 +243,6 @@ GEM
242243
em-socksify (0.3.3)
243244
base64
244245
eventmachine (>= 1.0.0.beta.4)
245-
erb (5.0.1)
246246
erubi (1.13.1)
247247
eventmachine (1.2.7)
248248
factory_bot (6.5.1)
@@ -287,10 +287,8 @@ GEM
287287
concurrent-ruby (~> 1.0)
288288
io-console (0.8.0)
289289
ipaddr (1.2.7)
290-
irb (1.15.2)
291-
pp (>= 0.6.0)
292-
rdoc (>= 4.0.0)
293-
reline (>= 0.4.2)
290+
irb (1.7.4)
291+
reline (>= 0.3.6)
294292
jmespath (1.6.2)
295293
jsobfu (0.4.2)
296294
rkelly-remix
@@ -307,11 +305,9 @@ GEM
307305
nokogiri (>= 1.12.0)
308306
memory_profiler (1.1.0)
309307
metasm (1.0.5)
310-
metasploit-concern (5.0.5)
308+
metasploit-concern (5.0.4)
311309
activemodel (~> 7.0)
312310
activesupport (~> 7.0)
313-
drb
314-
mutex_m
315311
railties (~> 7.0)
316312
zeitwerk
317313
metasploit-credential (6.0.16)
@@ -328,12 +324,9 @@ GEM
328324
rex-socket
329325
rubyntlm
330326
rubyzip
331-
metasploit-model (5.0.4)
327+
metasploit-model (5.0.3)
332328
activemodel (~> 7.0)
333329
activesupport (~> 7.0)
334-
bigdecimal
335-
drb
336-
mutex_m
337330
railties (~> 7.0)
338331
metasploit-payloads (2.0.221)
339332
metasploit_data_models (6.0.9)
@@ -402,19 +395,13 @@ GEM
402395
ruby-rc4
403396
ttfunk
404397
pg (1.5.9)
405-
pp (0.6.2)
406-
prettyprint
407-
prettyprint (0.2.0)
408398
prism (1.4.0)
409399
pry (0.14.2)
410400
coderay (~> 1.1)
411401
method_source (~> 1.0)
412402
pry-byebug (3.10.1)
413403
byebug (~> 11.0)
414404
pry (>= 0.13, < 0.15)
415-
psych (5.2.6)
416-
date
417-
stringio
418405
public_suffix (6.0.1)
419406
puma (6.6.0)
420407
nio4r (~> 2.0)
@@ -437,10 +424,10 @@ GEM
437424
rails-html-sanitizer (1.6.2)
438425
loofah (~> 2.21)
439426
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
440-
railties (7.2.2.1)
441-
actionpack (= 7.2.2.1)
442-
activesupport (= 7.2.2.1)
443-
irb (~> 1.13)
427+
railties (7.1.5.1)
428+
actionpack (= 7.1.5.1)
429+
activesupport (= 7.1.5.1)
430+
irb
444431
rackup (>= 1.0.0)
445432
rake (>= 12.2)
446433
thor (~> 1.0, >= 1.2.2)
@@ -450,9 +437,6 @@ GEM
450437
rasn1 (0.14.0)
451438
strptime (~> 0.2.5)
452439
rb-readline (0.5.5)
453-
rdoc (6.14.0)
454-
erb
455-
psych (>= 4.0.0)
456440
recog (3.1.14)
457441
nokogiri
458442
redcarpet (3.6.1)
@@ -529,10 +513,10 @@ GEM
529513
rspec-mocks (3.13.2)
530514
diff-lcs (>= 1.2.0, < 2.0)
531515
rspec-support (~> 3.13.0)
532-
rspec-rails (8.0.0)
533-
actionpack (>= 7.2)
534-
activesupport (>= 7.2)
535-
railties (>= 7.2)
516+
rspec-rails (7.1.1)
517+
actionpack (>= 7.0)
518+
activesupport (>= 7.0)
519+
railties (>= 7.0)
536520
rspec-core (~> 3.13)
537521
rspec-expectations (~> 3.13)
538522
rspec-mocks (~> 3.13)
@@ -556,8 +540,7 @@ GEM
556540
prism (~> 1.4)
557541
ruby-macho (4.1.0)
558542
ruby-mysql (4.2.0)
559-
ruby-prof (1.7.2)
560-
base64
543+
ruby-prof (1.7.1)
561544
ruby-progressbar (1.13.0)
562545
ruby-rc4 (0.1.5)
563546
ruby2_keywords (0.0.5)
@@ -587,7 +570,6 @@ GEM
587570
sqlite3 (1.7.3)
588571
mini_portile2 (~> 2.8.0)
589572
sshkey (3.0.0)
590-
stringio (3.1.7)
591573
strptime (0.2.5)
592574
swagger-blocks (3.0.0)
593575
test-prof (1.4.4)
@@ -609,7 +591,6 @@ GEM
609591
unicode-emoji (~> 4.0, >= 4.0.4)
610592
unicode-emoji (4.0.4)
611593
unix-crypt (1.3.1)
612-
useragent (0.16.11)
613594
warden (1.2.9)
614595
rack (>= 2.0.9)
615596
webrick (1.9.1)

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Application < Rails::Application
4141
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
4242
config.autoloader = :zeitwerk
4343

44-
config.load_defaults 7.2
44+
config.load_defaults 7.1
4545

4646
config.eager_load = false
4747
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2025_02_04_172657) do
13+
ActiveRecord::Schema[7.1].define(version: 2025_02_04_172657) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "plpgsql"
1616

@@ -803,4 +803,5 @@
803803
t.boolean "limit_to_network", default: false, null: false
804804
t.boolean "import_fingerprint", default: false
805805
end
806+
806807
end

lib/metasploit/framework/rails_version_constraint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Metasploit
44
module Framework
55
module RailsVersionConstraint
6-
RAILS_VERSION = '~> 7.2.0'
6+
RAILS_VERSION = '~> 7.1.0'
77
end
88
end
99
end

lib/msf/core/db_manager/cred.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def creds(opts)
1616
query = query.includes(logins: [ :service, { service: :host } ])
1717

1818
if opts[:type].present?
19-
query = query.where('"metasploit_credential_privates"."type" = ?', opts[:type].to_s)
19+
query = query.where('"metasploit_credential_privates"."type" = ?', opts[:type])
2020
end
2121

2222
if opts[:jtr_format].present?

lib/msf/core/exploit/remote/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def mysql_login(user='root', pass='', db=nil)
4343
begin
4444
self.mysql_conn = ::Rex::Proto::MySQL::Client.connect(rhost, user, pass, db, rport, io: self.sock)
4545
# Deprecating this in favor off `mysql_conn`
46-
@mysql_handle = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, :mysql_conn, :@mysql_handle, deprecator: ActiveSupport::Deprecation.new)
46+
@mysql_handle = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(self, :mysql_conn, :@mysql_handle, ActiveSupport::Deprecation.new)
4747

4848
rescue Errno::ECONNREFUSED
4949
print_error("Connection refused")

metasploit-framework.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Gem::Specification.new do |spec|
219219
# SSH server library with ed25519
220220
spec.add_runtime_dependency 'hrr_rb_ssh-ed25519'
221221
# Needed for irb internal command
222-
spec.add_runtime_dependency 'irb'
222+
spec.add_runtime_dependency 'irb', '~> 1.7.4'
223223

224224
# AWS enumeration modules
225225
spec.add_runtime_dependency 'aws-sdk-s3'
@@ -248,6 +248,10 @@ Gem::Specification.new do |spec|
248248
# to generate PNG files, not to parse untrusted PNG files.
249249
spec.add_runtime_dependency 'chunky_png'
250250

251+
# Temporary, remove once the Rails 7.1 update is complete
252+
# see: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
253+
spec.add_runtime_dependency 'concurrent-ruby', '1.3.4'
254+
251255
# Needed for multiline REPL support for interactive SQL sessions
252256
spec.add_runtime_dependency 'reline'
253257

modules/post/windows/gather/win_privs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run
5454

5555
usr_tbl << [
5656
is_admin?.to_s.capitalize,
57-
is_system?.to_s.capitalize,
57+
system?.to_s.capitalize,
5858
is_in_admin_group?.to_s.capitalize,
5959
is_uac_enabled?.to_s.capitalize,
6060
fid,

modules/post/windows/manage/make_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def initialize(info = {})
3535
'Meterpreter' => {
3636
'Commands' => %w[
3737
stdapi_railgun_api
38-
stdapi_sys_config_rev2self
38+
stdapi_sys_config_revert_to_self
3939
stdapi_sys_config_update_token
4040
]
4141
}

0 commit comments

Comments
 (0)