CHANGES 24.3 KB
Newer Older
J
Justin Collins 已提交
1 2 3 4
# 3.0.5

* Fix check for CVE-2015-3227

J
Justin Collins 已提交
5 6 7 8 9 10 11
# 3.0.4

* Add check for CVE-2015-3226 (XSS via JSON keys)
* Add check for CVE-2015-3227 (XML DoS)
* Treat `<%==` as unescaped output
* Update `ruby_parser` dependency to 3.7.0

J
Justin Collins 已提交
12
# 3.0.3
J
Justin 已提交
13

J
Justin Collins 已提交
14 15 16
* Ignore more Arel methods in SQL
* Warn about protect_from_forgery without exceptions (Neil Matatall)
* Handle lambdas as filters
J
Justin 已提交
17 18 19 20
* Ignore quoted_table_name in SQL (Gabriel Sobrinho)
* Warn about RCE and file access with `open`
* Handle array include? guard conditionals
* Do not ignore targets of `to_s` in SQL
J
Justin Collins 已提交
21
* Add Rake task to exit with error code on warnings (masarakki)
J
Justin 已提交
22

J
Justin Collins 已提交
23
# 3.0.2
J
Justin Collins 已提交
24

J
Justin Collins 已提交
25 26 27
* Alias process methods called in class scope on models
* Treat primary_key, table_name_prefix, table_name_suffix as safe in SQL
* Fix using --compare and --add-checks-path together
J
Justin Collins 已提交
28 29 30 31 32 33 34 35 36 37 38
* Avoid warning about mass assignment with string literals
* Only report original regex DoS locations
* Improve render path information implementation
* Report correct file for simple_format usage CVE warning
* Remove URI.escape from HTML reports with GitHub repos
* Update ruby_parser to ~> 3.6.2
* Remove formatting newlines in HAML template output
* Ignore case value in XSS checks
* Fix CSV output when there are no warnings
* Handle processing of explictly shadowed block arguments

J
Justin Collins 已提交
39 40 41 42 43 44 45 46 47
# 3.0.1

* Avoid protect_from_forgery warning unless ApplicationController inherits from ActionController::Base
* Properly format command interpolation (again)
* Remove Slim dependency (Casey West)
* Allow for controllers/models/templates in directories under `app/` (Neal Harris)
* Add `--add-libs-path` for additional libraries (Patrick Toomey)
* Properly process libraries (Patrick Toomey)

J
Justin Collins 已提交
48
# 3.0.0
J
Justin Collins 已提交
49

J
Justin Collins 已提交
50 51 52
* Add check for CVE-2014-7829
* Add check for cross site scripting via inline renders
* Fix formatting of command interpolation
J
Justin Collins 已提交
53 54
* Local variables are no longer formatted as `(local var)`
* Actually skip skipped before filters
J
Justin Collins 已提交
55
* `--exit-on-warn --compare` only returns error code on new warnings (Jeff Yip)
J
Justin Collins 已提交
56 57 58 59 60 61 62 63
* Fix parsing of `<%==` in ERB
* Sort warnings by fingerprint in JSON report (Jeff Yip)
* Handle symmetric multiple assignment
* Do not branch for self attribute assignment `x = x.y`
* Fix CVE for CVE-2011-2932
* Remove "fake filters" from warning fingerpints
* Index calls in `lib/` files
* Move Symbol DoS to optional checks
J
Justin Collins 已提交
64
* CVEs report correct line and file name (Gemfile/Gemfile.lock) (Rob Fletcher)
J
Justin Collins 已提交
65 66
* Change `--separate-models` to be the default

J
Justin Collins 已提交
67
# 2.6.3
J
Justin Collins 已提交
68

J
Justin Collins 已提交
69
* Whitelist `exists` arel method from SQL injection check
J
Justin Collins 已提交
70 71 72 73
* Avoid warning about Symbol DoS on safe parameters as method targets
* Fix stack overflow in ProcessHelper#class_name
* Add optional check for unscoped find queries (Ben Toews)
* Add framework for optional checks
J
Justin Collins 已提交
74
* Fix stack overflow for cycles in class ancestors (Jeff Rafter)
J
Justin Collins 已提交
75

J
Justin Collins 已提交
76
# 2.6.2 
J
Justin Collins 已提交
77

