Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook Alternative Releases Source Code
 
#12
sweno Wrote:This ignorance of scope is one of the basics they seem to just not get. And one of first things you deal with when it comes to dealing with hostile users.
I don't have a lot of experience with ruby on rails, but I know enough to say that this level of security is something you need to bake into the code.

The thing is, it's kind of built into the framework already. Or at least, what strikes me as the correct way to handle most of these issues is to do allowability checking in before_filter actions. If it looks good there, then it gets passed on to the business logic. And it makes sense to implement the business logic first under this structure, because that gives certainty on exactly what needs to be checked for a given action. (And, given a reasonably straightforward design, should allow one to avoid a great deal of Repeating Yourself, which has various benefits.)

Basically, it wouldn't cost exponentially more to add proper security to this code. It really, really wouldn't.

The real problem here seems to be a social one. While it may make sense to code things in this order, it's a real problem for code in this state to end up in the hands of people who will actually try to use it as-is. (Though given certain statements in the release, I might call it on the order of a stupidity tax...)

-Morgan.
Reply


Messages In This Thread
[No subject] - by sweno - 09-17-2010, 05:15 PM
[No subject] - by Bob Schroeck - 09-17-2010, 06:55 PM
[No subject] - by Bob Schroeck - 09-20-2010, 02:50 PM
[No subject] - by sweno - 09-23-2010, 09:08 PM
[No subject] - by Black Aeronaut - 09-24-2010, 05:00 AM
[No subject] - by Bob Schroeck - 09-24-2010, 02:48 PM
[No subject] - by sweno - 09-24-2010, 05:41 PM
[No subject] - by Sofaspud - 09-24-2010, 07:31 PM
[No subject] - by Morganite - 09-24-2010, 07:41 PM
[No subject] - by sweno - 09-24-2010, 08:32 PM
[No subject] - by Morganite - 09-25-2010, 06:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)