store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 25, 2013 4:53 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Wed Aug 03, 2011 7:42 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
When did curl_exec get disabled by default in ASL?

Only noticed today when I tried to update my WordPress blog, and it kept failing.

Turns out curl_exec was disabled. So I allowed it again via the ASL gui (Configuration > ASL Configuration) and it works fine again.

Odd.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Wed Aug 03, 2011 7:52 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3249
Location: Chantilly, VA
Quote:
When did curl_exec get disabled by default in ASL?


Its new in 3.0:

https://www.atomicorp.com/wiki/index.ph ... ease_Notes

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Wed Aug 03, 2011 8:06 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
Oh righty, but as WordPress is a trust application, should it be blocked by default, seeing as not everyone may have noticed this change or issue yet, and WP is very very popular.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Thu Aug 04, 2011 4:43 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
laughingbuddha wrote:
Oh righty, but as WordPress is a trust application, should it be blocked by default, seeing as not everyone may have noticed this change or issue yet, and WP is very very popular.


Trust WordPress? With all its millions of hacky plugins? Never.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Thu Aug 04, 2011 6:52 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
Well to be fare Breun, unless you allow curl exec for WordPress, you can't update via the web interface, and also some plugins will not work at all.

Unfortunately, I host 3 WordPress sites on my server, so I have little choice, especially as I don't particularly want to do updates for each site via time consuming ftp. Especially as I don't get paid to do that.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Aug 05, 2011 2:44 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
laughingbuddha wrote:
Well to be fare Breun, unless you allow curl exec for WordPress, you can't update via the web interface, and also some plugins will not work at all.

Unfortunately, I host 3 WordPress sites on my server, so I have little choice, especially as I don't particularly want to do updates for each site via time consuming ftp. Especially as I don't get paid to do that.


Not every business is like your business. You can make the choice to take the risk and enable curl_exec, but that doesn't mean it should be the default for everyone, right? Especially not since we're talking about security software here.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Aug 05, 2011 9:18 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
Well as I understand it, if it is disabled in the ASL config (as in curl exec isn't allowed server wide) then it is disabled server wide, regardless of individual vhost php.ini settings.

Not that I know how to configure an individual php ini file.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Aug 05, 2011 9:39 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
laughingbuddha wrote:
Well as I understand it, if it is disabled in the ASL config (as in curl exec isn't allowed server wide) then it is disabled server wide, regardless of individual vhost php.ini settings.


That's correct.

Quote:
Not that I know how to configure an individual php ini file.


If you're using mod_php, then there is no way to disable PHP functions per domain.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Aug 05, 2011 9:57 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
I'm just running a standard ASL install under CentOS 5.x and Plesk, so I would have to check and see if I'm using mod_php or not.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Aug 05, 2011 10:31 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
In Plesk you can choose between mod_php or FastCGI for PHP hosting. I believe Suhosin might allow one to disable PHP functions per domain, but I've never played with that.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Oct 14, 2011 3:15 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Mar 29, 2009 6:52 pm
Posts: 348
Ok. I am starting to have an issue with curl_exec.

First of all WHMCS needs it in order to verify license. Wordpress as you said also. And I have 3 clients with custom modules which cannot run without curl_exec.

Now I would really need a reply from Scott or Mike on that.

Just how dangerous is curl_exec ??? And also is there any way to allow curl_exec on 2-3 domains specifically ?

This is a huge problem. :(

_________________
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Oct 14, 2011 3:47 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
Don't forget that you can disable dangerous commands server-wide, then re-enable them individually if you use suhosin rather than PHP to disable the functions.

Disable them all in php.ini using suhosin, then disable all but the necessary ones in vhost.conf for the domain (again using the suhosin disable function).

It works for me, at any rate.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Fri Oct 14, 2011 6:52 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Mar 10, 2008 9:12 pm
Posts: 475
Location: Southampton, UK
I disabled it via the ASL config in the web gui. I know it is risky, but I wish ASL allowed it for know apps like WordPress, or have a vhost by vhost enable/disable feature without having to use suhosin, which to be honest I have no idea what it is, should I use it, and what it will effect on the server, i.e. would using suhosin screw up something else up. After all I do run a lot of bespoke php services on my box, such as an sms service among others.

But I can understand why ASL disabled CURL_EXEC.

_________________
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Sat Oct 15, 2011 10:44 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1846
suhosin is probably one of the least intrusive security additions you can add to php. The defaults rarely cause any problems. About the only thing I've seen was when it flagged a script that was buried many, many directory levels deep and blocked it.

I don't use the defaults though -- I tighten things up a bit.

But most importantly, it lets you re-enable disable functions on a per-vhost level, which is ideal for me.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: WordPress: CURL_EXEC Disabled by ASL?
Unread postPosted: Sat Oct 15, 2011 2:34 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Mar 29, 2009 6:52 pm
Posts: 348
Faris can you help out on that by sending us back what you did ?

So after you install suhosin with the defaults enabled you will be ok ?
And how do for example allow after enabling suhosin curl_exec on specific vhosts ?

If you could help out it would be owesome !

_________________
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego


Last edited by nobody on Sat Oct 15, 2011 4:02 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group