J
Justin Collins 已提交
78 79 80
* Add check for CVE-2014-3415
* Avoid warning about symbolizing safe parameters
* Update ruby2ruby dependency to 2.1.1
J
Justin Collins 已提交
81 82 83 84 85 86 87 88 89
* Expand app path in one place instead of all over (Jeff Rafter)
* Add `--add-checks-path` option for external checks (Clint Gibler)
* Fix SQL injection detection in deep nested string building
* Add `-4` option to force Rails 4 mode
* Check entire call for `send`
* Check for .gitignore of secrets in subdirectories
* Fix block statment endings in Erubis
* Fix undefined variable in controller processing error (Jason Barnabe) 

J
Justin Collins 已提交
90 91 92 93 94 95
# 2.6.1

* Add check for CVE-2014-3482 and CVE-2014-3483
* Add support for keyword arguments in blocks
* Remove unused warning codes (Bill Fischer)

J
Justin Collins 已提交
96
# 2.6.0
J
Justin Collins 已提交
97

J
Justin Collins 已提交
98 99 100 101 102
* Fix detection of `:host` setting in redirects with chained calls
* Add check for CVE-2014-0130
* Add `find_by`/`find_by!` to SQLi check for Rails 4
* Parse most files upfront instead of on demand
* Do not branch values for `+=`
J
Justin Collins 已提交
103 104 105 106 107 108 109
* Update to use RubyParser 3.5.0 (Patrick Toomey)
* Improve default route detection in Rails 3/4 (Jeff Jarmoc)
* Handle controllers and models split across files (Patrick Toomey)
* Fix handling of `protected_attributes` gem in Rails 4 (Geoffrey Hichborn)
* Ignore more model methods in redirects
* Fix CheckRender with nested render calls

J
Justin Collins 已提交
110
# 2.5.0
J
Justin Collins 已提交
111

J
Justin Collins 已提交
112 113 114 115 116 117
 * Add support for RailsLTS 2.3.18.7 and 2.3.18.8
 * Add support for Rails 4 `before_actions` and friends
 * Move SQLi CVE checks to `CheckSQLCVEs`
 * Check for protected_attributes gem
 * Fix SQLi detection in chain calls in scopes
 * Add GitHub-flavored Markdown output format (Greg Ose)
J
Justin Collins 已提交
118 119 120 121 122
 * Fix false positives when sanitize() is used in SQL (Jeff Yip)
 * Add String#intern and Hash#symbolize_keys DoS check (Jan Rusnacko)
 * Check all arguments in Model.select for SQLi
 * Fix false positive when :host is specified in redirect
 * Handle more non-literals in routes
J
Justin Collins 已提交
123 124
 * Add check for regex denial of service (Ben Toews) 

J
Justin Collins 已提交
125 126 127 128
# 2.4.3

 No changes. 2.4.2 gem release was unsigned, 2.4.3 is signed.

J
Justin Collins 已提交
129
# 2.4.2
J
Justin Collins 已提交
130

J
Justin Collins 已提交
131 132
 * Remove `rescue Exception`
 * Fix duplicate warnings about sanitize CVE
J
Justin Collins 已提交
133 134 135 136 137
 * Reuse duplicate call location information
 * Only track original template output locations
 * Skip identically rendered templates
 * Fix HAML template processing

J
Justin Collins 已提交
138 139 140 141 142 143
# 2.4.1

 * Add check for CVE-2014-0082
 * Add check for CVE-2014-0081, replaces CVE-2013-6415
 * Add check for CVE-2014-0080

J
Justin Collins 已提交
144
# 2.4.0 
J
Justin Collins 已提交
145

J
Justin Collins 已提交
146 147 148 149 150
 * Detect Rails LTS versions
 * Reduce false positives for SQL injection in string building
 * More accurate user input marking for SQL injection warnings
 * Detect SQL injection in `delete_all`/`destroy_all`
 * Detect SQL injection raw SQL queries using `connection`
J
Justin Collins 已提交
151
 * Parse exact versions from Gemfile.lock for all gems
J
Justin Collins 已提交
152
 * Ignore generators
J
Justin Collins 已提交
153
 * Update to RubyParser 3.4.0
J
Justin Collins 已提交
154 155 156
 * Fix false positives when SQL methods are not called on AR models (Aaron Bedra)
 * Add check for uses of OpenSSL::SSL::VERIFY_NONE (Aaron Bedra)
 * No longer raise exceptions if a class name cannot be determined
