6.0.0-alpha12
6/12/25

[#10317] pkcs12: not found
Summary pkcs12: not found
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester software-horde (at) interfasys (dot) ch
Created 07/07/2011 (5089 days ago)
Due
Updated 07/07/2011 (5089 days ago)
Assigned
Resolved 07/07/2011 (5089 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/07/2011 08:45:15 PM Michael Slusarz Comment #12 Reply to this comment
I admitted I was wrong about escapeshellcmd(), but I suggest you 
take the time to read about how to use 'disable_functions' in PHP ;)
My mistake - I was looking in the PHP .ini documentation for "Security 
and Safe Mode".  Apparently, disable_functions is in the "Core" 
section.  The PHP documentation is not all that great in this area.
07/07/2011 08:38:31 PM software-horde (at) interfasys (dot) ch Comment #11 Reply to this comment
I admitted I was wrong about escapeshellcmd(), but I suggest you take 
the time to read about how to use 'disable_functions' in PHP ;)
07/07/2011 08:30:06 PM Michael Slusarz Comment #10 Reply to this comment
You are wrong.  Of course it has to do with suhosin.  PHP provides 
NO way of disabling these functions.
And what Jan said: how in the world is escapeshellcmd() a potentially 
dangerous function?  suhosin is crap.
07/07/2011 08:28:30 PM Michael Slusarz Comment #9 Reply to this comment
This has *nothing* to do with suhosin. It's standard practice to 
block dangerous php functions at the server level and it would just 
be nice if the use of those special functions could be documented.
You are wrong.  Of course it has to do with suhosin.  PHP provides NO 
way of disabling these functions.
07/07/2011 08:16:39 PM software-horde (at) interfasys (dot) ch Comment #8 Reply to this comment
I've just read the doc and I agree. All it seems to be doing is parse 
strings, so there shouldn't be any issues. I always thought this would 
actually run commands, but it was just part of a 'global rule' that 
used to include exec().

I still think it should be mentioned somewhere that s/mime needs 
exec() and escapeshellcmd(), because after doing a quick search it 
seems quite a few forums recommend people disable those, but maybe 
this report is enough since it's public.
07/07/2011 07:50:25 PM Jan Schneider Comment #7 Reply to this comment
And what makes escapeshellcmd a dangerous function? It *increases* 
security. Disabling it is completely insane.
07/07/2011 06:58:25 PM software-horde (at) interfasys (dot) ch Comment #6 Reply to this comment
This has *nothing* to do with suhosin. It's standard practice to block 
dangerous php functions at the server level and it would just be nice 
if the use of those special functions could be documented.
07/07/2011 06:55:46 PM Michael Slusarz Comment #5
State ⇒ Not A Bug
Reply to this comment
This is not something we are going to document.  Suhosin is *not* a 
part of basic PHP.  If people are running patched versions of PHP, 
they are responsible for configuring correctly.

We already recommend that people disable suhosin because it is broken anyway.
07/07/2011 06:48:57 PM software-horde (at) interfasys (dot) ch Comment #4 Reply to this comment
It's disabled for Horde, but that command was blocked server wide to 
prevent abuse. So it's not easy to workaround that when not using 
php-fpm, but I don't think there is a way around using escapeshellcmd 
to call openssl.
07/07/2011 06:46:30 PM Michael Slusarz Comment #3 Reply to this comment
Switched to debug mode and found out why

2011-07-07T19:17:13+01:00 WARN: HORDE [imp] PHP ERROR: 
escapeshellcmd() has been disabled for security reasons [pid 78964 
on line 1213 of "/usr/local/lib/php/Horde/Crypt/Smime.php"]
Please, please, please, please tell me you are not using suhsoin.
07/07/2011 06:23:55 PM software-horde (at) interfasys (dot) ch Comment #2 Reply to this comment
Switched to debug mode and found out why

2011-07-07T19:17:13+01:00 WARN: HORDE [imp] PHP ERROR: 
escapeshellcmd() has been disabled for security reasons [pid 78964 on 
line 1213 of "/usr/local/lib/php/Horde/Crypt/Smime.php"]

So I have 2 suggestions:
1) Add something in the documentation that escapeshellcmd() is needed 
if we plan on using S/MIME
2) PHP errors should raise Horde errors, not a warnings. I was only 
able to see this message after I've changed the logging level
07/07/2011 06:10:05 PM software-horde (at) interfasys (dot) ch Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ pkcs12: not found
Type ⇒ Bug
Reply to this comment
The path to openssl is correct, but horde can't import S/MIME certs.
This is the error in Apache logs:
pkcs12: not found

Saved Queries