finding_addon.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. syntax = "proto3";
  16. package google.cloud.websecurityscanner.v1alpha;
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha;websecurityscanner";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "FindingAddonProto";
  20. option java_package = "com.google.cloud.websecurityscanner.v1alpha";
  21. // Information reported for an outdated library.
  22. message OutdatedLibrary {
  23. // The name of the outdated library.
  24. string library_name = 1;
  25. // The version number.
  26. string version = 2;
  27. // URLs to learn more information about the vulnerabilities in the library.
  28. repeated string learn_more_urls = 3;
  29. }
  30. // Information regarding any resource causing the vulnerability such
  31. // as JavaScript sources, image, audio files, etc.
  32. message ViolatingResource {
  33. // The MIME type of this resource.
  34. string content_type = 1;
  35. // URL of this violating resource.
  36. string resource_url = 2;
  37. }
  38. // Information about vulnerable request parameters.
  39. message VulnerableParameters {
  40. // The vulnerable parameter names.
  41. repeated string parameter_names = 1;
  42. }
  43. // Information about vulnerable or missing HTTP Headers.
  44. message VulnerableHeaders {
  45. // Describes a HTTP Header.
  46. message Header {
  47. // Header name.
  48. string name = 1;
  49. // Header value.
  50. string value = 2;
  51. }
  52. // List of vulnerable headers.
  53. repeated Header headers = 1;
  54. // List of missing headers.
  55. repeated Header missing_headers = 2;
  56. }
  57. // Information reported for an XSS.
  58. message Xss {
  59. // Stack traces leading to the point where the XSS occurred.
  60. repeated string stack_traces = 1;
  61. // An error message generated by a javascript breakage.
  62. string error_message = 2;
  63. }