Kauft das PHP-Sicherheitsbuch!Links(Profil nur für Xing-Mitglieder sichtbar) Rootserver, Colocation, Hosting My amazon wishlist VServer Hosting Syndicate This Blog |
Entries tagged as phpRelated tags #php.de cms hosting irc security sicherheit administration apache book review cookie encryption flickr information disclosure mod_gzip mod_security performance tuning PHP qmail scalability spam sql injection suhosin web application XSS advisory PHPKIT phpsysinfo remote code execution worm aps open source software as a service typo3 buch cacti exploit hotfix remote command execution cebit debian distribution FUD grid marketing Typo3 vortrag compiling system administration conference artikel auditing dissertation ez hannover heise heuristics ix linux master's thesis norway notebook pear phd php-sicherheit ssl tls university vikinger webapplikationen world of warcraft wow xss cryptography Kryptografie extension vpopmail wolfenstein encoding white labelling whois arbeit nerv revision filter advance fee fraud nigeria scam Vikinger 1 CeBIT chain of trust heidentum Heise Messe paganism reenactment samsung schwertkampf single malt sword fighting whisky zertifikate 2 absynth Hannover kredit ohne schufa kredit von privat negative schufa schweizer kredit 3 bug chroot filoo ftp lir messe reallife ripe wordpress 4 linuxhotel schulung seminar eZ 5 eee moobicent netbok netbook subnotebook umts usb vodafone CMS XMLRPC adsense affiliate marketing google Chain of trust Grid virus SSL TLS Zertifikate 6 password phishing pump 'n dump master's degree 7 Vortrag PEARTuesday, December 16. 2008Implementing an APS socket
I recently read about the APS project and became curious. APS, shorthand for Application Packaging Standard, is - as far as I understand it - a relatively recent standard that provides SaaS providers (i.e., us as a hosting provider) with a standardized format for software packaging. So far, some sounding names from the PHP Open Source community have embraced APS, including the notorious, but indispensable phpBB, Drupal, Magento and Typo3.
For hosters, APS is supposed to be a great addition to their portfolio: The introduction of APS advances the web hosting industry. By implementing APS, hosting service providers can gain access to a great variety of APS applications. In turn, application vendors that implement APS, can get access to a vast sales and marketing channel via APS-enabled hosting providers. Unfortunately, I can’t seem to find detailed documentation on the process of implementing an APS socket - the only freely available docs seem to be the standards document and ISV guidelines, both of which don’t really help me. Now, I reach out to you PHP guys - has any of you ever had something to do with APS (preferrably on the hoster/provider side of things)? Do you have pointers as to where to start the socket implementation? I’m looking forward to your input. Wednesday, May 21. 2008PHPShield revisited
A couple weeks ago, I blogged about PHPshield’s anonymous website, raising more than an eyebrow to the ominous business practices of hiding the true owner’s identity while selling a whitelabelled product.
To my great relief, Adrian responded quickly back then, but to my dismay it seemed like he was only paying lip service. I asked him again today via private mail and his response was swift. The whois entries for phpshield.com now point to his person and we can expect additional information on the web site itself soon. I like it when things can be resolved like that and I actually think this is a chance for his product rather than a possible competition issue. By clearly stating what differentiates phpshield from SourceGuardian (his flagship PHP encoding product), Adrian’s company, Inovica, can create user awareness and offer a possibility to make an informed decision for the product that actually fills their needs. I’m sure he thought about something like that already and of course it’s his decision. It’s just that I would probably try to do it that way if I had two products that are not identical, but being marketed in a similar environment. Anyway, just wanted to update you folks on this rather positive outcome. Have a nice evening. I’ll be trolling again soon Wednesday, April 23. 2008PHPShield, SourceGuardian and Inovica Ltd.
By way of a discussion in #php.de @ IRCNet, I stumbled about “phpshield.com” which offers a PHP encoding solution for a deadbeat price of 55 bucks. Other choices, like SourceGuardian, ioncube or Zend are much more pricy. However, the phpShield.com home page did not offer the slightest clue who actually is behind that product. How someone would entrust their PHP scripts (which obviously include their intellectual property) to a product that’s not only closed-source but also sold by an anonymous third party is beyond me. It’s common practise to whitelabel your solutions and sell them under different brands with different feature sets to different target audiences. We do this with gameservers and hosting, too. However, we always clearly state who is behind the whitelabelled solution (and we are also obliged to do this by law, which I think is good). The phpshield people do not have any clue on their pages. The domain is registered to this dude: Administrative Contact: I really have to ask: Why are they trying to hide? To me, that is not acceptable business practice. Incidentially, I’m currently evaluationg PHP encoding solutions for a customer request and I just struck one off the list. UPDATE: Adrian has responded in a very helpful comment, clearing a lot of the issues up. Please check the comments to this entry. Friday, December 29. 2006Cacti "cmd.php" Command Execution - HotfixHi, just a real quick hotfix to the critical vulnerability described in this advisory: <Files cmd.php> Put this into the .htaccess in your cacti directory and you should be good. This does not have any impact on the poller cronjob and does not require code or ini changes.
Posted by Christopher Kunz
at
16:42
| Comments (2)
| Trackbacks (0)
Defined tags for this entry: cacti, exploit, hotfix, PHP, remote command execution, security, sql injection
Monday, November 20. 2006Suhosin extension in Debian unstableThe Hardened-PHP Project is happy to announce another success story for Suhosin: Finally, we have the suhosin extension in Debian/Unstable. If you have the 4.0 version of Debian, you can now use the following packages to install PHP4 / PHP5 with Suhosin support:
irc:~# apt-cache search suhosin Great work, Debian guys! Thursday, November 9. 2006Thoughts on ext/filter et al.Yesterday morning, I went to see Ben Ramsey’s talk on filtering. Although it seemed that beer-induced sleep deprivation had taken its toll on Ben, he presented his audience with a couple of valuable insights. Basically, what he conveyed to me (and his blog entry supports this) was not to use ext/filter or Zend_Filter at all. Nearly every second slide regarding functions of the ZF component or the extension contained remarks like “This doesn’t work yet, it’s a TODO”, “this won’t validate XY properly” or - particularly hilarious - “this function validates phone numbers, but they have to be US ones”. Useful. I have, like, 0 US customers. So basically, if I was getting Ben right, we have an extension enabled by default that is of very limited use whatsoever. Is that a good thing? I dunno. Since I’m currently planning the second edition of my book “PHP-Sicherheit” (if you’re a US or UK publisher and want to publish a localized version, do contact me!), I was contemplating the thought of adding a couple of references to ext/filter in the various input filtering chapters. After Ben’s session, I am not sure anymore. Will ext/filter get enough developer attention over the next 4 or 5 months so it can actually become universally usable? Does it make sense to enable unfinished extensions by default? Amazing finds in HTML sourcecodeIn the “information gathering” chapter of my book “PHP-Sicherheit” and my presentations on the same topic, I usually talk about how incredibly weird stuff can end up in the source code of rather big web sites. While checking a number of sites for a specific vulnerability, I ended up finding the following stuff. I modified it so there’s no real information leakage and am currently trying to reach the respective vendors.
<!--DB-Error in Zeile 1712: DB Error: syntax error: / Layouttyp3: - / SELECT layouttyp.datei,layouttyp.name FROM layouttyp INNER JOIN teaserplatz ON teaserplatz.layouttyp_id=layouttyp.id INNER JOIN teasertyp ON easerplatz.teasertyp_id=teasertyp.id INNER JOIN dokument ON teaserplatz.dokument_id=dokument.id WHERE teaserplatz.pos=5,’erbt_layout’ AND dokument.id=14528 AND teasertyp.name=’sonder’--> <!--Fehler: Datei /export/www/CONTENT/soim-80/docs/cms/teasermanager/teasersnippets/ nicht gefunden<br>--> And finally: WARNING in file e:\Daten\enid\host\htdocs\media\layout\141.php on line 227: mysql_num_rows(): supplied argument is not a valid MySQL result resource Although it might seem obvious, I cannot stress it enough: Remove debug code and possible PHP errors from your production sites!
Posted by Christopher Kunz
at
09:52
| Comment (1)
| Trackbacks (0)
Defined tags for this entry: administration, information disclosure, php, security, sicherheit, sql injection, web application, XSS
PHP Conference 2006 - Session Slides and Quiz answersI already blogged this at our PHP Security Blog, but it is not (yet? hey Toby
Continue reading "PHP Conference 2006 - Session Slides and Quiz answers"
Posted by Christopher Kunz
at
00:28
| Comments (0)
| Trackback (1)
Defined tags for this entry: conference, heise, ix, php, php-sicherheit, security, sicherheit, vortrag, xss
PHP Conference 2006 - Session Slides and Quiz answersI already blogged this at our PHP Security Blog, but it is not (yet? hey Toby
Continue reading "PHP Conference 2006 - Session Slides and Quiz answers"
Posted by Christopher Kunz
at
00:28
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: conference, heise, ix, php, php-sicherheit, security, sicherheit, vortrag, xss
Tuesday, August 29. 2006Security-Quote des Tages
18:44:03 recorda warum ist mein code scheisse? 18:44:08 @absynth weil er unsicher ist 18:44:25 recorda rennt sowieso über https
(aus #php.de) Sunday, July 30. 2006Building PHP with cURL and libmysqlclient5After updating MySQL to 5.0.22 (needed for some projects) on our development box and recompiling PHP 4.2.2, I ended up with the following error at make install: PHP Fatal error: Unable to start curl module in Unknown on line 0It seems that this is indeed a MySQL issue and there is a PHP bug (bogused) as well as a MySQL bug report for the problem. There’s also a blog entry by Ilia that details a possible solution. Basically, MySQL saw it fit to link their binary distribution not against OpenSSL (which is probably available on near 100% of unixoid hosts out there), but YaSSL - of which I personally never even heard. Since function names seem to clash between Ya and OpenSSL, we have a nice mixup here that libcurl (which also links against OpenSSL) can’t really digest. It tries to call the YaSSL init function on startup and fails miserably. So, have fun compiling MySQL manually (and don’t forget that --without-server switch if you only want client + library)! Thanks to Pierre for pointing the link to Ilia’s blog out and to Ilia for the solution. Monday, July 3. 2006Conference Wrapup - busy weeks lie behind me
All in all, I roughly travelled around 5600 km, which is probably quite a lot given the fact that I otherwise leave Hannover rarely. I changed timezones twice, currencies 4 times (including transit airports), and spoke at two different (un-)conferences. There were nights in school gyms, Sofia park bars, hostel dorms and for 2 nights, I even slept in my own home (tue->wed->thu). My overall perception was that the security topic is still kinda “hot” and although most attendees (naturally, those at PHP Vikinger were more on top of things) seemed to have a firm grasp of what could go wrong with PHP applications, there is still a lack of trustworthy and well-designed solutions to the various security dilemmas. As Kris Köhntopp said on the PHP Vikinger, using stuff like mod_security, our Hardening Patch or other assorted security products is not a real solution, since there is no programmatical and wellformed approach to them. Instead of having a defined and limited outer and inner area for applications (like, an array of all possible URL entries to the application, as well as all possible output it generates), we are putting out fires as they emerge. Of course, we do that because we currently have no other way of keeping our boxes alive and the attackers out as long as possible, but still, Kris has a point. Continue reading "Conference Wrapup - busy weeks lie behind me"
Posted by Christopher Kunz
at
09:33
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: conference, ez, hannover, heise, hosting, ix, linux, mod_security, php, security, sicherheit, university, vikinger, vortrag
Book tip: Building Scalable Web SitesDuring the WebTech 2006 conference, I had the chance to look at the rather new (May ‘06) O’Reilly book “Building Scalable Web Sites” by Yahoo’s Cal Henderson. I bought it and read thru some of the chapters in the airplane back from Sofia. Turns out it was a pretty good buy. The author clearly shows expertise in all kinds of scaling (vertically, horizontally and probably even diagonally, with your eyes closed, while being tortured by tiny little BSD devils) and outlines proper approaches as well as handy tools for the admin and developer. There is even a lot of code in there, mostly to show where bottlenecks are, how to find them and how Flickr solved them, creating more scalable PHP code and in the long run, a more scalable web site. He points out that for the huge masses of photos they have to store, they actually invented their own storage protocol, mitigating some problems they had with FTP and SCP. While there’s probably something in that book for every administrator and web developer, I’d like to point your attention to a very neat little CLI tool Cal presents. It’s called “Slurm” (web site or apt-get install slurm) and it basically gives you a real-time graph of your network interfaces’ current thruput. Nice for seeing what happens on a box, without having to wait for your RRDTool graphs to update. See the screenshot below. All in all, very nice book so far and well worth the money. You should buy it. Saturday, July 1. 2006WebTech 2006: The mighty power of Thor exported to BulgariaSo there we are in Bulgaria, and two of the PHP Vikings actually made it here: Derick and me. As I write this, he’s having his first session about the eZ Components. The conference is very well-visited (with around 300 people attending to 2 tracks and some workshops) and so far has been pure fun. Bogomil, the organiser, and his wife have everything under control and they really know how to celebrate Yesterday evening, we experienced the mighty power of Thor first-hand: A huge thunderstorm went down over Sofia and literally flooded everything. In a brave attempt to get to the hotel, me and some other attendees ran from the restaurant, only to be greeted with lots of car alarm sirens (due to the hailing) and lots of water from every direction. The roads were actually converted to rivers with water flowing about 10-20 cm deep. I am not kidding you. Around 1pm, I’ll be in for my first session, talking about how to harden PHP and about the Hardened-PHP Project. Saturday, June 24. 2006First day of the PHP Vikinger
For about 4 hours now, the PHP Vikinger is in full swing. Everyone arrived between 10 and 11, and together we hacked up a makeshift agenda. Remember that this is an “unconference”, so attendees are in full charge of the whole event. Our lead viking Zak, inspired by the mighty power of Thor himself, took it upon him to moderate the scheduling and get everything started. Now, everyone who wants gets up and does a presentation, starts a discussion or - as Kris is currently doing - stipulates brainstorming with the attending core developers and other PHP nerds. The current discussion is even somewhat strategic, pointing things out that PHP still lacks, things that need to adopt to changes in our environment and stuff that is really good in comparison to other languages. Kris is creating a list of everything that’s thrown at him and every item so far has been diligently discussed. After that, Ilia and me will do some security stuff, with him doing introductions and me likely focusing on the server side. My obsession with securing servers without touching apps is well-known, plus it’s a good place to show off the Hardening patch. Continue reading "First day of the PHP Vikinger"
(Page 1 of 3, totaling 33 entries)
» next page
|


