Class: Google::Apis::WebsecurityscannerV1::Xss

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

Information reported for an XSS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Xss

Returns a new instance of Xss.



999
1000
1001
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 999

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

Instance Attribute Details

#attack_vectorString

The attack vector of the payload triggering this XSS. Corresponds to the JSON property attackVector

Returns:

  • (String)


982
983
984
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 982

def attack_vector
  @attack_vector
end

#error_messageString

An error message generated by a javascript breakage. Corresponds to the JSON property errorMessage

Returns:

  • (String)


987
988
989
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 987

def error_message
  @error_message
end

#stack_tracesArray<String>

Stack traces leading to the point where the XSS occurred. Corresponds to the JSON property stackTraces

Returns:

  • (Array<String>)


992
993
994
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 992

def stack_traces
  @stack_traces
end

#stored_xss_seeding_urlString

The reproduction url for the seeding POST request of a Stored XSS. Corresponds to the JSON property storedXssSeedingUrl

Returns:

  • (String)


997
998
999
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 997

def stored_xss_seeding_url
  @stored_xss_seeding_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
1008
1009
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 1004

def update!(**args)
  @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
  @error_message = args[:error_message] if args.key?(:error_message)
  @stack_traces = args[:stack_traces] if args.key?(:stack_traces)
  @stored_xss_seeding_url = args[:stored_xss_seeding_url] if args.key?(:stored_xss_seeding_url)
end