Class: Aikido::Zen::Attacks::StoredSSRFAttack
- Inherits:
-
Aikido::Zen::Attack
- Object
- Aikido::Zen::Attack
- Aikido::Zen::Attacks::StoredSSRFAttack
- Defined in:
- lib/aikido/zen/attack.rb
Overview
Special case of an SSRF attack where we don’t have a context—we’re just detecting a request to a particularly sensitive address.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Attributes inherited from Aikido::Zen::Attack
Instance Method Summary collapse
- #exception ⇒ Object
- #humanized_name ⇒ Object
-
#initialize(hostname:, address:, **opts) ⇒ StoredSSRFAttack
constructor
A new instance of StoredSSRFAttack.
- #input ⇒ Object
- #kind ⇒ Object
- #metadata ⇒ Object
Methods inherited from Aikido::Zen::Attack
#as_json, #blocked?, #will_be_blocked!
Constructor Details
#initialize(hostname:, address:, **opts) ⇒ StoredSSRFAttack
Returns a new instance of StoredSSRFAttack.
187 188 189 190 191 |
# File 'lib/aikido/zen/attack.rb', line 187 def initialize(hostname:, address:, **opts) super(**opts) @hostname = hostname @address = address end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
185 186 187 |
# File 'lib/aikido/zen/attack.rb', line 185 def address @address end |
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
184 185 186 |
# File 'lib/aikido/zen/attack.rb', line 184 def hostname @hostname end |
Instance Method Details
#exception ⇒ Object
197 198 199 |
# File 'lib/aikido/zen/attack.rb', line 197 def exception(*) SSRFDetectedError.new(self) end |
#humanized_name ⇒ Object
193 194 195 |
# File 'lib/aikido/zen/attack.rb', line 193 def humanized_name "server-side request forgery" end |
#input ⇒ Object
205 206 207 |
# File 'lib/aikido/zen/attack.rb', line 205 def input Aikido::Zen::Payload::UNKNOWN_PAYLOAD end |
#kind ⇒ Object
201 202 203 |
# File 'lib/aikido/zen/attack.rb', line 201 def kind "stored_ssrf" end |
#metadata ⇒ Object
209 210 211 212 213 214 |
# File 'lib/aikido/zen/attack.rb', line 209 def { hostname: @hostname, privateIP: @address } end |