sqreen 1.18.1 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +1 -1
  4. data/Rakefile +1 -1
  5. data/lib/sqreen-alt.rb +3 -0
  6. data/lib/sqreen.rb +1 -1
  7. data/lib/sqreen/actions.rb +2 -2
  8. data/lib/sqreen/agent.rb +1 -1
  9. data/lib/sqreen/attack_detected.html +1 -1
  10. data/lib/sqreen/backport.rb +3 -0
  11. data/lib/sqreen/backport/original_name.rb +3 -0
  12. data/lib/sqreen/binding_accessor.rb +1 -1
  13. data/lib/sqreen/call_countable.rb +1 -1
  14. data/lib/sqreen/callback_tree.rb +1 -1
  15. data/lib/sqreen/callbacks.rb +1 -1
  16. data/lib/sqreen/capped_queue.rb +2 -1
  17. data/lib/sqreen/condition_evaluator.rb +1 -1
  18. data/lib/sqreen/conditionable.rb +1 -1
  19. data/lib/sqreen/configuration.rb +1 -1
  20. data/lib/sqreen/context.rb +1 -1
  21. data/lib/sqreen/deliveries/batch.rb +1 -1
  22. data/lib/sqreen/deliveries/simple.rb +1 -1
  23. data/lib/sqreen/dependency.rb +1 -1
  24. data/lib/sqreen/dependency/callback.rb +1 -1
  25. data/lib/sqreen/dependency/detector.rb +1 -1
  26. data/lib/sqreen/dependency/hook.rb +1 -1
  27. data/lib/sqreen/dependency/hook_point.rb +1 -1
  28. data/lib/sqreen/dependency/new_relic.rb +1 -1
  29. data/lib/sqreen/dependency/rack.rb +1 -1
  30. data/lib/sqreen/dependency/rails.rb +1 -1
  31. data/lib/sqreen/dependency/sentry.rb +1 -1
  32. data/lib/sqreen/dependency/sinatra.rb +1 -1
  33. data/lib/sqreen/encoding_sanitizer.rb +3 -0
  34. data/lib/sqreen/event.rb +1 -1
  35. data/lib/sqreen/events/attack.rb +1 -1
  36. data/lib/sqreen/events/remote_exception.rb +1 -1
  37. data/lib/sqreen/events/request_record.rb +1 -1
  38. data/lib/sqreen/exception.rb +13 -1
  39. data/lib/sqreen/frameworks.rb +1 -1
  40. data/lib/sqreen/frameworks/generic.rb +1 -1
  41. data/lib/sqreen/frameworks/rails.rb +2 -1
  42. data/lib/sqreen/frameworks/rails3.rb +1 -1
  43. data/lib/sqreen/frameworks/request_recorder.rb +2 -1
  44. data/lib/sqreen/frameworks/sinatra.rb +1 -1
  45. data/lib/sqreen/frameworks/sqreen_test.rb +1 -1
  46. data/lib/sqreen/instrumentation.rb +1 -1
  47. data/lib/sqreen/js/execjs_adapter.rb +3 -0
  48. data/lib/sqreen/js/js_service.rb +3 -0
  49. data/lib/sqreen/js/mini_racer_adapter.rb +3 -0
  50. data/lib/sqreen/log.rb +1 -1
  51. data/lib/sqreen/metrics.rb +1 -1
  52. data/lib/sqreen/metrics/average.rb +1 -1
  53. data/lib/sqreen/metrics/base.rb +1 -1
  54. data/lib/sqreen/metrics/binning.rb +2 -2
  55. data/lib/sqreen/metrics/collect.rb +1 -1
  56. data/lib/sqreen/metrics/sum.rb +1 -1
  57. data/lib/sqreen/metrics_store.rb +1 -1
  58. data/lib/sqreen/middleware.rb +1 -1
  59. data/lib/sqreen/mono_time.rb +3 -0
  60. data/lib/sqreen/payload_creator.rb +1 -1
  61. data/lib/sqreen/performance_notifications.rb +1 -1
  62. data/lib/sqreen/performance_notifications/binned_metrics.rb +2 -2
  63. data/lib/sqreen/performance_notifications/log.rb +1 -1
  64. data/lib/sqreen/performance_notifications/log_performance.rb +1 -1
  65. data/lib/sqreen/performance_notifications/metrics.rb +1 -1
  66. data/lib/sqreen/performance_notifications/newrelic.rb +1 -1
  67. data/lib/sqreen/remote_command.rb +2 -1
  68. data/lib/sqreen/rule_attributes.rb +1 -1
  69. data/lib/sqreen/rule_callback.rb +1 -1
  70. data/lib/sqreen/rules.rb +1 -1
  71. data/lib/sqreen/rules_callbacks.rb +2 -1
  72. data/lib/sqreen/rules_callbacks/binding_accessor_matcher.rb +1 -1
  73. data/lib/sqreen/rules_callbacks/binding_accessor_metrics.rb +1 -1
  74. data/lib/sqreen/rules_callbacks/blacklist_ips.rb +1 -1
  75. data/lib/sqreen/rules_callbacks/count_http_codes.rb +1 -1
  76. data/lib/sqreen/rules_callbacks/crawler_user_agent_matches.rb +1 -1
  77. data/lib/sqreen/rules_callbacks/crawler_user_agent_matches_metrics.rb +1 -1
  78. data/lib/sqreen/rules_callbacks/custom_error.rb +1 -1
  79. data/lib/sqreen/rules_callbacks/devise_auth_track.rb +3 -0
  80. data/lib/sqreen/rules_callbacks/devise_signup_track.rb +3 -0
  81. data/lib/sqreen/rules_callbacks/execjs.rb +1 -1
  82. data/lib/sqreen/rules_callbacks/headers_insert.rb +1 -1
  83. data/lib/sqreen/rules_callbacks/inspect_rule.rb +1 -1
  84. data/lib/sqreen/rules_callbacks/matcher_rule.rb +1 -1
  85. data/lib/sqreen/rules_callbacks/not_found.rb +74 -0
  86. data/lib/sqreen/rules_callbacks/rails_parameters.rb +1 -1
  87. data/lib/sqreen/rules_callbacks/record_request_context.rb +1 -1
  88. data/lib/sqreen/rules_callbacks/reflected_xss.rb +1 -1
  89. data/lib/sqreen/rules_callbacks/regexp_rule.rb +1 -1
  90. data/lib/sqreen/rules_callbacks/run_req_start_actions.rb +2 -2
  91. data/lib/sqreen/rules_callbacks/run_user_actions.rb +2 -2
  92. data/lib/sqreen/rules_callbacks/sdk_auth_track.rb +3 -0
  93. data/lib/sqreen/rules_callbacks/sdk_signup_track.rb +3 -0
  94. data/lib/sqreen/rules_callbacks/shell_env.rb +1 -1
  95. data/lib/sqreen/rules_callbacks/url_matches.rb +1 -1
  96. data/lib/sqreen/rules_callbacks/user_agent_matches.rb +1 -1
  97. data/lib/sqreen/rules_callbacks/waf.rb +43 -2
  98. data/lib/sqreen/rules_signature.rb +1 -1
  99. data/lib/sqreen/runner.rb +1 -1
  100. data/lib/sqreen/runtime_infos.rb +1 -1
  101. data/lib/sqreen/safe_json.rb +1 -1
  102. data/lib/sqreen/sdk.rb +1 -1
  103. data/lib/sqreen/serializer.rb +1 -1
  104. data/lib/sqreen/session.rb +1 -1
  105. data/lib/sqreen/shared_storage.rb +1 -1
  106. data/lib/sqreen/shared_storage23.rb +1 -1
  107. data/lib/sqreen/trie.rb +3 -0
  108. data/lib/sqreen/version.rb +3 -2
  109. data/lib/sqreen/web_server.rb +1 -1
  110. data/lib/sqreen/web_server/generic.rb +1 -1
  111. data/lib/sqreen/web_server/passenger.rb +1 -1
  112. data/lib/sqreen/web_server/puma.rb +1 -1
  113. data/lib/sqreen/web_server/rainbows.rb +1 -1
  114. data/lib/sqreen/web_server/thin.rb +1 -1
  115. data/lib/sqreen/web_server/unicorn.rb +1 -1
  116. data/lib/sqreen/web_server/webrick.rb +1 -1
  117. data/lib/sqreen/worker.rb +1 -1
  118. metadata +8 -6
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'sqreen/exception'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'ipaddr'
5
5
  require 'timeout'
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'sqreen/version'
5
5
  require 'sqreen/frameworks'
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'json'
5
5
 
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  # Sqreen Namespace
5
5
  module Sqreen
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  # Serialization functions: convert Hash -> simple ruby types
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'sqreen/log'
5
5
  require 'sqreen/serializer'
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  # dedicated local storage
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module SharedStorage
@@ -1,3 +1,6 @@
1
+ # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
+
1
4
  require 'ipaddr'
