railroader 4.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES.md +1091 -0
  3. data/FEATURES +16 -0
  4. data/README.md +174 -0
  5. data/bin/railroader +8 -0
  6. data/lib/railroader/app_tree.rb +191 -0
  7. data/lib/railroader/call_index.rb +219 -0
  8. data/lib/railroader/checks/base_check.rb +505 -0
  9. data/lib/railroader/checks/check_basic_auth.rb +88 -0
  10. data/lib/railroader/checks/check_basic_auth_timing_attack.rb +33 -0
  11. data/lib/railroader/checks/check_content_tag.rb +200 -0
  12. data/lib/railroader/checks/check_create_with.rb +74 -0
  13. data/lib/railroader/checks/check_cross_site_scripting.rb +381 -0
  14. data/lib/railroader/checks/check_default_routes.rb +86 -0
  15. data/lib/railroader/checks/check_deserialize.rb +56 -0
  16. data/lib/railroader/checks/check_detailed_exceptions.rb +55 -0
  17. data/lib/railroader/checks/check_digest_dos.rb +38 -0
  18. data/lib/railroader/checks/check_divide_by_zero.rb +42 -0
  19. data/lib/railroader/checks/check_dynamic_finders.rb +48 -0
  20. data/lib/railroader/checks/check_escape_function.rb +21 -0
  21. data/lib/railroader/checks/check_evaluation.rb +35 -0
  22. data/lib/railroader/checks/check_execute.rb +189 -0
  23. data/lib/railroader/checks/check_file_access.rb +71 -0
  24. data/lib/railroader/checks/check_file_disclosure.rb +35 -0
  25. data/lib/railroader/checks/check_filter_skipping.rb +31 -0
  26. data/lib/railroader/checks/check_forgery_setting.rb +81 -0
  27. data/lib/railroader/checks/check_header_dos.rb +31 -0
  28. data/lib/railroader/checks/check_i18n_xss.rb +48 -0
  29. data/lib/railroader/checks/check_jruby_xml.rb +36 -0
  30. data/lib/railroader/checks/check_json_encoding.rb +47 -0
  31. data/lib/railroader/checks/check_json_parsing.rb +107 -0
  32. data/lib/railroader/checks/check_link_to.rb +132 -0
  33. data/lib/railroader/checks/check_link_to_href.rb +146 -0
  34. data/lib/railroader/checks/check_mail_to.rb +49 -0
  35. data/lib/railroader/checks/check_mass_assignment.rb +196 -0
  36. data/lib/railroader/checks/check_mime_type_dos.rb +39 -0
  37. data/lib/railroader/checks/check_model_attr_accessible.rb +55 -0
  38. data/lib/railroader/checks/check_model_attributes.rb +119 -0
  39. data/lib/railroader/checks/check_model_serialize.rb +67 -0
  40. data/lib/railroader/checks/check_nested_attributes.rb +38 -0
  41. data/lib/railroader/checks/check_nested_attributes_bypass.rb +58 -0
  42. data/lib/railroader/checks/check_number_to_currency.rb +74 -0
  43. data/lib/railroader/checks/check_permit_attributes.rb +43 -0
  44. data/lib/railroader/checks/check_quote_table_name.rb +40 -0
  45. data/lib/railroader/checks/check_redirect.rb +256 -0
  46. data/lib/railroader/checks/check_regex_dos.rb +68 -0
  47. data/lib/railroader/checks/check_render.rb +97 -0
  48. data/lib/railroader/checks/check_render_dos.rb +37 -0
  49. data/lib/railroader/checks/check_render_inline.rb +53 -0
  50. data/lib/railroader/checks/check_response_splitting.rb +21 -0
  51. data/lib/railroader/checks/check_route_dos.rb +42 -0
  52. data/lib/railroader/checks/check_safe_buffer_manipulation.rb +31 -0
  53. data/lib/railroader/checks/check_sanitize_methods.rb +112 -0
  54. data/lib/railroader/checks/check_secrets.rb +40 -0
  55. data/lib/railroader/checks/check_select_tag.rb +59 -0
  56. data/lib/railroader/checks/check_select_vulnerability.rb +60 -0
  57. data/lib/railroader/checks/check_send.rb +47 -0
  58. data/lib/railroader/checks/check_send_file.rb +19 -0
  59. data/lib/railroader/checks/check_session_manipulation.rb +35 -0
  60. data/lib/railroader/checks/check_session_settings.rb +176 -0
  61. data/lib/railroader/checks/check_simple_format.rb +58 -0
  62. data/lib/railroader/checks/check_single_quotes.rb +101 -0
  63. data/lib/railroader/checks/check_skip_before_filter.rb +60 -0
  64. data/lib/railroader/checks/check_sql.rb +700 -0
  65. data/lib/railroader/checks/check_sql_cves.rb +106 -0
  66. data/lib/railroader/checks/check_ssl_verify.rb +48 -0
  67. data/lib/railroader/checks/check_strip_tags.rb +89 -0
  68. data/lib/railroader/checks/check_symbol_dos.rb +71 -0
  69. data/lib/railroader/checks/check_symbol_dos_cve.rb +30 -0
  70. data/lib/railroader/checks/check_translate_bug.rb +45 -0
  71. data/lib/railroader/checks/check_unsafe_reflection.rb +50 -0
  72. data/lib/railroader/checks/check_unscoped_find.rb +57 -0
  73. data/lib/railroader/checks/check_validation_regex.rb +116 -0
  74. data/lib/railroader/checks/check_weak_hash.rb +148 -0
  75. data/lib/railroader/checks/check_without_protection.rb +80 -0
  76. data/lib/railroader/checks/check_xml_dos.rb +45 -0
  77. data/lib/railroader/checks/check_yaml_parsing.rb +121 -0
  78. data/lib/railroader/checks.rb +209 -0
  79. data/lib/railroader/codeclimate/engine_configuration.rb +97 -0
  80. data/lib/railroader/commandline.rb +179 -0
  81. data/lib/railroader/differ.rb +66 -0
  82. data/lib/railroader/file_parser.rb +54 -0
  83. data/lib/railroader/format/style.css +133 -0
  84. data/lib/railroader/options.rb +339 -0
  85. data/lib/railroader/parsers/rails2_erubis.rb +6 -0
  86. data/lib/railroader/parsers/rails2_xss_plugin_erubis.rb +48 -0
  87. data/lib/railroader/parsers/rails3_erubis.rb +81 -0
  88. data/lib/railroader/parsers/template_parser.rb +108 -0
  89. data/lib/railroader/processor.rb +102 -0
  90. data/lib/railroader/processors/alias_processor.rb +1229 -0
  91. data/lib/railroader/processors/base_processor.rb +295 -0
  92. data/lib/railroader/processors/config_processor.rb +14 -0
  93. data/lib/railroader/processors/controller_alias_processor.rb +278 -0
  94. data/lib/railroader/processors/controller_processor.rb +249 -0
  95. data/lib/railroader/processors/erb_template_processor.rb +77 -0
  96. data/lib/railroader/processors/erubis_template_processor.rb +92 -0
  97. data/lib/railroader/processors/gem_processor.rb +64 -0
  98. data/lib/railroader/processors/haml_template_processor.rb +191 -0
  99. data/lib/railroader/processors/lib/basic_processor.rb +37 -0
  100. data/lib/railroader/processors/lib/call_conversion_helper.rb +90 -0
  101. data/lib/railroader/processors/lib/find_all_calls.rb +224 -0
  102. data/lib/railroader/processors/lib/find_call.rb +183 -0
  103. data/lib/railroader/processors/lib/find_return_value.rb +166 -0
  104. data/lib/railroader/processors/lib/module_helper.rb +111 -0
  105. data/lib/railroader/processors/lib/processor_helper.rb +88 -0
  106. data/lib/railroader/processors/lib/rails2_config_processor.rb +145 -0
  107. data/lib/railroader/processors/lib/rails2_route_processor.rb +313 -0
  108. data/lib/railroader/processors/lib/rails3_config_processor.rb +132 -0
  109. data/lib/railroader/processors/lib/rails3_route_processor.rb +308 -0
  110. data/lib/railroader/processors/lib/render_helper.rb +181 -0
  111. data/lib/railroader/processors/lib/render_path.rb +107 -0
  112. data/lib/railroader/processors/lib/route_helper.rb +68 -0
  113. data/lib/railroader/processors/lib/safe_call_helper.rb +16 -0
  114. data/lib/railroader/processors/library_processor.rb +74 -0
  115. data/lib/railroader/processors/model_processor.rb +91 -0
  116. data/lib/railroader/processors/output_processor.rb +144 -0
  117. data/lib/railroader/processors/route_processor.rb +17 -0
  118. data/lib/railroader/processors/slim_template_processor.rb +111 -0
  119. data/lib/railroader/processors/template_alias_processor.rb +118 -0
  120. data/lib/railroader/processors/template_processor.rb +85 -0
  121. data/lib/railroader/report/config/remediation.yml +71 -0
  122. data/lib/railroader/report/ignore/config.rb +153 -0
  123. data/lib/railroader/report/ignore/interactive.rb +362 -0
  124. data/lib/railroader/report/pager.rb +112 -0
  125. data/lib/railroader/report/renderer.rb +24 -0
  126. data/lib/railroader/report/report_base.rb +292 -0
  127. data/lib/railroader/report/report_codeclimate.rb +79 -0
  128. data/lib/railroader/report/report_csv.rb +55 -0
  129. data/lib/railroader/report/report_hash.rb +23 -0
  130. data/lib/railroader/report/report_html.rb +216 -0
  131. data/lib/railroader/report/report_json.rb +45 -0
  132. data/lib/railroader/report/report_markdown.rb +107 -0
  133. data/lib/railroader/report/report_table.rb +117 -0
  134. data/lib/railroader/report/report_tabs.rb +17 -0
  135. data/lib/railroader/report/report_text.rb +198 -0
  136. data/lib/railroader/report/templates/controller_overview.html.erb +22 -0
  137. data/lib/railroader/report/templates/controller_warnings.html.erb +21 -0
  138. data/lib/railroader/report/templates/error_overview.html.erb +29 -0
  139. data/lib/railroader/report/templates/header.html.erb +58 -0
  140. data/lib/railroader/report/templates/ignored_warnings.html.erb +25 -0
  141. data/lib/railroader/report/templates/model_warnings.html.erb +21 -0
  142. data/lib/railroader/report/templates/overview.html.erb +38 -0
  143. data/lib/railroader/report/templates/security_warnings.html.erb +23 -0
  144. data/lib/railroader/report/templates/template_overview.html.erb +21 -0
  145. data/lib/railroader/report/templates/view_warnings.html.erb +34 -0
  146. data/lib/railroader/report/templates/warning_overview.html.erb +17 -0
  147. data/lib/railroader/report.rb +88 -0
  148. data/lib/railroader/rescanner.rb +483 -0
  149. data/lib/railroader/scanner.rb +321 -0
  150. data/lib/railroader/tracker/collection.rb +93 -0
  151. data/lib/railroader/tracker/config.rb +154 -0
  152. data/lib/railroader/tracker/constants.rb +171 -0
  153. data/lib/railroader/tracker/controller.rb +161 -0
  154. data/lib/railroader/tracker/library.rb +17 -0
  155. data/lib/railroader/tracker/model.rb +90 -0
  156. data/lib/railroader/tracker/template.rb +33 -0
  157. data/lib/railroader/tracker.rb +362 -0
  158. data/lib/railroader/util.rb +503 -0
  159. data/lib/railroader/version.rb +3 -0
  160. data/lib/railroader/warning.rb +294 -0
  161. data/lib/railroader/warning_codes.rb +117 -0
  162. data/lib/railroader.rb +544 -0
  163. data/lib/ruby_parser/bm_sexp.rb +626 -0
  164. data/lib/ruby_parser/bm_sexp_processor.rb +116 -0
  165. metadata +386 -0
