Slashdot Log In
Hackers Find Use for Google Code Search
Posted by
CmdrTaco
on Sun Oct 08, 2006 08:21 AM
from the thats-why-you-don't-comment-code dept.
from the thats-why-you-don't-comment-code dept.
An anonymous reader wrote in to say that "Google has inadvertently given online attackers a new tool. The company's new source-code search engine, unveiled Thursday as a tool to help simplify life for developers, can also be misused to search for software bugs, password information and even proprietary code that shouldn't have been posted to the Internet, security experts said Friday.
"
Related Stories
[+]
Google Code Search Reveals Dark Corners 297 comments
saccade.com writes, "The new Google Code Search isn't just for hackers sniffing for passwords. Jason Kottke and friends have discovered the new feature reveals all sorts of dark corners hidden in our code. And you thought nobody ever read your comments!" From the article: "Code search is a great resource for web developers and programmers, but like the making available of all previously unsearched bodies of information, it's given lots of flashlights to people interested in exploring dark corners."
This discussion has been archived.
No new comments can be posted.
Hackers Find Use for Google Code Search
|
Log In/Create an Account
| Top
| 176 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Isn't the point of open source... (Score:5, Insightful)
Re:Isn't the point of open source... (Score:5, Informative)
The problem is, not all developers perform this kind of search over their code. They may not even be aware that it's helpful.
Re:Isn't the point of open source... (Score:5, Insightful)
Re:Isn't the point of open source... (Score:4, Insightful)
(http://ian.testers.homelinux.net/ | Last Journal: Sunday March 18 2007, @01:47PM)
And you're surprised? Go to any site trying to teach programming in PHP and you'll likely find tons of vulnerable code. There seem to be very few PHP "programmers" who actually know anything about programming, let alone security. Most just copy from others (who copied from someone else, ad nauseum) and tweak. It will be quite a while before the amount of "secure" PHP code out there on the internet reaches critical mass.
Re:Isn't the point of open source... (Score:4, Insightful)
Seems to me that it's NOT necessarily open source. Besides, Open Source isn't a magic bullet. "You found a bug in my open source app so you should fix it and upload a patch"... wow what a cop-out answer. If you think that anyone who uses any open source app is also a software developer... and a good one at that... well, no wonder Linux isn't more popular.
I agree that it'd be nice if this article were actually an article though...
Re:Isn't the point of open source... (Score:4, Insightful)
(http://matt.waggoner.com/ | Last Journal: Tuesday February 17 2004, @02:03PM)
That's one point. Another point is that if your company, for example, uses an open source application, you can hire someone to fix it instead of having to rely on the company that sells it.
Yet another point is transparency -- being able to know WHAT the software is really doing, instead of having to trust the company that sells it.
Re:Isn't the point of open source... (Score:5, Insightful)
(http://www.elflord.net/ | Last Journal: Monday March 19 2007, @10:35AM)
Re:Isn't the point of open source... (Score:4, Interesting)
(http://www.nerdparadise.com/)
It's actually kinda funny (read: ironic.) My roommate works on Jaam (actually, my roommate and his boss *are* Jaam,) and according to him, he's allowed to know far more about Red aircraft than he is about Blue. Why? Because info on Red aircraft were obtained through spying or diplomacy, information about Blue aircraft is tightly controlled by the companies that make them.
And that's your daily dose of "our government is insane."
OSS - Theory vs. Reality (Score:5, Interesting)
I can't read code - it means absolutely nothing to me. So this whole point on OSS being transparent and knowing what the software really does, doesn't apply to me. Hell, if someone were to show me the source code to both Windows and Linux, I probably wouldn't even be able to tell which OS was which. All I care about is whether the software does what I need it to do; I don't plan on spending any evenings curled up to the fire reading source code.
So this leads us to the next pro-OSS argument, that if the program doesn't do what you want you can either make a solution or hire someone to do it for you. I've tried this (several times in fact), and it didn't work. Since I don't program I have to go out and hire someone to code the solution I want. Never mind that finding a coder can often be a royal pain, but each and every time not only has (or would have) it been more expensive to hire someone to code the solution, but it took longer than had I gone out and bought a commercial closed source package (or two) that did do what I want.
Lastly, I keep hearing how OSS programs are more nimble and should a bug or needed feature be identified, 'the community' will solve the problem much faster than a closed source solution. That may be for popular projects like Linux or Firefox, but in my experience I find the OSS programs to be less responsive to requests and needs than the closed source solutions.
As a scientist, I'm all for transparency and free flowing information. However, when push comes to shove, I need programs that work, and, while I really hate to say this, the OSS programs have always fallen short.
Re:OSS - Theory vs. Reality (Score:5, Interesting)
(http://rjmarq.org/ | Last Journal: Thursday October 02 2003, @07:19PM)
Her point was right on target - if we had the code, we could've easily contracted out fixing the program; it probably would've taken a competent programmer a couple hours to put the fix in and test it. But instead, we're stuck with a software package that's useless for many of the situations we wanted it for, unless the developer decides we're important enough to fix the software.
When this happened, I realized that the general public is becoming much more aware of the potential problems with closed-source software. For now it might just matter mostly to programmers, but sooner or later, it'll matter to a lot more people, too.
Re:OSS - Theory vs. Reality (Score:5, Interesting)
(http://sir-draknor.net/)
Just out of curiosity -- HAVE you contacted the developer asking for a fix? Just because its a closed-source solution you can't fix yourself, doesn't mean the vendor won't fix it if someone asks. Especially if its really as simple as a couple of hours (although there is always extra overhead, such as back-testing, etc.)
Disclaimer: I work for a closed-source software vendor, but we try very hard to meet the needs of all of our customers, so if they identify a critical issue we generally try to either find an acceptable work-around, or patch the code when possible. And (ideally) that would be done in such a way that you won't lose that fix when you upgrade. If you custom-fix your OSS solution, you either have to never upgrade, or patch every version that comes out; that seems to be a lot of long-term hassle.
Customer satisfaction is a big part of being a software vendor -- sure, you may be a small customer, but if my company is responsive to your needs then that builds good relations with you, and you may be an excellent referral source for us later (or become a larger customer yourself). That's a strong motivation for businesses that really care about their customers. And for professional-type products, buyers are more likely to pay extra for that good service.
OMG!!! (Score:2, Insightful)
Not earth-shattering (Score:4, Informative)
(http://www.how-to-make-a-bomb.eu/ | Last Journal: Monday April 17 2006, @09:30AM)
Someone [ihackstuff.com] has done pretty well out of the normal Google engine for this kind of "research".
They must have read Slashdot! (Score:5, Informative)
(http://covertcreations.com/)
Slashdot readers beat 'em to it!
The previous story /. precipitated comments [slashdot.org] that did exactly that.
find and fix (Score:2)
This is major threat (Score:5, Insightful)
(http://johannes.truschnigg.info/)
Search is misuse?!? (Score:4, Insightful)
The same as with ordinary text (Score:5, Insightful)
And people used Google to search for... (Score:5, Interesting)
(http://blog.mzzt.net/)
Absolute FUD (Score:4, Informative)
B.S.!
I've used Google search to find all sorts of code snippets over the years, particularly #define's for constants that Microsoft don't actually define anywhere on MSDN.
Flash! Google finds stuff on Internet! (Score:2)
What else can one say, but DUH. If someone is stupid enough to leave their confidential files on a fucking web server, they won't be confidential for long. Google didn't create the problem. malicious hackers would probably have found them anyway, just now everyone else can.
You mean like this? (Score:1)
# XXX a hole you could drive a fucking bus through
my $method = $self->cgi->param('method') || 'hello';
Yeah, I'm sure no malicious mind ever knew about grep and had to wait on Google.
evolution (Score:5, Insightful)
(http://barrett.9hells.org/ | Last Journal: Friday October 06 2006, @09:25PM)
Which is a good thing, if you realize bad environment also leads to evolution. More bugs exposed, the more developers will fix them, and maybe one day software designers will get it right, stop using insecure programming language, and write safer code.
Re:evolution (Score:5, Insightful)
No language offers 100% security. Some offer features that are easy to misuse in such a way as to inadvertently introduce security holes, but there is no such thing as a "secure" programming language; bad/inexperienced coders will produce dross whatever language they use.
politics, classical, but flawed (Score:2)
Imagine I'm a hacker ... (Score:3, Insightful)
blaming others for your mistakes (Score:5, Insightful)
(http://vftp.net/ | Last Journal: Saturday December 09 2006, @09:52PM)
The people that make the problems usually cry that the entire world needs to tell them about their mistakes in a nice quiet, private way, so they can silently fix them and avoid any unnecessary damage. The reality of this, as we have seen time and time again, is that when they are informed of these problems, so often they go ignored for months and months. And then the issue is finally leaked and they cry you didn't give us enough time! No, it was your fault to begin with, it doesn't matter if someone else made your mistake worse, none of this would have hapened without you screwing it up to begin with. This is how the world encourages you to try harder to get it right the first time instead of tossing us crap and fixing it later.
In summary, anyone that fights against auditing tools clearly has a quality control or security issue they are unwilling to fix and are afraid to have exposed.
(The whole model of "sell crap, fix later" is broken from the get-go. That's why we have crappy software hustled to the store in "version 1.0.0" form and have to beg the authors for bug fixes for the next half year. Problem is they already have your money, and that upgrade is free, so why should they pour resources into a 1.1 when there's no more money to be made? It's a losing proposition if you don't intend to release a paid 2.0 later, or if you think you can sucker them a second time)
Locks on doors. (Score:3, Interesting)
(http://covertcreations.com/)
A lot of people are skeptical about the security risks of this. The general claim is that if it's up on the web, a) it can be found anyhow, and b) you should know that it's secure (or insecure).
True, however here is another way of looking at it.
Lets say I buy a brand of lock for my house, which is later to be defective. Perhaps I don't know about this defect, or I don't have the time or expertise to fix it quickly.
Then someone develops a technology that alerts burglars to which houses have that specific brand of lock.
Wouldn't that be cause for some concern?
I think code-searching for vulnerabilities is mildly concerning, even far beyond the usual methods that exist without code search. Note I said mildly. This isn't going to cause the catastrophic collapse of the Internet. It's just one more thing for people to be aware of and (hopefully) take action on.
Yeah, right (Score:2)
(http://matt.waggoner.com/ | Last Journal: Tuesday February 17 2004, @02:03PM)
IDG Hatchet Job (Score:4, Informative)
(http://slashdot.org/~Doc%20Ruby/journal | Last Journal: Thursday March 31 2005, @01:48PM)
So Robert McMillan of IDG digs up a small competitor to Google Code, who says actually publishing open source is bad. Of course, the point of open source is that anyone, not just motivated attackers, can inspect the source to reveal problems, and even fix them ourselves.
Fortify doesn't seem to offer GPL [google.com] or any other open source for its own product. But it does seem to publish its own version of Google Code's results [fortifysoftware.com]. Which any worthwhile reporter would have learned, if they wanted to tell us a story about the risks of open source, rather than a competitor's story of how "Google is Evil".
I call this FUD (Score:5, Insightful)
So the key target is to get access to as many machines as possible, to create spambots, to phish for information, in other words, the key target for attacks is the machine of the common man.
Now, which approach would be more fruitful? To find a neat exploit, find out which software contains it and then match it against the software usually used by Joe Average? Or to do it reverse, find out what Joe uses and find exploits in that software?
I think the recent revelation of buffer overflows in MS-Office and the Javascript exploit in the IE answers that question.
Pure FUD (Score:2, Informative)
Playing with Google Code (Score:1)
It seems to me that they are just indexing open source projects and presenting a rather nice interface for it. In my opinion, it seems more like a meta sourceforge that finds OSS projects from all over the web by searching for projects that make their VCS publicly available. If a closed source company has its VCS publicly accessible, then they've already done their own damage.
I've recently been searching high-and-low for a decent open-source knowledge base application that I can implement for our IT department at work. This search has been complicated by the fact that so many open source projects have a knowledge base about their products, so I get a lot of false positives in my searches. As code.google.com indexes more and more projects, I am hoping it might just be of help in that particular task, since it is indexing the project descriptions specifically.
Like any other tool, code.google.com is not evil, but its manner of usage may make it so. Do we ban hammers and kitchen knives because they can be used to injure or kill? I think not. Anyway, "code.google.com makes it easier for an attacker to find a bug or exploit" is only true for small values of "easier". Think about it... if someone has the knowledge to review source code and find the bugs and create an exploit, then they were already probably smart enough to use existing google (and other search engine) tools to find what they needed. Your average script kiddie is going to be looking for an exploit handed to them on a silver platter, not to actually have to figure out an exploit on their own.
Just my $0.02
Re:Playing with Google Code (Score:4, Interesting)
http://www.google.com/codesearch?hl=en&lr=&q=buff
http://www.google.com/codesearch?hl=en&lr=&q=%22c
http://www.google.com/codesearch?hl=en&lr=&q=%22I
http://www.google.com/codesearch?hl=en&lr=&q=%22n
http://www.google.com/codesearch?q=%22but+who+car
You should be ready for it (Score:2)
'IT' just makes it easier to find what is already out there. I'd say good for Google, another good step to their goal of "indexing the world".
Google vs. (Koders|Krugle).com (Score:2)
(http://www.simpy.com/ | Last Journal: Tuesday April 15 2003, @12:58PM)
Too bad one can't get Google code search on there, too, but you can imagine how far that graph curve would be.
Any tool is like this (Score:2)
Seriously, any "tool" is like this. You can do wonderful creative things with it. Or you can do nefarious evil with it. That doesn't make the availability of the tool wrong or undesireable.
Like gcc and perl (Score:2)
(http://www.cryptohedonology.com/)
From TFA: Code Search is "another tool that makes it a tad easier for the attacker,"
Like gcc and perl. Gee, those pesky tools. What do you know, personal computers are another tool that makes it a tad easer for the attacker too.
Obviously developers concerned with security should take note of any new and current tools available, but to create a tone like Google is providing a date rape drug for crackers is just raw fud propaganda.
This Just In! (Score:1)
(http://www.adoarns.org/ | Last Journal: Wednesday August 03 2005, @10:58PM)
Take a second look at those knives, fellas! Monitor the internet! Be aware before pushing on that gas pedal! Think twice with that plutonium, kid!
Yes, BB guns are fun--but you'll shoot your eye out if you're not careful!
!!!!!!
Stupid title.. (Score:2, Informative)
thats what i did with it (Score:3, Interesting)
first rule of thumb (Score:1)
Warning Will Robinson! (Score:1)
(http://www.amoose.com/)
It has been reported that a recent new invention of google corp. by the name of 'maps' can be used for evil purposes.
These new 'maps' show information about a given area so terrorists can find new targets to bomb.
George Bush is putting a bill through very soon to ban this evil invention.
*YAWN*
NEWSFLASH: Knives can be used to kill people.
Its all a double-edged sword whatever you do I guess.
good (Score:3, Interesting)
Yes, and they are good implications. If a company lets proprietary, bug-infested source code leak onto the web, then they should have to deal with the consequences.
Changes Nothing But Speed (Score:1)
Google already indexes source code (Score:3, Interesting)
It may be dangerous, but is so call (Score:1)
(Last Journal: Monday November 29 2004, @05:18PM)
But, anyway, the tool can be used in order to spend [google.es] a [google.es] good [google.es] short [google.es] while [google.es].
In other news (Score:2)
do a search for... (Score:1)
(http://www.treesofgreen.co.uk/ | Last Journal: Wednesday November 12 2003, @07:51AM)
Re:I use it to find linux vunerbilities (Score:2)
(http://www.elflord.net/ | Last Journal: Monday March 19 2007, @10:35AM)
You know, forget for a second that Synaptic has been around for a while, and is usually labeled 'Find new software' in most good distros.
Re:I use it to find linux vunerbilities (Score:4, Informative)
(http://www.elflord.net/ | Last Journal: Monday March 19 2007, @10:35AM)
First: true for most cases. Linux Wifi support IS horribly lacking, but blame it on the vendors; we have to reverse engineer every chip that comes out, or use the windows driver.
Second: Patently not true for modern distros. Lite distros, that don't feel like adding the CURL drivers in, maybe, but I believe I've had an issue with exactly one printer on my laptop.
Third: Unbelievably not true. Not only does Linux itself handle USB drives seamlessly, but most distros automount it, and KDE automagically recognizes it and asks you what you want to do with it. You must've been playing with a complete shit distro. Or you're just lying through your ass. Either way, I call FUD.
Re:I use it to find linux vunerbilities (Score:2)
Re:I use it to find linux vunerbilities (Score:4, Funny)
(http://www.slashdot.org/~isorox | Last Journal: Saturday April 01 2006, @07:50AM)
So if Linux gets user friendly, it will drop to a 1% market share? Sounds like a reason to keep it not being user friendly!
Re:I use it to find linux vunerbilities (Score:1)
(http://rogers-blog.blogspot.com/ | Last Journal: Friday November 18 2005, @07:19PM)
Re:I use it to find linux vunerbilities (Score:1)
Re:I use it to find linux vunerbilities (Score:1)
(http://www.penguinkidsdomain.co.uk/)
Re:I use it to find linux vunerbilities (Score:1)
(http://nickstallman.net/)
Works fine on Linux. Who would have guessed.
Your not using a standard *Desktop* distro. Before you make a fool of yourself go download Knoppix or something.
Re:I use it to find linux vunerbilities (Score:2)