Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

 

 

First page Previous page 1 2 Next page Last page  View All ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


pharkins at gmail

Mar 26, 2007, 9:25 AM

Post #26 of 29 (4427 views)
Permalink
Re: MP1 Security issue [In reply to]

On 3/26/07, Robert Landrum <rlandrum [at] aol> wrote:
> Despite the (perceived) violation of protocol, Randal's message did
> light a fire under the asses of a lot of mod_perl developers, and made
> known a potential security issue. I'd say that's mission accomplished.

That's easy to say in this specific case, since the actual threat is
so tiny that it didn't make much difference. You guys probably
wouldn't think it was such a good idea if it had been a more serious
exploit and someone had used it to compromise your servers before a
fix was available.

- Perrin


jvanasco at 2xlp

Mar 26, 2007, 11:16 AM

Post #27 of 29 (4446 views)
Permalink
Re: MP1 Security issue [In reply to]

On Mar 26, 2007, at 12:25 PM, Perrin Harkins wrote:

> That's easy to say in this specific case, since the actual threat is
> so tiny that it didn't make much difference. You guys probably
> wouldn't think it was such a good idea if it had been a more serious
> exploit and someone had used it to compromise your servers before a
> fix was available.


Keep in mind -- in this specific case the discussion was such ( the
first 3 emails ):

From: a.solovey [at] gmail
Date: March 22, 2007 11:57:41 AM EDT
Subject: [mp1] PerlRun fails if path_info contains special symbols

From: pharkins [at] gmail
Date: March 22, 2007 11:04:37 PM EDT
Subject: Re: [mp1] PerlRun fails if path_info contains special symbols

From: merlyn [at] stonehenge
Date: March 22, 2007 11:20:48 PM EDT
Subject: MP1 Security issue (was Re: [mp1] PerlRun fails if
path_info contains special symbols)

It's not the case that Randal found an exploit and said "Hey
developers ! there's a security breach I found" -- which a lot of
these postings insinuate.

Alex found the issue, and reported it as a bug.
Perrin asked, 'do you think you can patch it?'
Randal replied "wait - this isn't a bug, its a security issue. this
needs faster attention"

Randal didn't raise an report an new security threat -- he re-
categorized an active bug discussion as a security threat.

People have commented "This isn't the proper way to report a security
threat." Well, right now ModPerl doesn't have a published protocol
for dealing with security threats.

In fact, there's no security policy *at all* on the mod perl
website. There also aren't any listings or contact addresses for
project maintainers -- the closest thing available is a current +
historical intermingled list of people who have contributed. All the
"Repot a bug" information make it very clear that everything should
be posted to the mailing list for discussion, and there is no mention
of "if you believe this could have security implications, please do
not post it publicly".

That said, I think the suggestion to email "info , support ,
security" as a first step is ridiculous -- they're not addresses
universally used across projects , and shouldn't be expected to work
as such. There's about as much rationale to crossing your fingers
and hoping someone sees those messages as writing to
"SantaClausPleaseFixMyBugsForChrismas [at] perl" .

I suggest the core developers devise some protocol + notification
scheme / contact addresses they feel comfortable with, and publish it
on these pages:

Reporting bugs
http://perl.apache.org/bugs/index.html
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

Getting Help
http://perl.apache.org/help/index.html

It could be as simple as:

"If you think you have found a security threat, please email _______
and give us 7 days to respond and work out a disclosure scheme with
you."

We're all fortunate that this discussion happened around a trivial
threat in a largely insignificant/unused feature -- but there should
be a system or directions in place for the unlikely event that
someone else finds a serious bug and follows every piece of
information on the website that says "just post it to the mailing list".


// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -


merlyn at stonehenge

Mar 26, 2007, 6:05 PM

Post #28 of 29 (4436 views)
Permalink
Re: MP1 Security issue [In reply to]

>>>>> "Jonathan" == Jonathan Vanasco <jvanasco [at] 2xlp> writes:

Jonathan> Randal didn't raise an report an new security threat -- he re-
Jonathan> categorized an active bug discussion as a security threat.

Just for the record, I'm now clear (thanks to new information) that I handled
this poorly, and will handle it differently the next time. I apologize for
any stress or grief, or even break-in, that may have resulted from my actions.

Jonathan> People have commented "This isn't the proper way to report a
Jonathan> security threat." Well, right now ModPerl doesn't have a published
Jonathan> protocol for dealing with security threats.

I *do* strongly support this statement though. Even after having been LARTed,
googling for "security mod_perl" didn't reveal anything in the first ten hits
that would be remotely useful here.

This *can* be fixed for the future. (Nudge to the developers.)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn [at] stonehenge> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


geoff at modperlcookbook

Mar 26, 2007, 6:45 PM

Post #29 of 29 (4449 views)
Permalink
Re: MP1 Security issue [In reply to]

Randal L. Schwartz wrote:
>>>>>>"Jonathan" == Jonathan Vanasco <jvanasco [at] 2xlp> writes:
>
>
> Jonathan> Randal didn't raise an report an new security threat -- he re-
> Jonathan> categorized an active bug discussion as a security threat.
>
> Just for the record, I'm now clear (thanks to new information) that I handled
> this poorly, and will handle it differently the next time.

in all fairness, I do appreciate you paying attention and speaking up.
if the security implications had not been brought up there's always the
possibility that Evil Guy would have seen the exploit, that the
developers wouldn't have patched things fast enough, and that much chaos
would have been the result.

I just wish we hadn't given the bad guys such a clear roadmap to the
chaos :)

> I apologize for
> any stress or grief, or even break-in, that may have resulted from my actions.

thankfully, I don't think the risk is as great as anybody thought at
first. but just to put things in perspective, the top two mod_perl
shops transact _billions_ of dollars through mod_perl servers, so a more
serious security threat... well, I think that could have had an
incredible impact on all of us who work in open source, not just our
little corner of it.

>
> Jonathan> People have commented "This isn't the proper way to report a
> Jonathan> security threat." Well, right now ModPerl doesn't have a published
> Jonathan> protocol for dealing with security threats.
>
> I *do* strongly support this statement though. Even after having been LARTed,
> googling for "security mod_perl" didn't reveal anything in the first ten hits
> that would be remotely useful here.
>
> This *can* be fixed for the future. (Nudge to the developers.)

I had actually started patching the documentation before jonathan said
anything, so expect something soonish. still, short of an official
channel to report security issues, it's always probably safe to say
"hey, I think this poses a security issue. what's the best way to
handle things?" no matter which mailing list you're on :)

--Geoff

First page Previous page 1 2 Next page Last page  View All ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.