Commit Graph

61 Commits

Author SHA1 Message Date
Mike McCabe 38584b703d updating brakeman 2014-02-23 13:43:56 -05:00
Al Snow b99385dff5 Rebuilt Gemfile.lock file 2014-02-18 16:15:42 -05:00
Al Snow 06b9bdbc1d Rebuilt Gemfile.lock file 2014-02-16 10:16:46 -05:00
Al Snow a27ffb31ab Rebuilt Gemfile.lock file 2014-02-10 16:56:34 -05:00
Al Snow a5a1ce5d67 Rebuilt Gemfile.lock file 2014-02-06 17:17:56 -05:00
Al Snow 92a1f28df6 Rebuilt Gemfile.lock file 2014-02-02 12:37:18 -05:00
Al Snow ebeb84c988 Upgraded 2 gems by refreshing Gemfile.lock file 2014-01-27 11:36:27 -05:00
Al Snow a614620836 Upgraded 3 gems by rebuilding Gemfile.lock file 2014-01-18 12:36:17 -05:00
Al Snow e80c37e040 Upgraded 3 gems by rebuilding Gemfile.lock file 2014-01-15 10:26:22 -05:00
Al Snow 18766032f0 Upgraded 1 gem by rebuilding Gemfile.lock file 2014-01-11 09:52:16 -05:00
Al Snow 48acca6eda Upgraded 3 gems by rebuilding Gemfile.lock file 2014-01-10 14:19:26 -05:00
Al Snow 42eb12b602 Upgraded 2 gems by rebuilding Gemfile.lock file 2014-01-08 11:13:14 -05:00
Al Snow 429d1b0f78 Upgraded 1 gem by rebuilding Gemfile.lock file 2014-01-05 09:10:12 -05:00
Al Snow 0acf26379b Removed several gem numbers then refreshed Gemfile.lock file 2014-01-01 14:21:35 -05:00
Al Snow 161b390d70 Upgraded 5 gems by rebuilding Gemfile.lock file 2013-12-30 07:58:23 -05:00
Al Snow 0b4425550b Rebuilt Gemfile.lock file 2013-12-26 15:12:27 -05:00
Al Snow 98dbad1cec Upgraded better_errors gem by rebuilding Gemfile.lock file 2013-12-23 11:55:04 -05:00
Al Snow c1a3e806de Rebuilt Gemfile.lock file 2013-12-20 19:59:00 -05:00
Al Snow a673f13b29 Rebuilt Gemfile.lock file - 4 more gem upgrades 2013-12-15 10:51:30 -05:00
Al Snow 67514193d3 Rebuilt Gemfile.lock file 2013-12-13 17:46:42 -05:00
Al Snow 80479eec24 Merge branch 'master' of https://github.com/OWASP/railsgoat 2013-12-13 17:40:54 -05:00
mccabe615 8eb398950f Merge pull request #76 from jamesejr/feature/user_mailer
Implement Forgot Password Feature
2013-12-11 09:19:42 -08:00
James Espinosa 0318205ecb Add MailCatcher for SMTP support to Gemfile 2013-12-10 22:07:05 -06:00
Al Snow 13cb50201a Rebuilt Gemfile.lock file 2013-12-09 11:21:44 -05:00
Al Snow 2067fab928 Rebuilt Gemfile.lock file 2013-12-07 18:23:55 -05:00
Al Snow 88d3faa9dd Rebuilt Gemfile.lock file 2013-12-07 11:28:11 -05:00
Al Snow 5cd7a1b9cb Got rid of i18n warning; Rebuilt Gemfile.lock file 2013-12-03 20:35:04 -05:00
Al Snow 880ede5574 Rebuilt Gemfile.lock file (i18n, listen) 2013-12-03 16:46:03 -05:00
Al Snow a75416f506 Rebuilt Gemfile.lock file 2013-12-03 06:48:20 -05:00
Al Snow 209d2440a8 Upgrade .rvmrc to 1.9.3-p484; Rebuilt Gemfile.lock file 2013-11-23 16:00:32 -05:00
Al Snow ab22759bbf Rebuilt Gemfile.lock file 2013-11-18 11:13:34 -05:00
Mike McCabe 0075ca7a9c lowering rack version for dos 2013-11-14 12:32:53 -05:00
Mike McCabe 52f1ac3c78 bringing the rails and rack version down for A9 2013-11-13 11:46:42 -05:00
Al Snow 98ccf0bd41 Rebuilt Gemfile.lock file; Changed "@@" (class var) to "$" (global var) in spec/support/capybara_shared.rb 2013-10-28 19:45:42 -04:00
Al Snow 9d6c567af1 Rebuilt Gemfile.lock file 2013-10-27 21:49:17 -04:00
Al Snow 203a7a244f Added simplecov gem code changes 2013-10-23 10:29:20 -04:00
Al Snow 10373b3294 Undid stuff for cov and 2.0.0; 1 failed spec 2013-10-23 10:01:14 -04:00
Al Snow ad0cf1d204 After forced git pull to sync with parent repo 2013-10-23 09:36:06 -04:00
Al Snow bd066068ff Upgraded Rails from 3.2.13 to 3.2.15. Removed unneeded "~>" gem numbers in Gemfile. 2013-10-22 10:29:57 -04:00
Al Snow f8ab8c320c Upgraded Ruby to 2.0.0. 2013-10-20 11:59:23 -04:00
Al Snow 45cac913ff Upgraded Rails from 3.2.13 to 3.2.15. Removed unneeded "~>" gem numbers in Gemfile. 2013-10-20 10:42:30 -04:00
Mike McCabe 5177e60669 adding better errors gem 2013-10-11 16:03:36 -04:00
Mike McCabe a93159c9f2 adding launchy 2013-10-09 11:07:13 -04:00
Mike McCabe 19ee423d8d pinning dbcleaner to lower version due to https://github.com/bmabey/database_cleaner/issues/224 2013-10-07 15:23:37 -04:00
chrismo df9efa915b Capybara added to demonstrate vulnerabilities.
Adding Capybara to verify replay-ability of hacking vulnerabilities. I
imagine these may want to be kept on a different branch for QA and
educational purposes, but not distributed with master when forked.