J
Justin Collins 已提交
157 158
 * Fingerprint attribute warnings individually (Case Taintor)

J
Justin Collins 已提交
159 160 161 162 163
# 2.3.1

 * Fix check for CVE-2013-4491 (i18n XSS) to detect workaround
 * Fix link for CVE-2013-6415 (number_to_currency)

J
Justin Collins 已提交
164
# 2.3.0
J
Justin Collins 已提交
165

J
Justin Collins 已提交
166 167 168 169 170 171 172 173 174
 * Add check for Parameters#permit!
 * Add check for CVE-2013-4491 (i18n XSS)
 * Add check for CVE-2013-6414 (header DoS)
 * Add check for CVE-2013-6415 (number_to_currency)
 * Add check for CVE-2013-6416 (simple_format XSS)
 * Add check for CVE-2013-6417 (query generation) 
 * Fix typos in reflection and translate bug messages
 * Collapse send/try calls 
 * Fix Slim XSS false positives (Noah Davis)
J
Justin Collins 已提交
175 176 177
 * Whitelist `Model#create` for redirects
 * Fix scoping issues with instance variables and blocks

J
Justin Collins 已提交
178
# 2.2.0 
J
Justin Collins 已提交
179

J
Justin Collins 已提交
180
 * Reduce command injection false positives
J
Justin Collins 已提交
181 182
 * Use Rails version from Gemfile if it is available
 * Only add routes with actual names
J
Justin Collins 已提交
183 184 185 186
 * Ignore redirects to models using friendly_id (AJ Ostrow) 
 * Support scanning Rails engines (Geoffrey Hichborn)
 * Add check for detailed exceptions in production

187
# 2.1.2
J
Justin Collins 已提交
188

189
 * Do not attempt to load custom Haml filters
J
Justin Collins 已提交
190
 * Do not warn about `to_json` XSS in Rails 4
J
Justin Collins 已提交
191 192 193
 * Add --table-width option to set width of text reports (ssendev)
 * Remove fuzzy matching on dangerous attr_accessible values

J
Justin Collins 已提交
194
# 2.1.1
J
Justin Collins 已提交
195

J
Justin Collins 已提交
196
 * New warning code for dangerous attributes in attr_accessible
J
Justin Collins 已提交
197
 * Do not warn on attr_accessible using roles
J
Justin Collins 已提交
198
 * More accurate results for model attribute warnings
J
Justin Collins 已提交
199 200 201 202 203 204
 * Use exit code zero with `-z` if all warnings ignored
 * Respect ignored warnings in rescans
 * Ignore dynamic controller names in routes
 * Fix infinite loop when run as rake task (Matthew Shanley)
 * Respect ignored warnings in tabs format reports

J
Justin Collins 已提交
205
# 2.1.0
J
Justin Collins 已提交
206

J
Justin Collins 已提交
207
 * Support non-native line endings in Gemfile.lock (Paul Deardorff)
J
Justin Collins 已提交
208
 * Support for ignoring warnings
209
 * Check for dangerous model attributes defined in attr_accessible (Paul Deardorff)
J
Justin Collins 已提交
210
 * Update to ruby_parser 3.2.2
J
Justin Collins 已提交
211 212 213 214
 * Add brakeman-min gemspec
 * Load gem dependencies on-demand 
 * Output JSON diff to file if -o option is used 
 * Add check for authenticate_or_request_with_http_basic
J
Justin Collins 已提交
215
 * Refactor of SQL injection check code (Bart ten Brinke)
J
Justin Collins 已提交
216 217 218
 * Fix detection of duplicate XSS warnings
 * Refactor reports into separate classes 
 * Allow use of Slim 2.x (Ian Zabel) 
J
Justin Collins 已提交
219
 * Return error exit code when application path is not found
J
Justin Collins 已提交
220 221
 * Add `--branch-limit` option, limit to 5 by default
 * Add more methods to check for command injection
J
Justin Collins 已提交
222 223 224
 * Fix output format detection to be more strict again
 * Allow empty Brakeman configuration file

