public static enum Xss.AttackVector extends Enum<Xss.AttackVector> implements ProtocolMessageEnum
Types of XSS attack vector.Protobuf enum
google.cloud.websecurityscanner.v1.Xss.AttackVector
Enum Constant and Description |
---|
ATTACK_VECTOR_UNSPECIFIED
Unknown attack vector.
|
COOKIE
The attack comes from fuzzing the browser's cookies.
|
FORM_INPUT
The attack comes from fuzzing an input element.
|
GET_PARAMETERS
The attack comes from fuzzing parameters in the url.
|
HTML_COMMENT
The attack comes from fuzzing the HTML comments.
|
LOCAL_STORAGE
The attack comes from fuzzing the browser's localStorage.
|
POST_MESSAGE
The attack comes from hijacking the post messaging mechanism.
|
POST_PARAMETERS
The attack comes from fuzzing the POST parameters.
|
PROTOCOL
The attack comes from fuzzing the protocol.
|
REFERRER
The attack comes from fuzzing the referrer property.
|
SAME_ORIGIN
The attack is a Same-Origin Method Execution attack via a GET parameter.
|
SESSION_STORAGE
The attack comes from fuzzing the browser's sessionStorage.
|
STORED_XSS
The attack comes from the server side and is stored.
|
UNRECOGNIZED |
URL_FRAGMENT
The attack comes from fuzzing the fragment in the url.
|
USER_CONTROLLABLE_URL
The attack payload is received from a third-party host via a URL that is
user-controllable
|
WINDOW_NAME
The attack comes from fuzzing the window's name property.
|
Modifier and Type | Field and Description |
---|---|
static int |
ATTACK_VECTOR_UNSPECIFIED_VALUE
Unknown attack vector.
|
static int |
COOKIE_VALUE
The attack comes from fuzzing the browser's cookies.
|
static int |
FORM_INPUT_VALUE
The attack comes from fuzzing an input element.
|
static int |
GET_PARAMETERS_VALUE
The attack comes from fuzzing parameters in the url.
|
static int |
HTML_COMMENT_VALUE
The attack comes from fuzzing the HTML comments.
|
static int |
LOCAL_STORAGE_VALUE
The attack comes from fuzzing the browser's localStorage.
|
static int |
POST_MESSAGE_VALUE
The attack comes from hijacking the post messaging mechanism.
|
static int |
POST_PARAMETERS_VALUE
The attack comes from fuzzing the POST parameters.
|
static int |
PROTOCOL_VALUE
The attack comes from fuzzing the protocol.
|
static int |
REFERRER_VALUE
The attack comes from fuzzing the referrer property.
|
static int |
SAME_ORIGIN_VALUE
The attack is a Same-Origin Method Execution attack via a GET parameter.
|
static int |
SESSION_STORAGE_VALUE
The attack comes from fuzzing the browser's sessionStorage.
|
static int |
STORED_XSS_VALUE
The attack comes from the server side and is stored.
|
static int |
URL_FRAGMENT_VALUE
The attack comes from fuzzing the fragment in the url.
|
static int |
USER_CONTROLLABLE_URL_VALUE
The attack payload is received from a third-party host via a URL that is
user-controllable
|
static int |
WINDOW_NAME_VALUE
The attack comes from fuzzing the window's name property.
|
Modifier and Type | Method and Description |
---|---|
static Xss.AttackVector |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Xss.AttackVector> |
internalGetValueMap() |
static Xss.AttackVector |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Xss.AttackVector |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Xss.AttackVector |
valueOf(String name)
Returns 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.
|
public static final Xss.AttackVector ATTACK_VECTOR_UNSPECIFIED
Unknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0;
public static final Xss.AttackVector LOCAL_STORAGE
The attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1;
public static final Xss.AttackVector SESSION_STORAGE
The attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2;
public static final Xss.AttackVector WINDOW_NAME
The attack comes from fuzzing the window's name property.
WINDOW_NAME = 3;
public static final Xss.AttackVector REFERRER
The attack comes from fuzzing the referrer property.
REFERRER = 4;
public static final Xss.AttackVector FORM_INPUT
The attack comes from fuzzing an input element.
FORM_INPUT = 5;
public static final Xss.AttackVector COOKIE
The attack comes from fuzzing the browser's cookies.
COOKIE = 6;
public static final Xss.AttackVector POST_MESSAGE
The attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7;
public static final Xss.AttackVector GET_PARAMETERS
The attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8;
public static final Xss.AttackVector URL_FRAGMENT
The attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9;
public static final Xss.AttackVector HTML_COMMENT
The attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10;
public static final Xss.AttackVector POST_PARAMETERS
The attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11;
public static final Xss.AttackVector PROTOCOL
The attack comes from fuzzing the protocol.
PROTOCOL = 12;
public static final Xss.AttackVector STORED_XSS
The attack comes from the server side and is stored.
STORED_XSS = 13;
public static final Xss.AttackVector SAME_ORIGIN
The attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14;
public static final Xss.AttackVector USER_CONTROLLABLE_URL
The attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15;
public static final Xss.AttackVector UNRECOGNIZED
public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE
Unknown attack vector.
ATTACK_VECTOR_UNSPECIFIED = 0;
public static final int LOCAL_STORAGE_VALUE
The attack comes from fuzzing the browser's localStorage.
LOCAL_STORAGE = 1;
public static final int SESSION_STORAGE_VALUE
The attack comes from fuzzing the browser's sessionStorage.
SESSION_STORAGE = 2;
public static final int WINDOW_NAME_VALUE
The attack comes from fuzzing the window's name property.
WINDOW_NAME = 3;
public static final int REFERRER_VALUE
The attack comes from fuzzing the referrer property.
REFERRER = 4;
public static final int FORM_INPUT_VALUE
The attack comes from fuzzing an input element.
FORM_INPUT = 5;
public static final int COOKIE_VALUE
The attack comes from fuzzing the browser's cookies.
COOKIE = 6;
public static final int POST_MESSAGE_VALUE
The attack comes from hijacking the post messaging mechanism.
POST_MESSAGE = 7;
public static final int GET_PARAMETERS_VALUE
The attack comes from fuzzing parameters in the url.
GET_PARAMETERS = 8;
public static final int URL_FRAGMENT_VALUE
The attack comes from fuzzing the fragment in the url.
URL_FRAGMENT = 9;
public static final int HTML_COMMENT_VALUE
The attack comes from fuzzing the HTML comments.
HTML_COMMENT = 10;
public static final int POST_PARAMETERS_VALUE
The attack comes from fuzzing the POST parameters.
POST_PARAMETERS = 11;
public static final int PROTOCOL_VALUE
The attack comes from fuzzing the protocol.
PROTOCOL = 12;
public static final int STORED_XSS_VALUE
The attack comes from the server side and is stored.
STORED_XSS = 13;
public static final int SAME_ORIGIN_VALUE
The attack is a Same-Origin Method Execution attack via a GET parameter.
SAME_ORIGIN = 14;
public static final int USER_CONTROLLABLE_URL_VALUE
The attack payload is received from a third-party host via a URL that is user-controllable
USER_CONTROLLABLE_URL = 15;
public static Xss.AttackVector[] values()
for (Xss.AttackVector c : Xss.AttackVector.values()) System.out.println(c);
public static Xss.AttackVector valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Xss.AttackVector valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Xss.AttackVector forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Xss.AttackVector> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Xss.AttackVector valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.