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

Constructor Details

#initialize(**args) ⇒ Xss

Returns a new instance of Xss.



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

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)


966
967
968
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 966

def attack_vector
  @attack_vector
end

#error_messageString

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

Returns:

  • (String)


971
972
973
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 971

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>)


976
977
978
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 976

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)


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

def stored_xss_seeding_url
  @stored_xss_seeding_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



988
989
990
991
992
993
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 988

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