J
Justin Collins 已提交
225 226 227 228 229 230 231 232 233 234
# 2.0.0
  
 * Add `--only-files` option to specify files/paths to scan (Ian Ehlert)
 * Add Marshal/CSV deserialization check
 * Combine deserialization checks into single check
 * Avoid duplicate "Dangerous Send" and "Unsafe Reflection" warnings
 * Avoid duplicate results for Symbol DoS check
 * Medium confidence for mass assignment to attr_protected models
 * Remove "timestamp" key from JSON reports
 * Remove deprecated config file locations
235 236
 * Relative paths are used by default in JSON reports
 * `--absolute-paths` replaces `--relative-paths`
J
Justin Collins 已提交
237 238 239 240 241 242 243 244 245 246
 * Only treat classes with names containing `Controller` like controllers
 * Better handling of classes nested inside controllers
 * Better handling of controller classes nested in classes/modules
 * Handle `->` lambdas with no arguments
 * Handle explicit block argument destructuring
 * Skip Rails config options that are real objects
 * Detect Rails 3 JSON escape config option
 * Much better tracking of warning file names
 * Fix errors when using `--separate-models` (Noah Davis)
 * Fix fingerprint generation to actually use the file path
J
Justin Collins 已提交
247
 * Fix text report console output in JRuby
J
Justin Collins 已提交
248 249 250 251
 * Fix false positives on `Model#id`
 * Fix false positives on `params.to_json`
 * Fix model path guesses to use "models/" instead of "controllers/"
 * Clean up SQL CVE warning messages
J
Justin Collins 已提交
252
 * Use exceptions instead of abort in brakeman lib
253
 * Update to Ruby2Ruby 2.0.5
J
Justin Collins 已提交
254

J
Justin Collins 已提交
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
# 1.9.5

 * Add check for unsafe symbol creation
 * Do not warn on mass assignment with `slice`/`only`
 * Do not warn on session secret if in `.gitignore`
 * Fix scoping for blocks and block arguments
 * Fix error when modifying blocks in templates
 * Fix session secret check for Rails 4
 * Fix crash on `before_filter` outside controller
 * Fix `Sexp` hash cache invalidation
 * Respect `quiet` option in configuration file
 * Convert assignment to simple `if` expressions to `or`
 * More fixes for assignments inside branches
 * Pin to ruby2ruby version 2.0.3

J
Justin Collins 已提交
270 271 272 273 274 275 276 277 278 279 280 281
# 1.9.4
 
 * Add check for CVE-2013-1854
 * Add check for CVE-2013-1855
 * Add check for CVE-2013-1856
 * Add check for CVE-2013-1857
 * Fix `--compare` to work with older versions
 * Add "no-referrer' to HTML report links
 * Don't warn when invoking `send` on user input
 * Slightly faster cloning of Sexps
 * Detect another way to add `strong_parameters`

J
Justin Collins 已提交
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
# 1.9.3
 
 * Add render path to JSON report
 * Add warning fingerprints
 * Add check for unsafe reflection (Gabriel Quadros)
 * Add check for skipping authentication methods with blacklist
 * Add support for Slim templates
 * Remove empty tables from reports (Owen Ben Davies)
 * Handle `prepend/append_before_filter`
 * Performance improvements when handling branches
 * Fix processing of `production.rb`
 * Fix version check for Ruby 2.0
 * Expand HAML dependency to include 4.0
 * Scroll errors into view when expanding in HTML report

J
Justin Collins 已提交
297 298 299 300 301 302 303 304 305 306 307
# 1.9.2

 * Add check for CVE-2013-0269
 * Add check for CVE-2013-0276
 * Add check for CVE-2013-0277
 * Add check for CVE-2013-0333
 * Check for more send-like methods
 * Check for more SQL injection locations
 * Check for more dangerous YAML methods
 * Support MultiJSON 1.2 for Rails 3.0 and 3.1

J
Justin Collins 已提交
308 309 310 311 312 313 314 315 316 317 318 319
# 1.9.1

 * Update to RubyParser 3.1.1 (neersighted)
 * Remove ActiveSupport dependency (Neil Matatall)
 * Do not warn on arrays passed to `link_to` (Neil Matatall)
 * Warn on secret tokens
 * Warn on more mass assignment methods
 * Add check for CVE-2012-5664
 * Add check for CVE-2013-0155
 * Add check for CVE-2013-0156
 * Add check for unsafe `YAML.load`