data/CHANGES.md ADDED
@@ -0,0 +1,1091 @@
1
+ # 4.3.3
2
+
3
+ * Correct version number.
4
+
5
+ # 4.3.2
6
+
7
+ * Project fork. Begin changing name to "Railroader".
8
+ * This version is not expected to work, it is simply a stub to
9
+ begin the transition to the new name.
10
+
11
+ # 4.3.1
12
+
13
+ * Ignore `Object#freeze`, use the target instead
14
+ * Ignore `foreign_key` calls in SQL
15
+ * Handle `included` calls outside of classes/modules
16
+ * Add `:BRAKEMAN_SAFE_LITERAL` to represent known-safe literals
17
+ * Handle `Array#map` and `Array#each` over literal arrays
18
+ * Use safe literal when accessing literal hash with unknown key
19
+ * Avoid deprecated use of ERB in Ruby 2.6 (Koichi ITO)
20
+ * Allow `symbolize_keys` to be called on `params` in SQL (Jacob Evelyn)
21
+ * Improve handling of conditionals in shell commands (Jacob Evelyn)
22
+ * Fix error when setting line number in implicit renders
23
+
24
+ # 4.3.0
25
+
26
+ * Check exec-type calls even if they are targets
27
+ * Convert `Array#join` to string interpolation
28
+ * `BaseCheck#include_interp?` should return first string interpolation
29
+ * Add `--parser-timeout` option
30
+ * Track parent calls in CallIndex
31
+ * Warn about dangerous `link_to` href with `sanitize()`
32
+ * Ignore `params#to_h` and `params#to_hash` in SQL checks
33
+ * Change "".freeze to just ""
34
+ * Ignore `Process.pid` in system calls
35
+ * Index Kernel#\` calls even if they are targets
36
+ * Code Climate: omit leading dot from `only_files` (Todd Mazierski)
37
+ * `--color` can be used to force color output
38
+ * Fix reported line numbers for CVE-2018-3741 and CVE-2018-8048
39
+
40
+ # 4.2.1
41
+
42
+ * Add warning for CVE-2018-3741
43
+ * Add warning for CVE-2018-8048
44
+ * Scan `app/jobs/` directory
45
+ * Handle `template_exists?` in controllers
46
+
47
+ # 4.2.0
48
+
49
+ * Avoid warning about symbol DoS on `Model#attributes`
50
+ * Avoid warning about open redirects with model methods ending with `_path`
51
+ * Avoid warning about command injection with `Shellwords.escape`
52
+ * Use ivars from `initialize` in libraries
53
+ * `Sexp#body=` can accept `:rlist` from `Sexp#body_list`
54
+ * Update RubyParser to 3.11.0
55
+ * Fix multiple assignment of globals
56
+ * Warn about SQL injection in `not`
57
+ * Exclude template folders in `lib/` (kru0096)
58
+ * Handle ERb use of `String#<<` method for Ruby 2.5 (Pocke)
59
+
60
+ # 4.1.1
61
+
62
+ * Remove check for use of `permit` with `*_id` keys
63
+ * Avoid duplicate warnings about permitted attributes
64
+
65
+ # 4.1.0
66
+
67
+ * Process models as root sexp instead of each sexp
68
+ * Avoid CSRF warning in Rails 5.2 default config
69
+ * Show better location for Sass errors (Andrew Bromwich)
70
+ * Warn about dynamic values in `Arel.sql`
71
+ * Fix `include_paths` for Code Climate engine (Will Fleming)
72
+ * Add check for dangerous keys in `permit`
73
+ * Try to guess options for `less` pager
74
+ * Better processing of op_asgn1 (e.g. x[:y] += 1)
75
+ * Add optional check for divide by zero
76
+ * Remove errors about divide by zero
77
+ * Avoid warning about file access for temp files
78
+ * Do not warn on params.permit with safe values
79
+ * Add Sexp#call_chain
80
+ * Use HTTPS for warning links
81
+ * Handle nested destructuring/multiple assignment
82
+ * Leave results on screen after paging
83
+ * Do not page if results fit on screen
84
+ * Support `app_path` configuration for Code Climate engine (Noah Davis)
85
+ * Refactor Code Climate engine options parsing (Noah Davis)
86
+ * Fix upgrade version for CVE-2016-6316
87
+
88
+ # 4.0.1
89
+
90
+ * Disable pager when `CI` environment variable is set
91
+ * Fix output when pager fails
92
+
93
+ # 4.0.0
94
+
95
+ * Add simple pager for reports output to terminal
96
+ * Rename "Cross Site Scripting" to "Cross-Site Scripting" (Paul Tetreau)
97
+ * Rearrange tests a little bit
98
+ * Treat `request.cookies` like `cookies`
99
+ * Treat `fail`/`raise` like early returns
100
+ * Remove reliance on `CONFIDENCE` constant in checks
101
+ * Remove low confidence mass assignment warnings
102
+ * Reduce warnings about XSS in `link_to`
103
+ * "Plain" report output is now the default
104
+ * --exit-on-error and --exit-on-warn are now the default
105
+ * Fix --exit-on-error and --exit-on-warn in config files
106
+
107
+ # 3.7.2
108
+
109
+ * Fix --ensure-latest (David Guyon)
110
+
111
+ # 3.7.1
112
+
113
+ * Handle simple guard with return at end of branch
114
+ * Modularize bin/brakeman
115
+ * Improve multi-value Sexp error message
116
+ * Add more collection methods for iteration detection
117
+ * Update ruby2ruby and ruby_parser
118
+
119
+ # 3.7.0
120
+
121
+ * Improve support for rails4/rails5 options in config file
122
+ * Track more information about constant assignments
123
+ * Show progress indicator in interactive mode
124
+ * Handle simple conditional guards that use `return`
125
+ * Fix false positive for redirect_to in Rails 4 (Mário Areias)
126
+ * Avoid interpolating hashes/arrays on failed access
127
+
128
+ # 3.6.2
129
+
130
+ * Handle safe call operator in checks
131
+ * Better handling of `if` expressions in HAML rendering
132
+ * Remove `--rake` option
133
+ * Properly handle template names without `.html` or `.js`
134
+ * Set template file names during rendering for better errors
135
+ * Limit Slim dependency to before 3.0.8
136
+ * Catch YAML parsing errors in session settings check
137
+ * Avoid warning about SQLi with `to_s` in `exists?`
138
+ * Update RubyParser to 3.9.0
139
+ * Do not honor additional check paths in config by default
140
+ * Handle empty `if` expressions when finding return values
141
+ * Fix finding return value from empty `if`
142
+
143
+ # 3.6.1
144
+
145
+ * Fix error when using `--compare` (Sean Gransee)
146
+
147
+ # 3.6.0
148
+
149
+ * Avoid recursive Concerns
150
+ * Branch inside of `case` expressions
151
+ * Print command line option errors without modification
152
+ * Fix issue with nested interpolation inside SQL strings
153
+ * Ignore GraphQL tags inside ERB templates
154
+ * Add `--exit-on-error` (Michael Grosser)
155
+ * Only report CVE-2015-3227 when exact version is known
156
+ * Check targetless SQL calls outside of known models
157
+
158
+ # 3.5.0
159
+
160
+ * Allow `-t None`
161
+ * Fail on invalid checks specified by `-x` or `-t`
162
+ * Avoid warning about all, first, or last after Rails 4.0
163
+ * Avoid warning about models in SQLi
164
+ * Lower confidence of SQLi when maybe not on models
165
+ * Warn about SQLi even potentially on non-models
166
+ * Report check name in JSON and plain reports
167
+ * Treat templates without `.html` as HTML anyway
168
+ * Add `--ensure-latest` option (tamgrosser / Michael Grosser)
169
+ * Add `--no-summary` to hide summaries in HTML/text reports
170
+ * Handle `included` block in concerns
171
+ * Process concerns before controllers
172
+
173
+ # 3.4.1
174
+
175
+ * Show action help at start of interactive ignore
176
+ * Check CSRF setting in direct subclasses of `ActionController::Base` (Jason Yeo)
177
+ * Configurable engines path (Jason Yeo)
178
+ * Use Ruby version to turn off SymbolDoS check
179
+ * Pull Ruby version from `.ruby-version` or Gemfile
180
+ * Avoid warning about `where_values_hash` in SQLi
181
+ * Fix ignoring link interpolation not at beginning of string
182
+
183
+ # 3.4.0
184
+
185
+ * Add new `plain` report format
186
+ * Add option to prune ignore file with `-I`
187
+ * Improved Slim template support
188
+ * Show obsolete ignore entries in reports (Jonathan Cheatham)
189
+ * Support creating reports in non-existent paths
190
+ * Add `--no-exit-warn`
191
+
192
+ # 3.3.5
193
+
194
+ * Fix bug in reports when using --debug option
195
+
196
+ # 3.3.4
197
+
198
+ * Add generic warning for CVE-2016-6316
199
+ * Warn about dangerous use of `content_tag` with CVE-2016-6316
200
+ * Add warning for CVE-2016-6317
201
+ * Use Minitest
202
+
203
+ # 3.3.3
204
+
205
+ * Show path when no Rails app found (Neil Matatall)
206
+ * Index calls in view helpers
207
+ * Process inline template renders
208
+ * Avoid warning about hashes in link_to hrefs
209
+ * Add documentation for authentication category
210
+ * Ignore boolean methods in render paths
211
+ * Reduce open redirect duplicates
212
+ * Fix SymbolDoS error with unknown Rails version
213
+ * Sexp#value returns nil when there is no value
214
+ * Improve return value estimation
215
+
216
+ # 3.3.2
217
+
218
+ * Fix serious performance regression with global constant tracking
219
+
220
+ # 3.3.1
221
+
222
+ * Delay loading vendored gems and modifying load path
223
+ * Avoid warning about SQL injection with `quoted_primary_key`
224
+ * Support more safe `&.` operations
225
+ * Allow multile line regex in `validates_format_of` (Dmitrij Fedorenko)
226
+ * Only consider `if` branches in templates
227
+ * Avoid overwriting instance/class methods with same name (Tim Wade)
228
+ * Add `--force-scan` option (Neil Matatall)
229
+ * Improved line number accuracy in ERB templates (Patrick Toomey)
230
+
231
+ # 3.3.0
232
+
233
+ * Skip processing obviously false if branches (more broadly)
234
+ * Skip if branches with `Rails.env.test?`
235
+ * Return exit code `4` if no Rails application is detected
236
+ * Avoid warning about mass assignment with `params.slice`
237
+ * Avoid warning about `u` helper (Chad Dollins)
238
+ * Add optional check for secrets in source code
239
+ * Process `Array#first`
240
+ * Allow non-Hash arguments in `protect_from_forgery` (Jason Yeo)
241
+ * Avoid warning on `popen` with array
242
+ * Bundle all dependencies in gem
243
+ * Track constants globally
244
+ * Handle HAML `find_and_preserve` with a block
245
+ * [Code Climate engine] When possible, output to /dev/stdout (Gordon Diggs)
246
+ * [Code Climate engine] Remove nil entries from include_paths (Gordon Diggs)
247
+ * [Code Climate engine] Report end lines for issues (Gordon Diggs)
248
+
249
+ # 3.2.1
250
+
251
+ * Remove `multi_json` dependency from `bin/brakeman`
252
+
253
+ # 3.2.0
254
+
255
+ * Skip Symbol DoS check on Rails 5
256
+ * Only update ignore config file on changes
257
+ * Sort ignore config file
258
+ * Support calls using `&.` operator
259
+ * Update ruby_parser dependency to 3.8.1
260
+ * Remove `fastercsv` dependency
261
+ * Fix finding calls with `targets: nil`
262
+ * Remove `multi_json` dependency
263
+ * Handle CoffeeScript in HAML
264
+ * Avoid render warnings about params[:action]/params[:controller]
265
+ * Index calls in class bodies but outside methods
266
+
267
+ # 3.1.5
268
+
269
+ * Fix CodeClimate construction of --only-files (Will Fleming)
270
+ * Add check for denial of service via routes (CVE-2015-7581)
271
+ * Warn about RCE with `render params` (CVE-2016-0752)
272
+ * Add check for `strip_tags` XSS (CVE-2015-7579)
273
+ * Add check for `sanitize` XSS (CVE-2015-7578/80)
274
+ * Add check for `reject_if` proc bypass (CVE-2015-7577)
275
+ * Add check for mime-type denial of service (CVE-2016-0751)
276
+ * Add check for basic auth timing attack (CVE-2015-7576)
277
+ * Add initial Rails 5 support
278
+ * Check for implicit integer comparison in dynamic finders
279
+ * Support directories better in --only-files and --skip-files (Patrick Toomey)
280
+ * Avoid warning about `permit` in SQL
281
+ * Handle guards using `detect`
282
+ * Avoid warning on user input in comparisons
283
+ * Handle module names with self methods
284
+ * Add session manipulation documentation
285
+
286
+ # 3.1.4
287
+
288
+ * Emit brakeman's native fingerprints for Code Climate engine (Noah Davis)
289
+ * Ignore secrets.yml if in .gitignore
290
+ * Clean up Ruby warnings (Andy Waite)
291
+ * Increase test coverage for option parsing (Zander Mackie)
292
+ * Work around safe_yaml error
293
+
294
+ # 3.1.3
295
+
296
+ * Check for session secret in secrets.yml
297
+ * Respect `exit_on_warn` in config file
298
+ * Avoid warning on `without_protection: true` with hash literals
299
+ * Make sure before_filter call with block is still a call
300
+ * CallIndex improvements
301
+ * Restore minimum Highline version (Kevin Glowacz)
302
+ * Add Code Climate output format (Ashley Baldwin-Hunter/Devon Blandin/John Pignata/Michael Bernstein)
303
+ * Iteratively replace values
304
+ * Output nil instead of false for user_input in JSON
305
+ * Depend on safe_yaml 1.0 or later
306
+ * Test coverage improvements for Brakema module (Bethany Rentz)
307
+
308
+ # 3.1.2
309
+
310
+ * Treat `current_user` like a model
311
+ * Set user input value for inline renders
312
+ * Avoid warning on inline renders with safe content types
313
+ * Handle empty interpolation in HAML filters
314
+ * Ignore filters that are not method names
315
+ * Avoid warning about model find/find_by* in hrefs
316
+ * Use SafeYAML to load configuration files
317
+ * Warn on SQL query keys, not values in hashes
318
+ * Allow inspection of recursive Sexps
319
+ * Add line numbers to class-level warnings
320
+ * Handle `private def ...`
321
+ * Catch divide-by-zero in alias processing
322
+ * Reduce string allocations in Warning#initialize
323
+ * Sortable tables in HTML report (David Lanner)
324
+ * Search for config file relative to application root
325
+
326
+ # 3.1.1
327
+
328
+ * Add optional check for use of MD5 and SHA1
329
+ * Avoid warning when linking to decorated models
330
+ * Add check for user input in session keys
331
+ * Fix chained assignment
332
+ * Treat a.try(&:b) like a.b()
333
+ * Consider j/escape_javascript safe inside HAML JavaScript blocks
334
+ * Better HAML processing of find_and_preserve calls
335
+ * Add more Arel methods to be ignored in SQL
336
+ * Fix absolute paths for Windows (Cody Frederick)
337
+ * Support newer terminal-table releases
338
+ * Allow searching call index methods by regex (Alex Ianus)
339
+
340
+ # 3.1.0
341
+
342
+ * Add support for gems.rb/gems.locked
343
+ * Update render path information in JSON reports
344
+ * Remove renaming of several Sexp nodes
345
+ * Convert YAML config keys to symbols (Karl Glaser)
346
+ * Use railties version if rails gem is missing (Lucas Mazza)
347
+ * Warn about unverified SSL mode in Net::HTTP.start
348
+ * Add Model, Controller, Template, Config classes internally
349
+ * Report file being parsed in debug output
350
+ * Update dependencies to Ruby 1.8 incompatible versions
351
+ * Treat Array.new and Hash.new as arrays/hashes
352
+ * Fix handling of string concatenation with existing string
353
+ * Treat html_safe like raw()
354
+ * Fix low confidence XSS warning code
355
+ * Avoid warning on path creation methods in link_to
356
+ * Expand safe methods to match methods with targets
357
+ * Avoid duplicate eval() warnings
358
+
359
+ # 3.0.5
360
+
361
+ * Fix check for CVE-2015-3227
362
+
363
+ # 3.0.4
364
+
365
+ * Add check for CVE-2015-3226 (XSS via JSON keys)
366
+ * Add check for CVE-2015-3227 (XML DoS)
367
+ * Treat `<%==` as unescaped output
368
+ * Update `ruby_parser` dependency to 3.7.0
369
+
370
+ # 3.0.3
371
+
372
+ * Ignore more Arel methods in SQL
373
+ * Warn about protect_from_forgery without exceptions (Neil Matatall)
374
+ * Handle lambdas as filters
375
+ * Ignore quoted_table_name in SQL (Gabriel Sobrinho)
376
+ * Warn about RCE and file access with `open`
377
+ * Handle array include? guard conditionals
378
+ * Do not ignore targets of `to_s` in SQL
379
+ * Add Rake task to exit with error code on warnings (masarakki)
380
+
381
+ # 3.0.2
382
+
383
+ * Alias process methods called in class scope on models
384
+ * Treat primary_key, table_name_prefix, table_name_suffix as safe in SQL
385
+ * Fix using --compare and --add-checks-path together
386
+ * Avoid warning about mass assignment with string literals
387
+ * Only report original regex DoS locations
388
+ * Improve render path information implementation
389
+ * Report correct file for simple_format usage CVE warning
390
+ * Remove URI.escape from HTML reports with GitHub repos
391
+ * Update ruby_parser to ~> 3.6.2
392
+ * Remove formatting newlines in HAML template output
393
+ * Ignore case value in XSS checks
394
+ * Fix CSV output when there are no warnings
395
+ * Handle processing of explicitly shadowed block arguments
396
+
397
+ # 3.0.1
398
+
399
+ * Avoid protect_from_forgery warning unless ApplicationController inherits from ActionController::Base
400
+ * Properly format command interpolation (again)
401
+ * Remove Slim dependency (Casey West)
402
+ * Allow for controllers/models/templates in directories under `app/` (Neal Harris)
403
+ * Add `--add-libs-path` for additional libraries (Patrick Toomey)
404
+ * Properly process libraries (Patrick Toomey)
405
+
406
+ # 3.0.0
407
+
408
+ * Add check for CVE-2014-7829
409
+ * Add check for cross-site scripting via inline renders
410
+ * Fix formatting of command interpolation
411
+ * Local variables are no longer formatted as `(local var)`
412
+ * Actually skip skipped before filters
413
+ * `--exit-on-warn --compare` only returns error code on new warnings (Jeff Yip)
414
+ * Fix parsing of `<%==` in ERB
415
+ * Sort warnings by fingerprint in JSON report (Jeff Yip)
416
+ * Handle symmetric multiple assignment
417
+ * Do not branch for self attribute assignment `x = x.y`
418
+ * Fix CVE for CVE-2011-2932
419
+ * Remove "fake filters" from warning fingerpints
420
+ * Index calls in `lib/` files
421
+ * Move Symbol DoS to optional checks
422
+ * CVEs report correct line and file name (Gemfile/Gemfile.lock) (Rob Fletcher)
423
+ * Change `--separate-models` to be the default
424
+
425
+ # 2.6.3
426
+
427
+ * Whitelist `exists` arel method from SQL injection check
428
+ * Avoid warning about Symbol DoS on safe parameters as method targets
429
+ * Fix stack overflow in ProcessHelper#class_name
430
+ * Add optional check for unscoped find queries (Ben Toews)
431
+ * Add framework for optional checks
432
+ * Fix stack overflow for cycles in class ancestors (Jeff Rafter)
433
+
434
+ # 2.6.2
435
+
436
+ * Add check for CVE-2014-3415
437
+ * Avoid warning about symbolizing safe parameters
438
+ * Update ruby2ruby dependency to 2.1.1
439
+ * Expand app path in one place instead of all over (Jeff Rafter)
440
+ * Add `--add-checks-path` option for external checks (Clint Gibler)
441
+ * Fix SQL injection detection in deep nested string building
442
+ * Add `-4` option to force Rails 4 mode
443
+ * Check entire call for `send`
444
+ * Check for .gitignore of secrets in subdirectories
445
+ * Fix block statement endings in Erubis
446
+ * Fix undefined variable in controller processing error (Jason Barnabe)
447
+
448
+ # 2.6.1
449
+
450
+ * Add check for CVE-2014-3482 and CVE-2014-3483
451
+ * Add support for keyword arguments in blocks
452
+ * Remove unused warning codes (Bill Fischer)
453
+
454
+ # 2.6.0
455
+
456
+ * Fix detection of `:host` setting in redirects with chained calls
457
+ * Add check for CVE-2014-0130
458
+ * Add `find_by`/`find_by!` to SQLi check for Rails 4
459
+ * Parse most files upfront instead of on demand
460
+ * Do not branch values for `+=`
461
+ * Update to use RubyParser 3.5.0 (Patrick Toomey)
462
+ * Improve default route detection in Rails 3/4 (Jeff Jarmoc)
463
+ * Handle controllers and models split across files (Patrick Toomey)
464
+ * Fix handling of `protected_attributes` gem in Rails 4 (Geoffrey Hichborn)
465
+ * Ignore more model methods in redirects
466
+ * Fix CheckRender with nested render calls
467
+
468
+ # 2.5.0
469
+
470
+ * Add support for RailsLTS 2.3.18.7 and 2.3.18.8
471
+ * Add support for Rails 4 `before_actions` and friends
472
+ * Move SQLi CVE checks to `CheckSQLCVEs`
473
+ * Check for protected_attributes gem
474
+ * Fix SQLi detection in chain calls in scopes
475
+ * Add GitHub-flavored Markdown output format (Greg Ose)
476
+ * Fix false positives when sanitize() is used in SQL (Jeff Yip)
477
+ * Add String#intern and Hash#symbolize_keys DoS check (Jan Rusnacko)
478
+ * Check all arguments in Model.select for SQLi
479
+ * Fix false positive when :host is specified in redirect
480
+ * Handle more non-literals in routes
481
+ * Add check for regex denial of service (Ben Toews)
482
+
483
+ # 2.4.3
484
+
485
+ No changes. 2.4.2 gem release was unsigned, 2.4.3 is signed.
486
+
487
+ # 2.4.2
488
+
489
+ * Remove `rescue Exception`
490
+ * Fix duplicate warnings about sanitize CVE
491
+ * Reuse duplicate call location information
492
+ * Only track original template output locations
493
+ * Skip identically rendered templates
494
+ * Fix HAML template processing
495
+
496
+ # 2.4.1
497
+
498
+ * Add check for CVE-2014-0082
499
+ * Add check for CVE-2014-0081, replaces CVE-2013-6415
500
+ * Add check for CVE-2014-0080
501
+
502
+ # 2.4.0
503
+
504
+ * Detect Rails LTS versions
505
+ * Reduce false positives for SQL injection in string building
506
+ * More accurate user input marking for SQL injection warnings
507
+ * Detect SQL injection in `delete_all`/`destroy_all`
508
+ * Detect SQL injection raw SQL queries using `connection`
509
+ * Parse exact versions from Gemfile.lock for all gems
510
+ * Ignore generators
511
+ * Update to RubyParser 3.4.0
512
+ * Fix false positives when SQL methods are not called on AR models (Aaron Bedra)
513
+ * Add check for uses of OpenSSL::SSL::VERIFY_NONE (Aaron Bedra)
514
+ * No longer raise exceptions if a class name cannot be determined
515
+ * Fingerprint attribute warnings individually (Case Taintor)
516
+
517
+ # 2.3.1
518
+
519
+ * Fix check for CVE-2013-4491 (i18n XSS) to detect workaround
520
+ * Fix link for CVE-2013-6415 (number_to_currency)
521
+
522
+ # 2.3.0
523
+
524
+ * Add check for Parameters#permit!
525
+ * Add check for CVE-2013-4491 (i18n XSS)
526
+ * Add check for CVE-2013-6414 (header DoS)
527
+ * Add check for CVE-2013-6415 (number_to_currency)
528
+ * Add check for CVE-2013-6416 (simple_format XSS)
529
+ * Add check for CVE-2013-6417 (query generation)
530
+ * Fix typos in reflection and translate bug messages
531
+ * Collapse send/try calls
532
+ * Fix Slim XSS false positives (Noah Davis)
533
+ * Whitelist `Model#create` for redirects
534
+ * Fix scoping issues with instance variables and blocks
535
+
536
+ # 2.2.0
537
+
538
+ * Reduce command injection false positives
539
+ * Use Rails version from Gemfile if it is available
540
+ * Only add routes with actual names
541
+ * Ignore redirects to models using friendly_id (AJ Ostrow)
542
+ * Support scanning Rails engines (Geoffrey Hichborn)
543
+ * Add check for detailed exceptions in production
544
+
545
+ # 2.1.2
546
+
547
+ * Do not attempt to load custom Haml filters
548
+ * Do not warn about `to_json` XSS in Rails 4
549
+ * Add --table-width option to set width of text reports (ssendev)
550
+ * Remove fuzzy matching on dangerous attr_accessible values
551
+
552
+ # 2.1.1
553
+
554
+ * New warning code for dangerous attributes in attr_accessible
555
+ * Do not warn on attr_accessible using roles
556
+ * More accurate results for model attribute warnings
557
+ * Use exit code zero with `-z` if all warnings ignored
558
+ * Respect ignored warnings in rescans
559
+ * Ignore dynamic controller names in routes
560
+ * Fix infinite loop when run as rake task (Matthew Shanley)
561
+ * Respect ignored warnings in tabs format reports
562
+
563
+ # 2.1.0
564
+
565
+ * Support non-native line endings in Gemfile.lock (Paul Deardorff)
566
+ * Support for ignoring warnings
567
+ * Check for dangerous model attributes defined in attr_accessible (Paul Deardorff)
568
+ * Update to ruby_parser 3.2.2
569
+ * Add brakeman-min gemspec
570
+ * Load gem dependencies on-demand
571
+ * Output JSON diff to file if -o option is used
572
+ * Add check for authenticate_or_request_with_http_basic
573
+ * Refactor of SQL injection check code (Bart ten Brinke)
574
+ * Fix detection of duplicate XSS warnings
575
+ * Refactor reports into separate classes
576
+ * Allow use of Slim 2.x (Ian Zabel)
577
+ * Return error exit code when application path is not found
578
+ * Add `--branch-limit` option, limit to 5 by default
579
+ * Add more methods to check for command injection
580
+ * Fix output format detection to be more strict again
581
+ * Allow empty Brakeman configuration file
582
+
583
+ # 2.0.0
584
+
585
+ * Add `--only-files` option to specify files/paths to scan (Ian Ehlert)
586
+ * Add Marshal/CSV deserialization check
587
+ * Combine deserialization checks into single check
588
+ * Avoid duplicate "Dangerous Send" and "Unsafe Reflection" warnings
589
+ * Avoid duplicate results for Symbol DoS check
590
+ * Medium confidence for mass assignment to attr_protected models
591
+ * Remove "timestamp" key from JSON reports
592
+ * Remove deprecated config file locations
593
+ * Relative paths are used by default in JSON reports
594
+ * `--absolute-paths` replaces `--relative-paths`
595
+ * Only treat classes with names containing `Controller` like controllers
596
+ * Better handling of classes nested inside controllers
597
+ * Better handling of controller classes nested in classes/modules
598
+ * Handle `->` lambdas with no arguments
599
+ * Handle explicit block argument destructuring
600
+ * Skip Rails config options that are real objects
601
+ * Detect Rails 3 JSON escape config option
602
+ * Much better tracking of warning file names
603
+ * Fix errors when using `--separate-models` (Noah Davis)
604
+ * Fix fingerprint generation to actually use the file path
605
+ * Fix text report console output in JRuby
606
+ * Fix false positives on `Model#id`
607
+ * Fix false positives on `params.to_json`
608
+ * Fix model path guesses to use "models/" instead of "controllers/"
609
+ * Clean up SQL CVE warning messages
610
+ * Use exceptions instead of abort in brakeman lib
611
+ * Update to Ruby2Ruby 2.0.5
612
+
613
+ # 1.9.5
614
+
615
+ * Add check for unsafe symbol creation
616
+ * Do not warn on mass assignment with `slice`/`only`
617
+ * Do not warn on session secret if in `.gitignore`
618
+ * Fix scoping for blocks and block arguments
619
+ * Fix error when modifying blocks in templates
620
+ * Fix session secret check for Rails 4
621
+ * Fix crash on `before_filter` outside controller
622
+ * Fix `Sexp` hash cache invalidation
623
+ * Respect `quiet` option in configuration file
624
+ * Convert assignment to simple `if` expressions to `or`
625
+ * More fixes for assignments inside branches
626
+ * Pin to ruby2ruby version 2.0.3
627
+
628
+ # 1.9.4
629
+
630
+ * Add check for CVE-2013-1854
631
+ * Add check for CVE-2013-1855
632
+ * Add check for CVE-2013-1856
633
+ * Add check for CVE-2013-1857
634
+ * Fix `--compare` to work with older versions
635
+ * Add "no-referrer' to HTML report links
636
+ * Don't warn when invoking `send` on user input
637
+ * Slightly faster cloning of Sexps
638
+ * Detect another way to add `strong_parameters`
639
+
640
+ # 1.9.3
641
+
642
+ * Add render path to JSON report
643
+ * Add warning fingerprints
644
+ * Add check for unsafe reflection (Gabriel Quadros)
645
+ * Add check for skipping authentication methods with blacklist
646
+ * Add support for Slim templates
647
+ * Remove empty tables from reports (Owen Ben Davies)
648
+ * Handle `prepend/append_before_filter`
649
+ * Performance improvements when handling branches
650
+ * Fix processing of `production.rb`
651
+ * Fix version check for Ruby 2.0
652
+ * Expand HAML dependency to include 4.0
653
+ * Scroll errors into view when expanding in HTML report
654
+
655
+ # 1.9.2
656
+
657
+ * Add check for CVE-2013-0269
658
+ * Add check for CVE-2013-0276
659
+ * Add check for CVE-2013-0277
660
+ * Add check for CVE-2013-0333
661
+ * Check for more send-like methods
662
+ * Check for more SQL injection locations
663
+ * Check for more dangerous YAML methods
664
+ * Support MultiJSON 1.2 for Rails 3.0 and 3.1
665
+
666
+ # 1.9.1
667
+
668
+ * Update to RubyParser 3.1.1 (neersighted)
669
+ * Remove ActiveSupport dependency (Neil Matatall)
670
+ * Do not warn on arrays passed to `link_to` (Neil Matatall)
671
+ * Warn on secret tokens
672
+ * Warn on more mass assignment methods
673
+ * Add check for CVE-2012-5664
674
+ * Add check for CVE-2013-0155
675
+ * Add check for CVE-2013-0156
676
+ * Add check for unsafe `YAML.load`
677
+
678
+ # 1.9.0
679
+
680
+ * Update to RubyParser 3
681
+ * Ignore route information by default
682
+ * Support `strong_parameters`
683
+ * Support newer `validates :format` call
684
+ * Add scan time to reports
685
+ * Add Brakeman version to reports
686
+ * Fix `CheckExecute` to warn on all string interpolation
687
+ * Fix false positive on `to_sql` calls
688
+ * Don't mangle whitespace in JSON code formatting
689
+ * Add AppTree as facade for filesystem (brynary)
690
+ * Add link for translate vulnerability warning (grosser)
691
+ * Rename LICENSE to MIT-LICENSE, remove from README (grosser)
692
+ * Add Rakefile to run tests (grosser)
693
+ * Better default config file locations (grosser)
694
+ * Reduce Sexp creation
695
+ * Handle empty model files
696
+ * Remove "find by regex" feature from `CallIndex`
697
+
698
+ # 1.8.3
699
+
700
+ * Use `multi_json` gem for better harmony
701
+ * Performance improvement for call indexing
702
+ * Fix issue with processing HAML files
703
+ * Handle pre-release versions when processing `Gemfile.lock`
704
+ * Only check first argument of `redirect_to`
705
+ * Fix false positives from `Model.arel_table` accesses
706
+ * Fix false positives on redirects to models decorated with Draper gem
707
+ * Fix false positive on redirect to model association
708
+ * Fix false positive on `YAML.load`
709
+ * Fix false positive XSS on any `to_i` output
710
+ * Fix error on Rails 2 name routes with no args
711
+ * Fix error in rescan of mixins with symbols in method name
712
+ * Do not rescan non-Ruby files in config/
713
+
714
+ # 1.8.2
715
+
716
+ * Fixed rescanning problems caused by 1.8.0 changes
717
+ * Fix scope calls with single argument
718
+ * Report specific model name in rendered collections
719
+ * Handle overwritten JSON escape settings
720
+ * Much improved test coverage
721
+ * Add CHANGES to gemspec
722
+
723
+ # 1.8.1
724
+
725
+ * Recover from errors in output formatting
726
+ * Fix false positive in redirect_to (Neil Matatall)
727
+ * Fix problems with removal of `Sexp#method_missing`
728
+ * Fix array indexing in alias processing
729
+ * Fix old mail_to vulnerability check
730
+ * Fix rescans when only controller action changes
731
+ * Allow comparison of versions with unequal lengths
732
+ * Handle super calls with blocks
733
+ * Respect `-q` flag for "Rails 3 detected" message
734
+
735
+ # 1.8.0
736
+
737
+ * Support relative paths in reports (fsword)
738
+ * Allow Brakeman to be run without tty (fsword)
739
+ * Fix exit code with `--compare` (fsword)
740
+ * Fix `--rake` option (Deepak Kumar)
741
+ * Add high confidence warnings for `to_json` XSS (Neil Matatall)
742
+ * Fix `redirect_to` false negative
743
+ * Fix duplicate warnings with `raw` calls
744
+ * Fix shadowing of rendered partials
745
+ * Add "render chain" to HTML reports
746
+ * Add check for XSS in `content_tag`
747
+ * Add full backtrace for errors in debug mode
748
+ * Treat model attributes in `or` expressions as immediate values
749
+ * Switch to method access for Sexp nodes
750
+
751
+ # 1.7.1
752
+
753
+ * Add check for CVE-2012-3463
754
+ * Add check for CVE-2012-3464
755
+ * Add check for CVE-2012-3465
756
+ * Add charset to HTML report (hooopo)
757
+ * Report XSS in select() for Rails 2
758
+
759
+ # 1.7.0
760
+
761
+ * Add check for CVE-2012-3424
762
+ * Link report types to descriptions on website
763
+ * Report errors raised while running check
764
+ * Improve processing of Rails 3 routes
765
+ * Fix "empty char-class" error
766
+ * Improve file access check
767
+ * Avoid warning on non-ActiveModel models
768
+ * Speed improvements by stripping down SexpProcessor
769
+ * Fix how `params[:x] ||=` is handled
770
+ * Treat user input in `or` expressions as immediate values
771
+ * Fix processing of negative array indexes
772
+ * Add line breaks to truncated table rows
773
+
774
+ # 1.6.2
775
+
776
+ * Add checks for CVE-2012-2660, CVE-2012-2661, CVE-2012-2694, CVE-2012-2695 (Dave Worth)
777
+ * Avoid warning when redirecting to a model instance
778
+ * Add `request.parameters` as a parameters hash
779
+ * Raise confidence level for model attributes in redirects
780
+ * Return non-zero exit code when missing dependencies
781
+ * Fix `before_filter :except` logic
782
+ * Only accept symbol literals as before_filter names
783
+ * Cache before_filter lookups
784
+ * Turn off quiet mode by default for `--compare`
785
+
786
+ # 1.6.1
787
+
788
+ * Major rewrite of CheckSQL
789
+ * Fix rescanning of deleted templates
790
+ * Process actions mixed into controllers
791
+ * Handle `render :template => ...`
792
+ * Check for inherited attr_accessible (Neil Matatall)
793
+ * Fix highlighting of HTML escaped values in HTML report
794
+ * Report line number of highlighted value, if available
795
+
796
+ # 1.6.0
797
+
798
+ * Remove the Ruport dependency (Neil Matatall)
799
+ * Add more informational JSON output (Neil Matatall)
800
+ * Add comparison to previous JSON report (Neil Matatall)
801
+ * Add highlighting of dangerous values in HTML/text reports
802
+ * Model#update_attribute should not raise mass assignment warning (Dave Worth)
803
+ * Don't check `find_by_*` method for SQL injection
804
+ * Fix duplicate reporting of mass assignment and SQL injection
805
+ * Fix rescanning of deleted files
806
+ * Properly check for rails_xss in Gemfile
807
+
808
+ # 1.5.3
809
+
810
+ * Add check for user input in Object#send (Neil Matatall)
811
+ * Handle render :layout in views
812
+ * Support output to multiple formats (Nick Green)
813
+ * Prevent infinite loops in mutually recursive templates
814
+ * Only check eval arguments for user input, not targets
815
+ * Search subdirectories for models
816
+ * Set values in request hashes and propagate to views
817
+ * Add rake task file to gemspec (Anton Ageev)
818
+ * Filter rescanning of templates (Neil Matatall)
819
+ * Improve handling of modules and nesting
820
+ * Test for zero errors in test reports
821
+
822
+ # 1.5.2
823
+
824
+ * Fix link_to checks for Rails 2.0 and 2.3
825
+ * Fix rescanning of lib files (Neil Matatall)
826
+ * Output stack trace on interrupt when debugging
827
+ * Ignore user input in if statement conditions
828
+ * Fix --skip-files option
829
+ * Only warn on user input in render paths
830
+ * Fix handling of views when using rails_xss
831
+ * Revert to ruby_parser 2.3.1 for Ruby 1.8 parsing
832
+
833
+ # 1.5.1
834
+
835
+ * Fix detection of global mass assignment setting
836
+ * Fix partial rendering in Rails 3
837
+ * Show backtrace when interrupt received (Ruby 1.9 only)
838
+ * More debug output
839
+ * Remove duplicate method in Brakeman::Rails2XSSErubis
840
+ * Add tracking of module and class to Brakeman::BaseProcessor
841
+ * Report module when using Brakeman::FindCall
842
+
843
+ # 1.5.0
844
+
845
+ * Add version check for SafeBuffer vulnerability
846
+ * Add check for select vulnerability in Rails 3
847
+ * select() is no longer considered safe in Rails 2
848
+ * Add check for skipping CSRF protection with a blacklist
849
+ * Add JSON report format
850
+ * Model#id should not be considered XSS
851
+ * Standardize methods to check for SQL injection
852
+ * Fix Rails 2 route parsing issue with nested routes
853
+
854
+ # 1.4.0
855
+
856
+ * Add check for user input in link_to href parameter
857
+ * Match ERB processing to rails_xss plugin when plugin used
858
+ * Add Brakeman::Report#to_json, Brakeman::Warning#to_json
859
+ * Warnings below minimum confidence are dropped completely
860
+ * Brakeman.run always returns a Tracker
861
+
862
+ # 1.3.0
863
+
864
+ * Add file paths to HTML report
865
+ * Add caching of filters
866
+ * Add --skip-files option
867
+ * Add support for attr_protected
868
+ * Add detection of request.env as user input
869
+ * Descriptions of checks in -k output
870
+ * Improved processing of named scopes
871
+ * Check for mass assignment in ActiveRecord::Associations::AssociationCollection#build
872
+ * Better variable substitution
873
+ * Table output option for rescan reports
874
+
875
+ # 1.2.2
876
+
877
+ * --no-progress works again
878
+ * Make CheckLinkTo a separate check
879
+ * Don't fail on unknown options to resource(s)
880
+ * Handle empty resource(s) blocks
881
+ * Add RescanReport#existing_warnings
882
+
883
+ ## 1.2.1
884
+
885
+ * Remove link_to warning for Rails 3.x or when using rails_xss
886
+ * Don't warn if first argument to link_to is escaped
887
+ * Detect usage of attr_accessible with no arguments
888
+ * Fix error when rendering a partial from a view but not through a controller
889
+ * Fix some issues with rails_xss, CheckCrossSiteScripting, and CheckTranslateBug
890
+ * Simplify Brakeman Rake task
891
+ * Avoid modifying $VERBOSE
892
+ * Add Brakeman::RescanReport#to_s
893
+ * Add Brakeman::Warning#to_s
894
+
895
+ ## 1.2.0
896
+
897
+ * Speed improvements for CheckExecute and CheckRender
898
+ * Check named_scope() and scope() for SQL injection
899
+ * Add --rake option to create rake task to run Brakeman
900
+ * Add experimental support for rescanning a subset of files
901
+ * Add --summary option to only output summary
902
+ * Fix a problem with Rails 3 routes
903
+
904
+ ## 1.1.0
905
+
906
+ * Relax required versions for dependencies
907
+ * Performance improvements for source processing
908
+ * Better progress reporting
909
+ * Handle basic operators like << + - * /
910
+ * Rescue more errors to prevent complete crashes
911
+ * Compatibility with newer Haml versions
912
+ * Fix some warnings
913
+
914
+ ## 1.0.0
915
+
916
+ * Better handling of assignments inside ifs
917
+ * Check more expressions for SQL injection
918
+ * Use latest ruby_parser for better 1.9 syntax support
919
+ * Better behavior for Brakeman as a library
920
+
921
+ ## 1.0.0rc1
922
+
923
+ * Brakeman can now be used as a library
924
+ * Faster call search
925
+ * Add option to return error code if warnings are found (tw-ngreen)
926
+ * Allow truncated messages to be expanded in HTML
927
+ * Fix summary when using warning thresholds
928
+ * Better support for Rails 3 routes
929
+ * Reduce SQL injection duplicate warnings
930
+ * Lower confidence on mass assignment with no user input
931
+ * Ignore mass assignment using all literal arguments
932
+ * Keep expanded context in view with HTML output
933
+
934
+ ## 0.9.2
935
+
936
+ * Fix Rails 3 configuration parsing
937
+ * Add t() helper to check for translate XSS bug
938
+
939
+ ## 0.9.1
940
+
941
+ * Add warning for translator helper XSS vulnerability
942
+
943
+ ## 0.9.0
944
+
945
+ * Process Rails 3 configuration files
946
+ * Fix CSV output
947
+ * Check for config.active_record.whitelist_attributes = true
948
+ * Always produce a warning for without_protection => true
949
+
950
+ ## 0.8.4
951
+
952
+ * Option for separate attr_accessible warnings
953
+ * Option to set CSS file for HTML output
954
+ * Add file names for version-specific warnings
955
+ * Add line number for default routes in a controller
956
+ * Fix hash_insert()
957
+ * Remove use of Queue from threaded checks
958
+
959
+ ## 0.8.3
960
+
961
+ * Respect -w flag in .tabs format (tw-ngreen)
962
+ * Escape HTML output of error messages
963
+ * Add --skip-libs option
964
+
965
+ ## 0.8.2
966
+
967
+ * Run checks in parallel threads by default
968
+ * Fix compatibility with ruby_parser 2.3.1
969
+
970
+ ## 0.8.1
971
+
972
+ * Add option to assume all controller methods are actions
973
+ * Recover from errors when parsing routes
974
+
975
+ ## 0.8.0
976
+
977
+ * Add check for mass assignment using without_protection
978
+ * Add check for password in http_basic_authenticate_with
979
+ * Warn on user input in hash argument with mass assignment
980
+ * auto_link is now considered safe for Rails >= 3.0.6
981
+ * Output detected Rails version in report
982
+ * Keep track of methods called in class definition
983
+ * Add ruby_parser hack for Ruby 1.9 hash syntax
984
+ * Add a few Rails 3.1 tests
985
+
986
+ ## 0.7.2
987
+
988
+ * Fix handling of params and cookies with nested access
989
+ * Add CVEs for checks added in 0.7.0
990
+
991
+ ## 0.7.1
992
+
993
+ * Require BaseProcessor for GemProcessor
994
+
995
+ ## 0.7.0
996
+
997
+ * Allow local variable as a class name
998
+ * Add checks for vulnerabilities fixed in Rails 2.3.14 and 3.0.10
999
+ * Check for default routes in Rails 3 apps
1000
+ * Look in Gemfile or Gemfile.lock for Rails version
1001
+
1002
+ ## 0.6.1
1003
+
1004
+ * Fix XSS check for cookies as parameters in output
1005
+ * Don't bother calling super in CheckSessionSettings
1006
+ * Add escape_once as a safe method
1007
+ * Accept '\Z' or '\z' in model validations
1008
+
1009
+ ## 0.6.0
1010
+
1011
+ * Tests are in place and fully functional
1012
+ * Hide errors by default in HTML output
1013
+ * Warn if routes.rb cannot be found
1014
+ * Narrow methods assumed to be file access
1015
+ * Increase confidence for methods known to not escape output
1016
+ * Fixes to output processing for Erubis
1017
+ * Fixes for Rails 3 XSS checks
1018
+ * Fixes to line numbers with Erubis
1019
+ * Fixes to escaped output scanning
1020
+ * Update CSRF CVE-2011-0447 message to be less assertive
1021
+
1022
+ ## 0.5.2
1023
+
1024
+ * Output report file name when finished
1025
+ * Add initial tests for Rails 2.x
1026
+ * Fix ERB line numbers when using Ruby 1.9
1027
+
1028
+ ## 0.5.1
1029
+
1030
+ * Fix issue with 'has_one' => in routes
1031
+
1032
+ ## 0.5.0
1033
+
1034
+ * Add support for routes like get 'x/y', :to => 'ctrlr#whatever'
1035
+ * Allow empty blocks in Rails 3 routes
1036
+ * Check initializer for session settings
1037
+ * Add line numbers to session setting warnings
1038
+ * Add --checks option to list checks
1039
+
1040
+ ## 0.4.1
1041
+
1042
+ * Fix reported line numbers when using new Erubis parser
1043
+ (Mostly affects Rails 3 apps)
1044
+
1045
+ ## 0.4.0
1046
+
1047
+ * Handle Rails XSS protection properly
1048
+ * More detection options for rails_xss
1049
+ * Add --escape-html option
1050
+
1051
+ ## 0.3.2
1052
+
1053
+ * Autodetect Rails 3 applications
1054
+ * Turn on auto-escaping for Rails 3 apps
1055
+ * Check Model.create() for mass assignment
1056
+
1057
+ ## 0.3.1
1058
+
1059
+ * Always output a line number in tabbed output format
1060
+ * Restrict characters in category name in tabbed output format to
1061
+ word characters and spaces, for Hudson/Jenkins plugin
1062
+
1063
+ ## 0.3.0
1064
+
1065
+ * Check for SQL injection in calls using constantize()
1066
+ * Check for SQL injection in calls to count_by_sql()
1067
+
1068
+ ## 0.2.2
1069
+
1070
+ * Fix version_between? when no Rails version is specified
1071
+
1072
+ ## 0.2.1
1073
+
1074
+ * Add code snippet to tab output messages
1075
+
1076
+ ## 0.2.0
1077
+
1078
+ * Add check for mail_to vulnerability - CVE-2011-0446
1079
+ * Add check for CSRF weakness - CVE-2011-0447
1080
+
1081
+ ## 0.1.1
1082
+
1083
+ * Be more permissive with ActiveSupport version
1084
+
1085
+ ## 0.1.0
1086
+
1087
+ * Check link_to for XSS (because arguments are not escaped)
1088
+ * Process layouts better (although not perfectly yet)
1089
+ * Load custom Haml filters if they are in lib/
1090
+ * Tab separated output via .tabs output extension
1091
+ * Switch to normal versioning scheme