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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/websecurityscanner_v1/classes.rb,
lib/google/apis/websecurityscanner_v1/representations.rb,
lib/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.



995
996
997
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 995

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)


978
979
980
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 978

def attack_vector
  @attack_vector
end

#error_messageString

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

Returns:

  • (String)


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

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


988
989
990
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 988

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)


993
994
995
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 993

def stored_xss_seeding_url
  @stored_xss_seeding_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1000
1001
1002
1003
1004
1005
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1000

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