J
Justin Collins 已提交
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
# 1.9.0

 * Update to RubyParser 3
 * Ignore route information by default
 * Support `strong_parameters`
 * Support newer `validates :format` call
 * Add scan time to reports
 * Add Brakeman version to reports
 * Fix `CheckExecute` to warn on all string interpolation
 * Fix false positive on `to_sql` calls
 * Don't mangle whitespace in JSON code formatting
 * Add AppTree as facade for filesystem (brynary)
 * Add link for translate vulnerability warning (grosser)
 * Rename LICENSE to MIT-LICENSE, remove from README (grosser)
 * Add Rakefile to run tests (grosser)
 * Better default config file locations (grosser)
 * Reduce Sexp creation
 * Handle empty model files
 * Remove "find by regex" feature from `CallIndex`

J
Justin Collins 已提交
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
# 1.8.3

 * Use `multi_json` gem for better harmony
 * Performance improvement for call indexing
 * Fix issue with processing HAML files
 * Handle pre-release versions when processing `Gemfile.lock`
 * Only check first argument of `redirect_to`
 * Fix false positives from `Model.arel_table` accesses
 * Fix false positives on redirects to models decorated with Draper gem
 * Fix false positive on redirect to model association
 * Fix false positive on `YAML.load`
 * Fix false positive XSS on any `to_i` output
 * Fix error on Rails 2 name routes with no args
 * Fix error in rescan of mixins with symbols in method name
 * Do not rescan non-Ruby files in config/

J
Justin Collins 已提交
356 357 358 359 360 361 362 363 364
# 1.8.2

 * Fixed rescanning problems caused by 1.8.0 changes
 * Fix scope calls with single argument
 * Report specific model name in rendered collections
 * Handle overwritten JSON escape settings
 * Much improved test coverage
 * Add CHANGES to gemspec

J
Justin Collins 已提交
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
# 1.8.1

 * Recover from errors in output formatting
 * Fix false positive in redirect_to (Neil Matatall)
 * Fix problems with removal of `Sexp#method_missing`
 * Fix array indexing in alias processing
 * Fix old mail_to vulnerability check
 * Fix rescans when only controller action changes
 * Allow comparison of versions with unequal lengths
 * Handle super calls with blocks
 * Respect `-q` flag for "Rails 3 detected" message

# 1.8.0

 * Support relative paths in reports (fsword)
 * Allow Brakeman to be run without tty (fsword)
 * Fix exit code with `--compare` (fsword)
 * Fix `--rake` option (Deepak Kumar)
 * Add high confidence warnings for `to_json` XSS (Neil Matatall)
 * Fix `redirect_to` false negative
 * Fix duplicate warnings with `raw` calls
 * Fix shadowing of rendered partials
 * Add "render chain" to HTML reports
 * Add check for XSS in `content_tag`
 * Add full backtrace for errors in debug mode
 * Treat model attributes in `or` expressions as immediate values
 * Switch to method access for Sexp nodes

J
Justin Collins 已提交
393 394 395 396 397 398 399 400
# 1.7.1

 * Add check for CVE-2012-3463
 * Add check for CVE-2012-3464
 * Add check for CVE-2012-3465
 * Add charset to HTML report (hooopo)
 * Report XSS in select() for Rails 2

J
Justin Collins 已提交
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
# 1.7.0

 * Add check for CVE-2012-3424
 * Link report types to descriptions on website
 * Report errors raised while running check
 * Improve processing of Rails 3 routes
 * Fix "empty char-class" error
 * Improve file access check
 * Avoid warning on non-ActiveModel models
 * Speed improvements by stripping down SexpProcessor
 * Fix how `params[:x] ||=` is handled
 * Treat user input in `or` expressions as immediate values
 * Fix processing of negative array indexes
 * Add line breaks to truncated table rows

J
Justin Collins 已提交
416 417 418 419 420 421 422 423 424 425
# 1.6.2

 * Add checks for CVE-2012-2660, CVE-2012-2661, CVE-2012-2694, CVE-2012-2695 (Dave Worth)
 * Avoid warning when redirecting to a model instance
 * Add `request.parameters` as a parameters hash
 * Raise confidence level for model attributes in redirects
 * Return non-zero exit code when missing dependencies
 * Fix `before_filter :except` logic
 * Only accept symbol literals as before_filter names
 * Cache before_filter lookups
J
Justin Collins 已提交
426
 * Turn off quiet mode by default for `--compare`
