in reply to Re^9: Attack on Perl or Perl's need better PR (again)
in thread Attack on Perl or Perl's need better PR (again)

I said, at the very beginning of this discussion, that language features can most certainly help with security. I pointed to automatic memory management as making buffer overflows a thing of the past.

The point I'm attempting to make is that you seem to be touting language features as the next step. That isn't the next step. We have language features in Perl for nearly every security hole out there. SQL Injection? DBI placeholders. XSS? Taint. And on and on. The problem is that they go unused.

Do you know the easiest way to break into a computer system? Just ask the person you want to break in as for their password. It's a 50-50 chance that they'll just give it to you if you pose as someone from the helpdesk. This goes for every single person in a company, CEO and CTO down. (Yes, CTO's have been caught by this, too.)

Do you know the most common source of corporate breakins? Disgruntled ex-employees.

Do you know the most common source of security holes in Perl CGI scripts? SQL injection and XSS, both of which have been solved by language features for years.

Except, you cannot force people to use placeholders for all variable substitution because of:

my $sql = <<"__END_SQL__"; SELECT $obj->{name_col} AS name ,$obj->{val_col} AS value FROM $obj->{table_name} WHERE $obj->{id_col} = ? __END_SQL__

Did I expose myself to a SQL injection? Can you prove either side? I couldn't, yet that kind of SQL is correctly all the time.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^11: Attack on Perl or Perl's need better PR (again)
by Anonymous Monk on Dec 01, 2005 at 21:53 UTC
    I guess we will have to agree to disagree. But in the interest of finding common ground, I think we can all agree that using strings as a lowest common denominator is vastly inferior to using a proper data structure. (oh, and just to clarify, I don't want these language features because I think the dullards out there need training wheels. I want better languages so that *I* can use them)