-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a9af3b
commit 665dcbd
Showing
13 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Web page requested from a {#web_site}. | ||
class Mdm::WebPage < ApplicationRecord | ||
|
||
# | ||
# Associations | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ def #{method_name}=(value) | |
class_eval method_declarations, __FILE__, __LINE__ | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Namespace for YAML configuration | ||
class MetasploitDataModels::YAML | ||
# | ||
# CONSTANTS | ||
# | ||
|
||
# List of supported classes when deserializing YAML classes | ||
# See: https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017 | ||
# | ||
PERMITTED_CLASSES = [ | ||
Range, | ||
Set, | ||
Symbol, | ||
Time, | ||
'WEBrick::Cookie'.to_sym, | ||
'ActionController::Parameters'.to_sym, | ||
'ActiveModel::Attribute::FromDatabase'.to_sym, | ||
'ActiveModel::Attribute::FromUser'.to_sym, | ||
'ActiveModel::Attribute::WithCastValue'.to_sym, | ||
'ActiveModel::Type::Boolean'.to_sym, | ||
'ActiveModel::Type::Integer'.to_sym, | ||
'ActiveModel::Type::String'.to_sym, | ||
'ActiveRecord::Coders::JSON'.to_sym, | ||
'ActiveSupport::TimeWithZone'.to_sym, | ||
'ActiveSupport::TimeZone'.to_sym, | ||
'ActiveRecord::Type::Serialized'.to_sym, | ||
'ActiveRecord::Type::Text'.to_sym, | ||
'ActiveSupport::HashWithIndifferentAccess'.to_sym, | ||
'Mdm::Workspace'.to_sym, | ||
'MsfModule'.to_sym, | ||
'Report'.to_sym, | ||
].freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters