Class: Google::Apis::WebsecurityscannerV1::Finding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1/classes.rb,
generated/google/apis/websecurityscanner_v1/representations.rb,
generated/google/apis/websecurityscanner_v1/representations.rb

Overview

A Finding resource represents a vulnerability instance identified during a ScanRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Finding

Returns a new instance of Finding.



240
241
242
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 240

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bodyString

Output only. The body of the request that triggered the vulnerability. Corresponds to the JSON property body

Returns:

  • (String)


147
148
149
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 147

def body
  @body
end

#descriptionString

Output only. The description of the vulnerability. Corresponds to the JSON property description

Returns:

  • (String)


152
153
154
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 152

def description
  @description
end

#final_urlString

Output only. The URL where the browser lands when the vulnerability is detected. Corresponds to the JSON property finalUrl

Returns:

  • (String)


158
159
160
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 158

def final_url
  @final_url
end

#finding_typeString

Output only. The type of the Finding. Detailed and up-to-date information on findings can be found here: https://cloud.google.com/security-command-center/ docs/how-to-remediate-web-security-scanner-findings Corresponds to the JSON property findingType

Returns:

  • (String)


165
166
167
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 165

def finding_type
  @finding_type
end

#formGoogle::Apis::WebsecurityscannerV1::Form

! Information about a vulnerability with an HTML. Corresponds to the JSON property form



170
171
172
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 170

def form
  @form
end

#frame_urlString

Output only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported. Corresponds to the JSON property frameUrl

Returns:

  • (String)


176
177
178
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 176

def frame_url
  @frame_url
end

#fuzzed_urlString

Output only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability. Corresponds to the JSON property fuzzedUrl

Returns:

  • (String)


182
183
184
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 182

def fuzzed_url
  @fuzzed_url
end

#http_methodString

Output only. The http method of the request that triggered the vulnerability, in uppercase. Corresponds to the JSON property httpMethod

Returns:

  • (String)


188
189
190
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 188

def http_method
  @http_method
end

#nameString

Output only. The resource name of the Finding. The name follows the format of ' projects/projectId/scanConfigs/scanConfigId/scanruns/scanRunId/findings/ findingId'. The finding IDs are generated by the system. Corresponds to the JSON property name

Returns:

  • (String)


195
196
197
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 195

def name
  @name
end

#outdated_libraryGoogle::Apis::WebsecurityscannerV1::OutdatedLibrary

Information reported for an outdated library. Corresponds to the JSON property outdatedLibrary



200
201
202
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 200

def outdated_library
  @outdated_library
end

#reproduction_urlString

Output only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability. Corresponds to the JSON property reproductionUrl

Returns:

  • (String)


206
207
208
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 206

def reproduction_url
  @reproduction_url
end

#severityString

Output only. The severity level of the reported vulnerability. Corresponds to the JSON property severity

Returns:

  • (String)


211
212
213
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 211

def severity
  @severity
end

#tracking_idString

Output only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns. Corresponds to the JSON property trackingId

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 217

def tracking_id
  @tracking_id
end

#violating_resourceGoogle::Apis::WebsecurityscannerV1::ViolatingResource

Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. Corresponds to the JSON property violatingResource



223
224
225
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 223

def violating_resource
  @violating_resource
end

#vulnerable_headersGoogle::Apis::WebsecurityscannerV1::VulnerableHeaders

Information about vulnerable or missing HTTP Headers. Corresponds to the JSON property vulnerableHeaders



228
229
230
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 228

def vulnerable_headers
  @vulnerable_headers
end

#vulnerable_parametersGoogle::Apis::WebsecurityscannerV1::VulnerableParameters

Information about vulnerable request parameters. Corresponds to the JSON property vulnerableParameters



233
234
235
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 233

def vulnerable_parameters
  @vulnerable_parameters
end

#xssGoogle::Apis::WebsecurityscannerV1::Xss

Information reported for an XSS. Corresponds to the JSON property xss



238
239
240
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 238

def xss
  @xss
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 245

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @description = args[:description] if args.key?(:description)
  @final_url = args[:final_url] if args.key?(:final_url)
  @finding_type = args[:finding_type] if args.key?(:finding_type)
  @form = args[:form] if args.key?(:form)
  @frame_url = args[:frame_url] if args.key?(:frame_url)
  @fuzzed_url = args[:fuzzed_url] if args.key?(:fuzzed_url)
  @http_method = args[:http_method] if args.key?(:http_method)
  @name = args[:name] if args.key?(:name)
  @outdated_library = args[:outdated_library] if args.key?(:outdated_library)
  @reproduction_url = args[:reproduction_url] if args.key?(:reproduction_url)
  @severity = args[:severity] if args.key?(:severity)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
  @violating_resource = args[:violating_resource] if args.key?(:violating_resource)
  @vulnerable_headers = args[:vulnerable_headers] if args.key?(:vulnerable_headers)
  @vulnerable_parameters = args[:vulnerable_parameters] if args.key?(:vulnerable_parameters)
  @xss = args[:xss] if args.key?(:xss)
end