J
Justin Collins 已提交
427

J
Justin Collins 已提交
428 429 430 431 432 433 434 435 436 437
# 1.6.1

 * Major rewrite of CheckSQL
 * Fix rescanning of deleted templates
 * Process actions mixed into controllers
 * Handle `render :template => ...`
 * Check for inherited attr_accessible (Neil Matatall)
 * Fix highlighting of HTML escaped values in HTML report
 * Report line number of highlighted value, if available

J
Justin Collins 已提交
438 439 440 441 442 443 444 445 446 447 448 449
# 1.6.0

 * Remove the Ruport dependency (Neil Matatall)
 * Add more informational JSON output (Neil Matatall)
 * Add comparison to previous JSON report (Neil Matatall)
 * Add highlighting of dangerous values in HTML/text reports
 * Model#update_attribute should not raise mass assignment warning (Dave Worth)
 * Don't check `find_by_*` method for SQL injection
 * Fix duplicate reporting of mass assignment and SQL injection
 * Fix rescanning of deleted files 
 * Properly check for rails_xss in Gemfile

J
Justin Collins 已提交
450 451 452 453 454 455 456 457 458 459 460 461 462 463
# 1.5.3

 * Add check for user input in Object#send (Neil Matatall)
 * Handle render :layout in views
 * Support output to multiple formats (Nick Green)
 * Prevent infinite loops in mutually recursive templates
 * Only check eval arguments for user input, not targets
 * Search subdirectories for models
 * Set values in request hashes and propagate to views
 * Add rake task file to gemspec (Anton Ageev)
 * Filter rescanning of templates (Neil Matatall)
 * Improve handling of modules and nesting
 * Test for zero errors in test reports

J
Justin Collins 已提交
464 465 466 467 468 469 470 471 472 473 474
# 1.5.2

 * Fix link_to checks for Rails 2.0 and 2.3
 * Fix rescanning of lib files (Neil Matatall)
 * Output stack trace on interrupt when debugging
 * Ignore user input in if statement conditions
 * Fix --skip-files option
 * Only warn on user input in render paths
 * Fix handling of views when using rails_xss
 * Revert to ruby_parser 2.3.1 for Ruby 1.8 parsing

J
Justin 已提交
475 476 477 478 479 480 481 482 483 484
# 1.5.1

 * Fix detection of global mass assignment setting
 * Fix partial rendering in Rails 3
 * Show backtrace when interrupt received (Ruby 1.9 only)
 * More debug output
 * Remove duplicate method in Brakeman::Rails2XSSErubis
 * Add tracking of module and class to Brakeman::BaseProcessor
 * Report module when using Brakeman::FindCall

J
Justin 已提交
485 486 487 488 489 490 491 492 493 494 495
# 1.5.0

 * Add version check for SafeBuffer vulnerability
 * Add check for select vulnerability in Rails 3
 * select() is no longer considered safe in Rails 2
 * Add check for skipping CSRF protection with a blacklist
 * Add JSON report format
 * Model#id should not be considered XSS
 * Standardize methods to check for SQL injection
 * Fix Rails 2 route parsing issue with nested routes

J
Justin Collins 已提交
496 497 498 499 500 501 502 503
# 1.4.0

 * Add check for user input in link_to href parameter
 * Match ERB processing to rails_xss plugin when plugin used
 * Add Brakeman::Report#to_json, Brakeman::Warning#to_json
 * Warnings below minimum confidence are dropped completely
 * Brakeman.run always returns a Tracker

J
Justin Collins 已提交
504 505 506 507 508 509
# 1.3.0

 * Add file paths to HTML report
 * Add caching of filters
 * Add --skip-files option
 * Add support for attr_protected
J
Justin Collins 已提交
510
 * Add detection of request.env as user input
J
Justin Collins 已提交
511 512
 * Descriptions of checks in -k output
 * Improved processing of named scopes
J
Justin Collins 已提交
513
 * Check for mass assignment in ActiveRecord::Associations::AssociationCollection#build
J
Justin Collins 已提交
514
 * Better variable substitution
J
Justin Collins 已提交
515 516
 * Table output option for rescan reports

J
Justin Collins 已提交
517 518 519 520 521 522 523 524
# 1.2.2

 * --no-progress works again
 * Make CheckLinkTo a separate check
 * Don't fail on unknown options to resource(s)
 * Handle empty resource(s) blocks
 * Add RescanReport#existing_warnings