This commit also includes demonstrating the SQL Injection vulnerability.
2013-09-27 10:35:59 -05:00
Ken Johnson fec458f1a7 Merge pull request #45 from chrismo/users_controller_change
Fixed logic to strip out user params.
2013-09-27 07:34:24 -07:00
Chris Morris 20420be1a6 Fixed logic to strip out user params.
Disclaimer: changes like these in this sort of app are tricky because
it's harder to presume the intention of the code in question.

The prior line:

```
user.update_attributes(params[:user].reject { |k| k == ("password" || "password_confirmation") || "user_id" })
```

returns an empty hash, because of the way the block evaluates:

```
irb(main):002:0> k = 'foo'
=> "foo"
irb(main):003:0> k == ("password" || "password_confirmation") || "user_id"
=> "user_id"
```

Before the last change to that line, without 'user_id' outside the
params, it didn't evaluate properly either:

```
irb(main):007:0> k = 'password_confirmation'
=> "password_confirmation"
irb(main):008:0> k == ("password" || "password_confirmation")
=> false
irb(main):009:0> ("password" || "password_confirmation")
=> "password"
```

So, in the normal use case for this form, you can't update any other
attribute of the User. To me, that's probably the best argument for
making this change, but it does simplify the SQL Injection attack
(although perhaps the prior complication was intended).

Before this change, injecting conditional SQL into the user_id param in
the account_settings update call would allow the password of whatever
account is found (e.g. the first one if injecting 'OR 1=1') to be reset,
but without additional attacks, the email address of that account is not
known.

After this change, the email address of that account now is also updated
in addition to the password, making it simpler to get in as an admin --
though you're still presuming the first account to be an admin.
2013-09-25 16:56:34 -05:00
Michael McCabe 9638d8137b travis fix 2013-09-10 10:02:11 -04:00
Michael McCabe 987b6d8844 setting up travis ci env 2013-09-10 09:17:40 -04:00
Michael McCabe 292e8d9845 adding execjs and therubyracer to fix js issue on ubuntu 2013-09-09 21:45:00 -04:00