Enum Xss.AttackVector
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Xss.AttackVector>
- Enclosing class:
- Xss
public static enum Xss.AttackVector
extends Enum<Xss.AttackVector>
implements com.google.protobuf.ProtocolMessageEnum
Types of XSS attack vector.Protobuf enum
google.cloud.websecurityscanner.v1.Xss.AttackVector-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnknown attack vector.The attack comes from fuzzing the browser's cookies.The attack comes from fuzzing an input element.The attack comes from fuzzing parameters in the url.The attack comes from fuzzing the HTML comments.The attack comes from fuzzing the browser's localStorage.The attack comes from hijacking the post messaging mechanism.The attack comes from fuzzing the POST parameters.The attack comes from fuzzing the protocol.The attack comes from fuzzing the referrer property.The attack is a Same-Origin Method Execution attack via a GET parameter.The attack comes from fuzzing the browser's sessionStorage.The attack comes from the server side and is stored.The attack comes from fuzzing the fragment in the url.The attack payload is received from a third-party host via a URL that is user-controllableThe attack comes from fuzzing the window's name property. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnknown attack vector.static final intThe attack comes from fuzzing the browser's cookies.static final intThe attack comes from fuzzing an input element.static final intThe attack comes from fuzzing parameters in the url.static final intThe attack comes from fuzzing the HTML comments.static final intThe attack comes from fuzzing the browser's localStorage.static final intThe attack comes from hijacking the post messaging mechanism.static final intThe attack comes from fuzzing the POST parameters.static final intThe attack comes from fuzzing the protocol.static final intThe attack comes from fuzzing the referrer property.static final intThe attack is a Same-Origin Method Execution attack via a GET parameter.static final intThe attack comes from fuzzing the browser's sessionStorage.static final intThe attack comes from the server side and is stored.static final intThe attack comes from fuzzing the fragment in the url.static final intThe attack payload is received from a third-party host via a URL that is user-controllablestatic final intThe attack comes from fuzzing the window's name property. -
Method Summary
Modifier and TypeMethodDescriptionstatic Xss.AttackVectorforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Xss.AttackVector>static Xss.AttackVectorvalueOf(int value) Deprecated.static Xss.AttackVectorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Xss.AttackVectorReturns the enum constant of this type with the specified name.static Xss.AttackVector[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ATTACK_VECTOR_UNSPECIFIED
Unknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0; -
LOCAL_STORAGE
The attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1; -
SESSION_STORAGE
The attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2; -
WINDOW_NAME
The attack comes from fuzzing the window's name property.
WINDOW_NAME = 3; -
REFERRER
The attack comes from fuzzing the referrer property.
REFERRER = 4; -
FORM_INPUT
The attack comes from fuzzing an input element.
FORM_INPUT = 5; -
COOKIE
The attack comes from fuzzing the browser's cookies.
COOKIE = 6; -
POST_MESSAGE
The attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7; -
GET_PARAMETERS
The attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8; -
URL_FRAGMENT
The attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9; -
HTML_COMMENT
The attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10; -
POST_PARAMETERS
The attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11; -
PROTOCOL
The attack comes from fuzzing the protocol.
PROTOCOL = 12; -
STORED_XSS
The attack comes from the server side and is stored.
STORED_XSS = 13; -
SAME_ORIGIN
The attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14; -
USER_CONTROLLABLE_URL
The attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15; -
UNRECOGNIZED
-
-
Field Details
-
ATTACK_VECTOR_UNSPECIFIED_VALUE
public static final int ATTACK_VECTOR_UNSPECIFIED_VALUEUnknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0;- See Also:
-
LOCAL_STORAGE_VALUE
public static final int LOCAL_STORAGE_VALUEThe attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1;- See Also:
-
SESSION_STORAGE_VALUE
public static final int SESSION_STORAGE_VALUEThe attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2;- See Also:
-
WINDOW_NAME_VALUE
public static final int WINDOW_NAME_VALUEThe attack comes from fuzzing the window's name property.
WINDOW_NAME = 3;- See Also:
-
REFERRER_VALUE
public static final int REFERRER_VALUEThe attack comes from fuzzing the referrer property.
REFERRER = 4;- See Also:
-
FORM_INPUT_VALUE
public static final int FORM_INPUT_VALUEThe attack comes from fuzzing an input element.
FORM_INPUT = 5;- See Also:
-
COOKIE_VALUE
public static final int COOKIE_VALUEThe attack comes from fuzzing the browser's cookies.
COOKIE = 6;- See Also:
-
POST_MESSAGE_VALUE
public static final int POST_MESSAGE_VALUEThe attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7;- See Also:
-
GET_PARAMETERS_VALUE
public static final int GET_PARAMETERS_VALUEThe attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8;- See Also:
-
URL_FRAGMENT_VALUE
public static final int URL_FRAGMENT_VALUEThe attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9;- See Also:
-
HTML_COMMENT_VALUE
public static final int HTML_COMMENT_VALUEThe attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10;- See Also:
-
POST_PARAMETERS_VALUE
public static final int POST_PARAMETERS_VALUEThe attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11;- See Also:
-
PROTOCOL_VALUE
public static final int PROTOCOL_VALUEThe attack comes from fuzzing the protocol.
PROTOCOL = 12;- See Also:
-
STORED_XSS_VALUE
public static final int STORED_XSS_VALUEThe attack comes from the server side and is stored.
STORED_XSS = 13;- See Also:
-
SAME_ORIGIN_VALUE
public static final int SAME_ORIGIN_VALUEThe attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14;- See Also:
-
USER_CONTROLLABLE_URL_VALUE
public static final int USER_CONTROLLABLE_URL_VALUEThe attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-