J
Justin Collins 已提交
525 526 527 528 529 530 531 532 533 534 535 536
## 1.2.1

 * Remove link_to warning for Rails 3.x or when using rails_xss
 * Don't warn if first argument to link_to is escaped
 * Detect usage of attr_accessible with no arguments
 * Fix error when rendering a partial from a view but not through a controller
 * Fix some issues with rails_xss, CheckCrossSiteScripting, and CheckTranslateBug
 * Simplify Brakeman Rake task
 * Avoid modifying $VERBOSE
 * Add Brakeman::RescanReport#to_s
 * Add Brakeman::Warning#to_s

J
Justin Collins 已提交
537 538 539
## 1.2.0

 * Speed improvements for CheckExecute and CheckRender
J
Justin Collins 已提交
540
 * Check named_scope() and scope() for SQL injection
J
Justin Collins 已提交
541 542
 * Add --rake option to create rake task to run Brakeman
 * Add experimental support for rescanning a subset of files
J
Justin Collins 已提交
543
 * Add --summary option to only output summary
J
Justin Collins 已提交
544 545
 * Fix a problem with Rails 3 routes

J
Justin 已提交
546 547 548 549 550 551 552 553 554 555 556
## 1.1.0

 * Relax required versions for dependencies
 * Performance improvements for source processing
 * Better progress reporting
 * Handle basic operators like << + - * /
 * Rescue more errors to prevent complete crashes
 * Compatibility with newer Haml versions
 * Fix some warnings

## 1.0.0
J
Justin Collins 已提交
557 558

 * Better handling of assignments inside ifs
J
Justin Collins 已提交
559 560 561
 * Check more expressions for SQL injection
 * Use latest ruby_parser for better 1.9 syntax support
 * Better behavior for Brakeman as a library
J
Justin Collins 已提交
562

J
Justin Collins 已提交
563 564 565 566 567 568 569 570 571 572 573
## 1.0.0rc1

 * Brakeman can now be used as a library
 * Faster call search
 * Add option to return error code if warnings are found (tw-ngreen)
 * Allow truncated messages to be expanded in HTML
 * Fix summary when using warning thresholds
 * Better support for Rails 3 routes
 * Reduce SQL injection duplicate warnings
 * Lower confidence on mass assignment with no user input
 * Ignore mass assignment using all literal arguments
J
Justin Collins 已提交
574
 * Keep expanded context in view with HTML output
J
Justin Collins 已提交
575

J
Justin Collins 已提交
576 577 578 579 580
## 0.9.2

 * Fix Rails 3 configuration parsing
 * Add t() helper to check for translate XSS bug

J
Justin Collins 已提交
581 582
## 0.9.1

J
Justin Collins 已提交
583
 * Add warning for translator helper XSS vulnerability
J
Justin Collins 已提交
584

J
Justin Collins 已提交
585 586 587 588 589 590 591
## 0.9.0

 * Process Rails 3 configuration files
 * Fix CSV output
 * Check for config.active_record.whitelist_attributes = true
 * Always produce a warning for without_protection => true

J
Justin Collins 已提交
592 593 594 595 596 597 598 599 600
## 0.8.4

 * Option for separate attr_accessible warnings
 * Option to set CSS file for HTML output
 * Add file names for version-specific warnings
 * Add line number for default routes in a controller
 * Fix hash_insert()
 * Remove use of Queue from threaded checks

J
Justin Collins 已提交
601 602 603 604 605 606
## 0.8.3
 
 * Respect -w flag in .tabs format (tw-ngreen)
 * Escape HTML output of error messages
 * Add --skip-libs option

J
Justin Collins 已提交
607 608 609
## 0.8.2

 * Run checks in parallel threads by default
J
Justin Collins 已提交
610
 * Fix compatibility with ruby_parser 2.3.1
J
Justin Collins 已提交
611

J
Justin Collins 已提交
612 613 614 615 616
## 0.8.1

 * Add option to assume all controller methods are actions
 * Recover from errors when parsing routes