2
5
 
3
6
  module Sqreen
@@ -1,5 +1,6 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
+
3
4
  module Sqreen
4
- VERSION = '1.18.1'.freeze
5
+ VERSION = '1.18.2'.freeze
5
6
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'sqreen/log'
5
5
  require 'sqreen/web_server/generic'
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  module Sqreen
5
5
  module WebServer
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
- # Please refer to our terms for more information: https://www.sqreen.io/terms.html
2
+ # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
3
 
4
4
  require 'thread'
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.1
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-25 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sq_mini_racer
@@ -39,8 +39,8 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.3.0.0
41
41
  description: Sqreen is a SaaS based Application protection and monitoring platform
42
- that integrates directly into your Ruby applications. Learn more at https://sqreen.io.
43
- email: contact@sqreen.io
42
+ that integrates directly into your Ruby applications. Learn more at https://sqreen.com.
43
+ email: contact@sqreen.com
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
@@ -130,6 +130,7 @@ files:
130
130
  - lib/sqreen/rules_callbacks/headers_insert.rb
131
131
  - lib/sqreen/rules_callbacks/inspect_rule.rb
132
132
  - lib/sqreen/rules_callbacks/matcher_rule.rb
133
+ - lib/sqreen/rules_callbacks/not_found.rb
133
134
  - lib/sqreen/rules_callbacks/rails_parameters.rb
134
135
  - lib/sqreen/rules_callbacks/record_request_context.rb
135
136
  - lib/sqreen/rules_callbacks/reflected_xss.rb
@@ -162,8 +163,9 @@ files:
162
163
  - lib/sqreen/web_server/unicorn.rb
163
164
  - lib/sqreen/web_server/webrick.rb
164
165
  - lib/sqreen/worker.rb
165
- homepage: https://www.sqreen.io/
166
- licenses: []
166
+ homepage: https://www.sqreen.com/
167
+ licenses:
168
+ - Sqreen
167
169
  metadata: {}
168
170
  post_install_message:
169
171
  rdoc_options: []