| 1 |
// Copyright 2019 Google LLC. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
// |
| 15 |
|
| 16 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 17 |
// versions: |
| 18 |
// protoc-gen-go v1.26.0 |
| 19 |
// protoc v3.12.2 |
| 20 |
// source: google/cloud/websecurityscanner/v1alpha/finding.proto |
| 21 |
|
| 22 |
package websecurityscanner |
| 23 |
|
| 24 |
import ( |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// Types of Findings. |
| 41 |
type Finding_FindingType int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
// The invalid finding type. |
| 45 |
Finding_FINDING_TYPE_UNSPECIFIED Finding_FindingType = 0 |
| 46 |
// A page that was served over HTTPS also resources over HTTP. A |
| 47 |
// man-in-the-middle attacker could tamper with the HTTP resource and gain |
| 48 |
// full access to the website that loads the resource or to monitor the |
| 49 |
// actions taken by the user. |
| 50 |
Finding_MIXED_CONTENT Finding_FindingType = 1 |
| 51 |
// The version of an included library is known to contain a security issue. |
| 52 |
// The scanner checks the version of library in use against a known list of |
| 53 |
// vulnerable libraries. False positives are possible if the version |
| 54 |
// detection fails or if the library has been manually patched. |
| 55 |
Finding_OUTDATED_LIBRARY Finding_FindingType = 2 |
| 56 |
// This type of vulnerability occurs when the value of a request parameter |
| 57 |
// is reflected at the beginning of the response, for example, in requests |
| 58 |
// using JSONP. Under certain circumstances, an attacker may be able to |
| 59 |
// supply an alphanumeric-only Flash file in the vulnerable parameter |
| 60 |
// causing the browser to execute the Flash file as if it originated on the |
| 61 |
// vulnerable server. |
| 62 |
Finding_ROSETTA_FLASH Finding_FindingType = 5 |
| 63 |
// A cross-site scripting (XSS) bug is found via JavaScript callback. For |
| 64 |
// detailed explanations on XSS, see |
| 65 |
// https://www.google.com/about/appsecurity/learning/xss/. |
| 66 |
Finding_XSS_CALLBACK Finding_FindingType = 3 |
| 67 |
// A potential cross-site scripting (XSS) bug due to JavaScript breakage. |
| 68 |
// In some circumstances, the application under test might modify the test |
| 69 |
// string before it is parsed by the browser. When the browser attempts to |
| 70 |
// runs this modified test string, it will likely break and throw a |
| 71 |
// JavaScript execution error, thus an injection issue is occurring. |
| 72 |
// However, it may not be exploitable. Manual verification is needed to see |
| 73 |
// if the test string modifications can be evaded and confirm that the issue |
| 74 |
// is in fact an XSS vulnerability. For detailed explanations on XSS, see |
| 75 |
// https://www.google.com/about/appsecurity/learning/xss/. |
| 76 |
Finding_XSS_ERROR Finding_FindingType = 4 |
| 77 |
// An application appears to be transmitting a password field in clear text. |
| 78 |
// An attacker can eavesdrop network traffic and sniff the password field. |
| 79 |
Finding_CLEAR_TEXT_PASSWORD Finding_FindingType = 6 |
| 80 |
// An application returns sensitive content with an invalid content type, |
| 81 |
// or without an 'X-Content-Type-Options: nosniff' header. |
| 82 |
Finding_INVALID_CONTENT_TYPE Finding_FindingType = 7 |
| 83 |
// A cross-site scripting (XSS) vulnerability in AngularJS module that |
| 84 |
// occurs when a user-provided string is interpolated by Angular. |
| 85 |
Finding_XSS_ANGULAR_CALLBACK Finding_FindingType = 8 |
| 86 |
// A malformed or invalid valued header. |
| 87 |
Finding_INVALID_HEADER Finding_FindingType = 9 |
| 88 |
// Misspelled security header name. |
| 89 |
Finding_MISSPELLED_SECURITY_HEADER_NAME Finding_FindingType = 10 |
| 90 |
// Mismatching values in a duplicate security header. |
| 91 |
Finding_MISMATCHING_SECURITY_HEADER_VALUES Finding_FindingType = 11 |
| 92 |
) |
| 93 |
|
| 94 |
// Enum value maps for Finding_FindingType. |
| 95 |
var ( |
| 96 |
Finding_FindingType_name = map[int32]string{ |
| 97 |
0: "FINDING_TYPE_UNSPECIFIED", |
| 98 |
1: "MIXED_CONTENT", |
| 99 |
2: "OUTDATED_LIBRARY", |
| 100 |
5: "ROSETTA_FLASH", |
| 101 |
3: "XSS_CALLBACK", |
| 102 |
4: "XSS_ERROR", |
| 103 |
6: "CLEAR_TEXT_PASSWORD", |
| 104 |
7: "INVALID_CONTENT_TYPE", |
| 105 |
8: "XSS_ANGULAR_CALLBACK", |
| 106 |
9: "INVALID_HEADER", |
| 107 |
10: "MISSPELLED_SECURITY_HEADER_NAME", |
| 108 |
11: "MISMATCHING_SECURITY_HEADER_VALUES", |
| 109 |
} |
| 110 |
Finding_FindingType_value = map[string]int32{ |
| 111 |
"FINDING_TYPE_UNSPECIFIED": 0, |
| 112 |
"MIXED_CONTENT": 1, |
| 113 |
"OUTDATED_LIBRARY": 2, |
| 114 |
"ROSETTA_FLASH": 5, |
| 115 |
"XSS_CALLBACK": 3, |
| 116 |
"XSS_ERROR": 4, |
| 117 |
"CLEAR_TEXT_PASSWORD": 6, |
| 118 |
"INVALID_CONTENT_TYPE": 7, |
| 119 |
"XSS_ANGULAR_CALLBACK": 8, |
| 120 |
"INVALID_HEADER": 9, |
| 121 |
"MISSPELLED_SECURITY_HEADER_NAME": 10, |
| 122 |
"MISMATCHING_SECURITY_HEADER_VALUES": 11, |
| 123 |
} |
| 124 |
) |
| 125 |
|
| 126 |
func (x Finding_FindingType) Enum() *Finding_FindingType { |
| 127 |
p := new(Finding_FindingType) |
| 128 |
*p = x |
| 129 |
return p |
| 130 |
} |
| 131 |
|
| 132 |
func (x Finding_FindingType) String() string { |
| 133 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 134 |
} |
| 135 |
|
| 136 |
func (Finding_FindingType) Descriptor() protoreflect.EnumDescriptor { |
| 137 |
return file_google_cloud_websecurityscanner_v1alpha_finding_proto_enumTypes[0].Descriptor() |
| 138 |
} |
| 139 |
|
| 140 |
func (Finding_FindingType) Type() protoreflect.EnumType { |
| 141 |
return &file_google_cloud_websecurityscanner_v1alpha_finding_proto_enumTypes[0] |
| 142 |
} |
| 143 |
|
| 144 |
func (x Finding_FindingType) Number() protoreflect.EnumNumber { |
| 145 |
return protoreflect.EnumNumber(x) |
| 146 |
} |
| 147 |
|
| 148 |
// Deprecated: Use Finding_FindingType.Descriptor instead. |
| 149 |
func (Finding_FindingType) EnumDescriptor() ([]byte, []int) { |
| 150 |
return file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescGZIP(), []int{0, 0} |
| 151 |
} |
| 152 |
|
| 153 |
// A Finding resource represents a vulnerability instance identified during a |
| 154 |
// ScanRun. |
| 155 |
type Finding struct { |
| 156 |
state protoimpl.MessageState |
| 157 |
sizeCache protoimpl.SizeCache |
| 158 |
unknownFields protoimpl.UnknownFields |
| 159 |
|
| 160 |
// The resource name of the Finding. The name follows the format of |
| 161 |
// 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'. |
| 162 |
// The finding IDs are generated by the system. |
| 163 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 164 |
// The type of the Finding. |
| 165 |
FindingType Finding_FindingType `protobuf:"varint,2,opt,name=finding_type,json=findingType,proto3,enum=google.cloud.websecurityscanner.v1alpha.Finding_FindingType" json:"finding_type,omitempty"` |
| 166 |
// The http method of the request that triggered the vulnerability, in |
| 167 |
// uppercase. |
| 168 |
HttpMethod string `protobuf:"bytes,3,opt,name=http_method,json=httpMethod,proto3" json:"http_method,omitempty"` |
| 169 |
// The URL produced by the server-side fuzzer and used in the request that |
| 170 |
// triggered the vulnerability. |
| 171 |
FuzzedUrl string `protobuf:"bytes,4,opt,name=fuzzed_url,json=fuzzedUrl,proto3" json:"fuzzed_url,omitempty"` |
| 172 |
// The body of the request that triggered the vulnerability. |
| 173 |
Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` |
| 174 |
// The description of the vulnerability. |
| 175 |
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` |
| 176 |
// The URL containing human-readable payload that user can leverage to |
| 177 |
// reproduce the vulnerability. |
| 178 |
ReproductionUrl string `protobuf:"bytes,7,opt,name=reproduction_url,json=reproductionUrl,proto3" json:"reproduction_url,omitempty"` |
| 179 |
// If the vulnerability was originated from nested IFrame, the immediate |
| 180 |
// parent IFrame is reported. |
| 181 |
FrameUrl string `protobuf:"bytes,8,opt,name=frame_url,json=frameUrl,proto3" json:"frame_url,omitempty"` |
| 182 |
// The URL where the browser lands when the vulnerability is detected. |
| 183 |
FinalUrl string `protobuf:"bytes,9,opt,name=final_url,json=finalUrl,proto3" json:"final_url,omitempty"` |
| 184 |
// The tracking ID uniquely identifies a vulnerability instance across |
| 185 |
// multiple ScanRuns. |
| 186 |
TrackingId string `protobuf:"bytes,10,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"` |
| 187 |
// An addon containing information about outdated libraries. |
| 188 |
OutdatedLibrary *OutdatedLibrary `protobuf:"bytes,11,opt,name=outdated_library,json=outdatedLibrary,proto3" json:"outdated_library,omitempty"` |
| 189 |
// An addon containing detailed information regarding any resource causing the |
| 190 |
// vulnerability such as JavaScript sources, image, audio files, etc. |
| 191 |
ViolatingResource *ViolatingResource `protobuf:"bytes,12,opt,name=violating_resource,json=violatingResource,proto3" json:"violating_resource,omitempty"` |
| 192 |
// An addon containing information about vulnerable or missing HTTP headers. |
| 193 |
VulnerableHeaders *VulnerableHeaders `protobuf:"bytes,15,opt,name=vulnerable_headers,json=vulnerableHeaders,proto3" json:"vulnerable_headers,omitempty"` |
| 194 |
// An addon containing information about request parameters which were found |
| 195 |
// to be vulnerable. |
| 196 |
VulnerableParameters *VulnerableParameters `protobuf:"bytes,13,opt,name=vulnerable_parameters,json=vulnerableParameters,proto3" json:"vulnerable_parameters,omitempty"` |
| 197 |
// An addon containing information reported for an XSS, if any. |
| 198 |
Xss *Xss `protobuf:"bytes,14,opt,name=xss,proto3" json:"xss,omitempty"` |
| 199 |
} |
| 200 |
|
| 201 |
func (x *Finding) Reset() { |
| 202 |
*x = Finding{} |
| 203 |
if protoimpl.UnsafeEnabled { |
| 204 |
mi := &file_google_cloud_websecurityscanner_v1alpha_finding_proto_msgTypes[0] |
| 205 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 206 |
ms.StoreMessageInfo(mi) |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
func (x *Finding) String() string { |
| 211 |
return protoimpl.X.MessageStringOf(x) |
| 212 |
} |
| 213 |
|
| 214 |
func (*Finding) ProtoMessage() {} |
| 215 |
|
| 216 |
func (x *Finding) ProtoReflect() protoreflect.Message { |
| 217 |
mi := &file_google_cloud_websecurityscanner_v1alpha_finding_proto_msgTypes[0] |
| 218 |
if protoimpl.UnsafeEnabled && x != nil { |
| 219 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 220 |
if ms.LoadMessageInfo() == nil { |
| 221 |
ms.StoreMessageInfo(mi) |
| 222 |
} |
| 223 |
return ms |
| 224 |
} |
| 225 |
return mi.MessageOf(x) |
| 226 |
} |
| 227 |
|
| 228 |
// Deprecated: Use Finding.ProtoReflect.Descriptor instead. |
| 229 |
func (*Finding) Descriptor() ([]byte, []int) { |
| 230 |
return file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescGZIP(), []int{0} |
| 231 |
} |
| 232 |
|
| 233 |
func (x *Finding) GetName() string { |
| 234 |
if x != nil { |
| 235 |
return x.Name |
| 236 |
} |
| 237 |
return "" |
| 238 |
} |
| 239 |
|
| 240 |
func (x *Finding) GetFindingType() Finding_FindingType { |
| 241 |
if x != nil { |
| 242 |
return x.FindingType |
| 243 |
} |
| 244 |
return Finding_FINDING_TYPE_UNSPECIFIED |
| 245 |
} |
| 246 |
|
| 247 |
func (x *Finding) GetHttpMethod() string { |
| 248 |
if x != nil { |
| 249 |
return x.HttpMethod |
| 250 |
} |
| 251 |
return "" |
| 252 |
} |
| 253 |
|
| 254 |
func (x *Finding) GetFuzzedUrl() string { |
| 255 |
if x != nil { |
| 256 |
return x.FuzzedUrl |
| 257 |
} |
| 258 |
return "" |
| 259 |
} |
| 260 |
|
| 261 |
func (x *Finding) GetBody() string { |
| 262 |
if x != nil { |
| 263 |
return x.Body |
| 264 |
} |
| 265 |
return "" |
| 266 |
} |
| 267 |
|
| 268 |
func (x *Finding) GetDescription() string { |
| 269 |
if x != nil { |
| 270 |
return x.Description |
| 271 |
} |
| 272 |
return "" |
| 273 |
} |
| 274 |
|
| 275 |
func (x *Finding) GetReproductionUrl() string { |
| 276 |
if x != nil { |
| 277 |
return x.ReproductionUrl |
| 278 |
} |
| 279 |
return "" |
| 280 |
} |
| 281 |
|
| 282 |
func (x *Finding) GetFrameUrl() string { |
| 283 |
if x != nil { |
| 284 |
return x.FrameUrl |
| 285 |
} |
| 286 |
return "" |
| 287 |
} |
| 288 |
|
| 289 |
func (x *Finding) GetFinalUrl() string { |
| 290 |
if x != nil { |
| 291 |
return x.FinalUrl |
| 292 |
} |
| 293 |
return "" |
| 294 |
} |
| 295 |
|
| 296 |
func (x *Finding) GetTrackingId() string { |
| 297 |
if x != nil { |
| 298 |
return x.TrackingId |
| 299 |
} |
| 300 |
return "" |
| 301 |
} |
| 302 |
|
| 303 |
func (x *Finding) GetOutdatedLibrary() *OutdatedLibrary { |
| 304 |
if x != nil { |
| 305 |
return x.OutdatedLibrary |
| 306 |
} |
| 307 |
return nil |
| 308 |
} |
| 309 |
|
| 310 |
func (x *Finding) GetViolatingResource() *ViolatingResource { |
| 311 |
if x != nil { |
| 312 |
return x.ViolatingResource |
| 313 |
} |
| 314 |
return nil |
| 315 |
} |
| 316 |
|
| 317 |
func (x *Finding) GetVulnerableHeaders() *VulnerableHeaders { |
| 318 |
if x != nil { |
| 319 |
return x.VulnerableHeaders |
| 320 |
} |
| 321 |
return nil |
| 322 |
} |
| 323 |
|
| 324 |
func (x *Finding) GetVulnerableParameters() *VulnerableParameters { |
| 325 |
if x != nil { |
| 326 |
return x.VulnerableParameters |
| 327 |
} |
| 328 |
return nil |
| 329 |
} |
| 330 |
|
| 331 |
func (x *Finding) GetXss() *Xss { |
| 332 |
if x != nil { |
| 333 |
return x.Xss |
| 334 |
} |
| 335 |
return nil |
| 336 |
} |
| 337 |
|
| 338 |
var File_google_cloud_websecurityscanner_v1alpha_finding_proto protoreflect.FileDescriptor |
| 339 |
|
| 340 |
var file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDesc = []byte{ |
| 341 |
0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, |
| 342 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 343 |
0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, |
| 344 |
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 345 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, |
| 346 |
0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 347 |
0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, |
| 348 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x6f, |
| 349 |
0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, |
| 350 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x61, |
| 351 |
0x6c, 0x70, 0x68, 0x61, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x64, 0x64, |
| 352 |
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x0a, 0x0a, 0x07, 0x46, 0x69, 0x6e, |
| 353 |
0x64, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 354 |
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x5f, 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, |
| 355 |
0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, |
| 356 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, |
| 357 |
0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, |
| 358 |
0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, |
| 359 |
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x66, 0x69, |
| 360 |
0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x74, 0x74, |
| 361 |
0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, |
| 362 |
0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x75, |
| 363 |
0x7a, 0x7a, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, |
| 364 |
0x66, 0x75, 0x7a, 0x7a, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, |
| 365 |
0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x20, 0x0a, |
| 366 |
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, |
| 367 |
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, |
| 368 |
0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, |
| 369 |
0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x72, 0x6f, |
| 370 |
0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x72, |
| 371 |
0x61, 0x6d, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, |
| 372 |
0x72, 0x61, 0x6d, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, |
| 373 |
0x5f, 0x75, 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6e, 0x61, |
| 374 |
0x6c, 0x55, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, |
| 375 |
0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x6b, |
| 376 |
0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x64, 0x61, 0x74, 0x65, |
| 377 |
0x64, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 378 |
0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, |
| 379 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 380 |
0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x64, 0x61, 0x74, |
| 381 |
0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x64, 0x61, |
| 382 |
0x74, 0x65, 0x64, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x69, 0x0a, 0x12, 0x76, 0x69, |
| 383 |
0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 384 |
0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 385 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, |
| 386 |
0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 387 |
0x2e, 0x56, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, |
| 388 |
0x63, 0x65, 0x52, 0x11, 0x76, 0x69, 0x6f, 0x6c, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, |
| 389 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x69, 0x0a, 0x12, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, |
| 390 |
0x62, 0x6c, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, |
| 391 |
0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 392 |
0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, |
| 393 |
0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x56, 0x75, 0x6c, 0x6e, |
| 394 |
0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, 0x11, 0x76, |
| 395 |
0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, |
| 396 |
0x12, 0x72, 0x0a, 0x15, 0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, |
| 397 |
0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 398 |
0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, |
| 399 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 400 |
0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x56, 0x75, 0x6c, 0x6e, 0x65, 0x72, |
| 401 |
0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x14, |
| 402 |
0x76, 0x75, 0x6c, 0x6e, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, |
| 403 |
0x74, 0x65, 0x72, 0x73, 0x12, 0x3e, 0x0a, 0x03, 0x78, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, |
| 404 |
0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 405 |
0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, |
| 406 |
0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x58, 0x73, 0x73, 0x52, |
| 407 |
0x03, 0x78, 0x73, 0x73, 0x22, 0xb6, 0x02, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, |
| 408 |
0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x46, 0x49, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, |
| 409 |
0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, |
| 410 |
0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x58, 0x45, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, |
| 411 |
0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4f, 0x55, 0x54, 0x44, 0x41, 0x54, 0x45, |
| 412 |
0x44, 0x5f, 0x4c, 0x49, 0x42, 0x52, 0x41, 0x52, 0x59, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x52, |
| 413 |
0x4f, 0x53, 0x45, 0x54, 0x54, 0x41, 0x5f, 0x46, 0x4c, 0x41, 0x53, 0x48, 0x10, 0x05, 0x12, 0x10, |
| 414 |
0x0a, 0x0c, 0x58, 0x53, 0x53, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x03, |
| 415 |
0x12, 0x0d, 0x0a, 0x09, 0x58, 0x53, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, |
| 416 |
0x17, 0x0a, 0x13, 0x43, 0x4c, 0x45, 0x41, 0x52, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x41, |
| 417 |
0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x49, 0x4e, 0x56, 0x41, |
| 418 |
0x4c, 0x49, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, |
| 419 |
0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x58, 0x53, 0x53, 0x5f, 0x41, 0x4e, 0x47, 0x55, 0x4c, 0x41, |
| 420 |
0x52, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x42, 0x41, 0x43, 0x4b, 0x10, 0x08, 0x12, 0x12, 0x0a, 0x0e, |
| 421 |
0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x09, |
| 422 |
0x12, 0x23, 0x0a, 0x1f, 0x4d, 0x49, 0x53, 0x53, 0x50, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x5f, 0x53, |
| 423 |
0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x5f, 0x4e, |
| 424 |
0x41, 0x4d, 0x45, 0x10, 0x0a, 0x12, 0x26, 0x0a, 0x22, 0x4d, 0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, |
| 425 |
0x48, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x48, 0x45, |
| 426 |
0x41, 0x44, 0x45, 0x52, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x53, 0x10, 0x0b, 0x3a, 0x84, 0x01, |
| 427 |
0xea, 0x41, 0x80, 0x01, 0x0a, 0x29, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, |
| 428 |
0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, |
| 429 |
0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, |
| 430 |
0x53, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 431 |
0x63, 0x74, 0x7d, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, |
| 432 |
0x7b, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x2f, 0x73, 0x63, |
| 433 |
0x61, 0x6e, 0x52, 0x75, 0x6e, 0x73, 0x2f, 0x7b, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x72, 0x75, 0x6e, |
| 434 |
0x7d, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6e, 0x64, |
| 435 |
0x69, 0x6e, 0x67, 0x7d, 0x42, 0x98, 0x01, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, |
| 436 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, |
| 437 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, |
| 438 |
0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, |
| 439 |
0x74, 0x6f, 0x50, 0x01, 0x5a, 0x59, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, |
| 440 |
0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 441 |
0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, |
| 442 |
0x64, 0x2f, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, |
| 443 |
0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x77, 0x65, 0x62, |
| 444 |
0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x62, |
| 445 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 446 |
} |
| 447 |
|
| 448 |
var ( |
| 449 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescOnce sync.Once |
| 450 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescData = file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDesc |
| 451 |
) |
| 452 |
|
| 453 |
func file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescGZIP() []byte { |
| 454 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescOnce.Do(func() { |
| 455 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescData) |
| 456 |
}) |
| 457 |
return file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDescData |
| 458 |
} |
| 459 |
|
| 460 |
var file_google_cloud_websecurityscanner_v1alpha_finding_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 461 |
var file_google_cloud_websecurityscanner_v1alpha_finding_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 462 |
var file_google_cloud_websecurityscanner_v1alpha_finding_proto_goTypes = []interface{}{ |
| 463 |
(Finding_FindingType)(0), // 0: google.cloud.websecurityscanner.v1alpha.Finding.FindingType |
| 464 |
(*Finding)(nil), // 1: google.cloud.websecurityscanner.v1alpha.Finding |
| 465 |
(*OutdatedLibrary)(nil), // 2: google.cloud.websecurityscanner.v1alpha.OutdatedLibrary |
| 466 |
(*ViolatingResource)(nil), // 3: google.cloud.websecurityscanner.v1alpha.ViolatingResource |
| 467 |
(*VulnerableHeaders)(nil), // 4: google.cloud.websecurityscanner.v1alpha.VulnerableHeaders |
| 468 |
(*VulnerableParameters)(nil), // 5: google.cloud.websecurityscanner.v1alpha.VulnerableParameters |
| 469 |
(*Xss)(nil), // 6: google.cloud.websecurityscanner.v1alpha.Xss |
| 470 |
} |
| 471 |
var file_google_cloud_websecurityscanner_v1alpha_finding_proto_depIdxs = []int32{ |
| 472 |
0, // 0: google.cloud.websecurityscanner.v1alpha.Finding.finding_type:type_name -> google.cloud.websecurityscanner.v1alpha.Finding.FindingType |
| 473 |
2, // 1: google.cloud.websecurityscanner.v1alpha.Finding.outdated_library:type_name -> google.cloud.websecurityscanner.v1alpha.OutdatedLibrary |
| 474 |
3, // 2: google.cloud.websecurityscanner.v1alpha.Finding.violating_resource:type_name -> google.cloud.websecurityscanner.v1alpha.ViolatingResource |
| 475 |
4, // 3: google.cloud.websecurityscanner.v1alpha.Finding.vulnerable_headers:type_name -> google.cloud.websecurityscanner.v1alpha.VulnerableHeaders |
| 476 |
5, // 4: google.cloud.websecurityscanner.v1alpha.Finding.vulnerable_parameters:type_name -> google.cloud.websecurityscanner.v1alpha.VulnerableParameters |
| 477 |
6, // 5: google.cloud.websecurityscanner.v1alpha.Finding.xss:type_name -> google.cloud.websecurityscanner.v1alpha.Xss |
| 478 |
6, // [6:6] is the sub-list for method output_type |
| 479 |
6, // [6:6] is the sub-list for method input_type |
| 480 |
6, // [6:6] is the sub-list for extension type_name |
| 481 |
6, // [6:6] is the sub-list for extension extendee |
| 482 |
0, // [0:6] is the sub-list for field type_name |
| 483 |
} |
| 484 |
|
| 485 |
func init() { file_google_cloud_websecurityscanner_v1alpha_finding_proto_init() } |
| 486 |
func file_google_cloud_websecurityscanner_v1alpha_finding_proto_init() { |
| 487 |
if File_google_cloud_websecurityscanner_v1alpha_finding_proto != nil { |
| 488 |
return |
| 489 |
} |
| 490 |
file_google_cloud_websecurityscanner_v1alpha_finding_addon_proto_init() |
| 491 |
if !protoimpl.UnsafeEnabled { |
| 492 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 493 |
switch v := v.(*Finding); i { |
| 494 |
case 0: |
| 495 |
return &v.state |
| 496 |
case 1: |
| 497 |
return &v.sizeCache |
| 498 |
case 2: |
| 499 |
return &v.unknownFields |
| 500 |
default: |
| 501 |
return nil |
| 502 |
} |
| 503 |
} |
| 504 |
} |
| 505 |
type x struct{} |
| 506 |
out := protoimpl.TypeBuilder{ |
| 507 |
File: protoimpl.DescBuilder{ |
| 508 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 509 |
RawDescriptor: file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDesc, |
| 510 |
NumEnums: 1, |
| 511 |
NumMessages: 1, |
| 512 |
NumExtensions: 0, |
| 513 |
NumServices: 0, |
| 514 |
}, |
| 515 |
GoTypes: file_google_cloud_websecurityscanner_v1alpha_finding_proto_goTypes, |
| 516 |
DependencyIndexes: file_google_cloud_websecurityscanner_v1alpha_finding_proto_depIdxs, |
| 517 |
EnumInfos: file_google_cloud_websecurityscanner_v1alpha_finding_proto_enumTypes, |
| 518 |
MessageInfos: file_google_cloud_websecurityscanner_v1alpha_finding_proto_msgTypes, |
| 519 |
}.Build() |
| 520 |
File_google_cloud_websecurityscanner_v1alpha_finding_proto = out.File |
| 521 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_rawDesc = nil |
| 522 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_goTypes = nil |
| 523 |
file_google_cloud_websecurityscanner_v1alpha_finding_proto_depIdxs = nil |
| 524 |
} |