J
Justin Collins 已提交
617 618 619 620 621 622 623 624 625 626 627
## 0.8.0

 * Add check for mass assignment using without_protection
 * Add check for password in http_basic_authenticate_with
 * Warn on user input in hash argument with mass assignment
 * auto_link is now considered safe for Rails >= 3.0.6
 * Output detected Rails version in report
 * Keep track of methods called in class definition
 * Add ruby_parser hack for Ruby 1.9 hash syntax
 * Add a few Rails 3.1 tests

J
Justin Collins 已提交
628 629 630 631 632
## 0.7.2

 * Fix handling of params and cookies with nested access
 * Add CVEs for checks added in 0.7.0

J
Justin Collins 已提交
633 634 635 636
## 0.7.1

 * Require BaseProcessor for GemProcessor

J
Justin Collins 已提交
637 638 639 640 641 642 643
## 0.7.0

 * Allow local variable as a class name
 * Add checks for vulnerabilities fixed in Rails 2.3.14 and 3.0.10
 * Check for default routes in Rails 3 apps
 * Look in Gemfile or Gemfile.lock for Rails version

J
Justin Collins 已提交
644 645 646 647 648 649 650
## 0.6.1

 * Fix XSS check for cookies as parameters in output
 * Don't bother calling super in CheckSessionSettings
 * Add escape_once as a safe method
 * Accept '\Z' or '\z' in model validations

J
Justin Collins 已提交
651 652 653 654 655 656 657 658 659 660 661 662 663
## 0.6.0

 * Tests are in place and fully functional
 * Hide errors by default in HTML output
 * Warn if routes.rb cannot be found
 * Narrow methods assumed to be file access
 * Increase confidence for methods known to not escape output
 * Fixes to output processing for Erubis
 * Fixes for Rails 3 XSS checks
 * Fixes to line numbers with Erubis
 * Fixes to escaped output scanning
 * Update CSRF CVE-2011-0447 message to be less assertive

J
Justin Collins 已提交
664
## 0.5.2
J
Justin Collins 已提交
665

J
Justin Collins 已提交
666
 * Output report file name when finished
J
Justin Collins 已提交
667 668 669
 * Add initial tests for Rails 2.x
 * Fix ERB line numbers when using Ruby 1.9

J
Justin Collins 已提交
670 671 672 673
## 0.5.1

 * Fix issue with 'has_one' => in routes

J
Justin Collins 已提交
674 675 676 677
## 0.5.0

  * Add support for routes like get 'x/y', :to => 'ctrlr#whatever'
  * Allow empty blocks in Rails 3 routes
678
  * Check initializer for session settings
679
  * Add line numbers to session setting warnings
680 681
  * Add --checks option to list checks

J
Justin Collins 已提交
682 683 684 685 686
## 0.4.1
  
  * Fix reported line numbers when using new Erubis parser
    (Mostly affects Rails 3 apps)

687 688 689 690 691 692
## 0.4.0

  * Handle Rails XSS protection properly
  * More detection options for rails_xss
  * Add --escape-html option 

J
Justin Collins 已提交
693 694
## 0.3.2  

695
  * Autodetect Rails 3 applications
J
Justin Collins 已提交
696 697
  * Turn on auto-escaping for Rails 3 apps
  * Check Model.create() for mass assignment
698

J
Justin Collins 已提交
699 700 701 702 703 704
## 0.3.1

  * Always output a line number in tabbed output format
  * Restrict characters in category name in tabbed output format to
    word characters and spaces, for Hudson/Jenkins plugin

J
Justin Collins 已提交
705 706 707 708 709
## 0.3.0

  * Check for SQL injection in calls using constantize()
  * Check for SQL injection in calls to count_by_sql()

J
Justin Collins 已提交
710 711 712 713 714 715 716 717
## 0.2.2

  * Fix version_between? when no Rails version is specified

## 0.2.1

  * Add code snippet to tab output messages

J
Justin Collins 已提交
718 719 720 721 722
## 0.2.0

  * Add check for mail_to vulnerability - CVE-2011-0446
  * Add check for CSRF weakness - CVE-2011-0447

723 724 725 726
## 0.1.1

  * Be more permissive with ActiveSupport version

J
Justin Collins 已提交
727 728 729 730 731 732 733
## 0.1.0

  * Check link_to for XSS (because arguments are not escaped)
  * Process layouts better (although not perfectly yet)
  * Load custom Haml filters if they are in lib/
  * Tab separated output via .tabs output extension
  * Switch to normal versioning scheme