6 ms·
I am aware this is not contributing to the thread but... the only way I can summarize my feelings on that is 'holy fuck'. I just spent a minute just muttering '
by tetha 9y ago
I am aware this is not contributing to the thread but... the only way I can summarize my feelings on that is 'holy fuck'. I just spent a minute just muttering 'holy fuck' to myself.
They are running the good old php shell of "<%= system(%_REQUEST['cmd']) %>". As root. As a security company.
This entire company is just blowing my mind at the moment. What's next, are they running their services on a notebook in the office?
- acobster 9y ago> mailed 23000 private keys I had a similar thought. My thought was: "HOLY SHIT!"
- blattimwind 9y ago"As a security company." Well, their CEO's linked-in profile doesn't really sound like a security company. > Email Marketing Digital Marketing Google Analytics Google Webmaster Tools Market Analysis Marketing PPC SEM SEO Sales Security Social Media Marketing Web Analytics Affiliate Marketing Google Adwords Management E-commerce Lead Generation Online Marketing Online Advertising SaaS Marketing Strategy Strategic Partnerships Cloud Computing New Business Development Business Strategy Start-ups Web Development CRM Social Media Product Marketing Solution Selling Strategy Channel Partners Channel Sales Business Alliances Business Development Leadership Social Networking Network Security Hardware Product Management B2B Professional Services GTM Partner Program Development Internet Security Google B2B Marketing Sales Operations
- tetha 9y agoIf you sell certs, you're a company in a security-related context. I don't care who you are, I care if you do your job. Saying that, that quote sounds way too long to not be BS.
- hetspookjee 9y agoThe quote sounds like SEO.
- mead5432 9y agoOn the plus side, a notebook doesn't have connection to the internet...
- taylorexpander 9y agoIn some languages (German for one) the common word for laptop is translated to notebook in English.
- williamscales 9y agoThe term notebook computer is used in English as well, however its usage has declined significantly over time compared to the term laptop: https://trends.google.com/trends/explore?date=all&q=laptop%20computer,notebook%20computer https://trends.google.com/trends/explore?date=all&q=laptop%2...
- hug 9y agoIt is declining, but I highly suspect the MacBook will remain the MacBook, and not the MacTop.
- Hupriene 9y agoI choose to believe that this is performance art. The world is a better place that way.
- TheDong 9y agoWhat they actually had was probably more like: system('openssl req -config /prod/prod-config.cnf -subj "/CN={$DOMAIN}" ....' And whoever wrote that function assumed someone else had sanitized DOMAIN. It looks like a lot more understandable of a mistake when framed like that.
- flamingcow 9y agoDoes it really? Even if the code author hadn't learned to escape/sanitize close to use so it's visible (or to avoid cases where you need to escape/sanitize entirely, like using something that bypasses the shell and takes array arguments), let's look at the manpages. PHP's system() manpage: http://php.net/manual/en/function.system.php http://php.net/manual/en/function.system.php [red box] Warning When allowing user-supplied data to be passed to this function, use escapeshellarg() or escapeshellcmd() to ensure that users cannot trick the system into executing arbitrary commands. system(3): http://man7.org/linux/man-pages/man3/system.3.html http://man7.org/linux/man-pages/man3/system.3.html Any user input that is employed as part of command should be carefully sanitized, to ensure that unexpected shell commands or command options are not executed. Such risks are especially grave when using system() from a privileged program. This is a canonical mistake that's used as a mistake example in textbooks.
- benmmurphy 9y agoat this point i think the problem with system() should be blamed on the language and not the people using the language. how many legitimate uses of system() functiona call are there. a primitive that does fork() execv() on an array is a much better alternative. yeah, it doesn't 100% fix problems you might have issues with - style flags but you are in a much better situation. like if your users want to do system() maybe force them to do the extra work. system() style functionality -> should be the hard thing to do execv() style functionality() -> should be the easy thing to do
- technion 9y agoWhilst I do wish I could cleanse a web application of actually supporting system(), we have system() in Perl, Ruby, Python, and modules for Node. I've seen people bagging PHP and that really isn't fair. Shower thought: Allow me to globally disable system() in for language x. Aside from the obvious case of just banning these insane system calls, you're protected against surprise vectors in parsers. Edit: You would presumably mitigate pipe open vulnerabilities too
- Sukotto 9y agoI propose a new term: "Clown Car" security. For situations like this where a fiasco just keeps getting worse, each step its own facepalm. * Asking users to generate private keys on the issuer's server * Storing those private keys * Emailing those private keys * Sending that email completely in the clear * Running unsanitized user input on their server * as root