Class: Aikido::Zen::Attacks::StoredSSRFAttack
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
#context, #operation, #sink
Instance Method Summary
collapse
#as_json, #blocked?, #will_be_blocked!
Constructor Details
#initialize(hostname:, address:, **opts) ⇒ StoredSSRFAttack
189
190
191
192
193
|
# File 'lib/aikido/zen/attack.rb', line 189
def initialize(hostname:, address:, **opts)
super(**opts)
@hostname = hostname
@address = address
end
|
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
187
188
189
|
# File 'lib/aikido/zen/attack.rb', line 187
def address
@address
end
|
#hostname ⇒ Object
Returns the value of attribute hostname.
186
187
188
|
# File 'lib/aikido/zen/attack.rb', line 186
def hostname
@hostname
end
|
Instance Method Details
#exception ⇒ Object
199
200
201
|
# File 'lib/aikido/zen/attack.rb', line 199
def exception(*)
SSRFDetectedError.new(self)
end
|
#humanized_name ⇒ Object
195
196
197
|
# File 'lib/aikido/zen/attack.rb', line 195
def humanized_name
"server-side request forgery"
end
|
207
208
209
210
211
|
# File 'lib/aikido/zen/attack.rb', line 207
def input
{}
end
|
#kind ⇒ Object
203
204
205
|
# File 'lib/aikido/zen/attack.rb', line 203
def kind
"stored_ssrf"
end
|
213
214
215
216
217
218
|
# File 'lib/aikido/zen/attack.rb', line 213
def metadata
{
"hostname" => @hostname,
"privateIP" => @address
}
end
|