Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How best to present a security vulnerability to a web development team in your own company?

Tags:

security

xss

Imagine the following scenario:

You work at Big Co. and your coworkers down the hall are on the web development team for Big Co's public blog system, which a lot of Big Co employees and some public people use. The blog system allows any HTML and JavaScript, and you've been told that it was a choice (not by accident) but you aren't sure if they realize the implications of this.

So you want to convince them that this is a bad idea. You write some demonstration code and plant a XSS script in your own blog, and then write some blog posts. Soon after, the head blog admin (down the hall) visits your blog post and the XSS sends his cookies to you. You copy them into your browser and you are now logged in as him.

Okay, now you're logged in as him... And you start realizing that it maybe wasn't such a good idea to go ahead and 'hack' the blog system. But you are a good guy! You don't touch his account after logging into it, and you definitely don't plan on publicizing this weakness; you just maybe want to show them that the public is able to do this, so that they can fix it before someone malicious realizes the same thing!

What is the best course of action from here?

like image 663
BigCoEmployee Avatar asked Jun 10 '10 20:06

BigCoEmployee


2 Answers

Really depends on your position in the company, the nature of the people down the hall, etc. etc....

To present one option:

Walk over to them, describe the threat in abstract terms ("somebody could hijack your cookies, which in turn..."), and ask them if they would like to see a demonstration? If there are big egos in play, and you really want them to fix it, don't talk to the whole team, but just the team head.

If they agree, wait a few hours, and come back logged in as "him", and do something non-destructive but noticeable in the system - you did so with their permission. They will probably be impressed, and see to it that the hole gets fixed.

If they disagree and tell you go away, well, you'll have to weigh your options: Either you take it someplace higher, or you bury it. By mentioning the issue you will have given up all options of sending it in anonymously.

If you can't be 100% sure that everybody in the decision chain is reasonable and totally understands what you're doing, and that it is for the good of the company, I wouldn't do any rogue "hacking" - always talk about it first, especially in a big company environment. This stuff is too easy to misunderstand as malicious on your end - especially if there's someone who will be embarrassed by building this security hole, and would like to put the blame on somebody else.

like image 61
2 revs Avatar answered Jan 02 '23 19:01

2 revs


Everyone's focusing on fixing the web site's problem, and maybe I'm just a little Machiavellian, but I'd also think about making sure my objections were on record in writing; I'd write an email to a few of my superiors.

The last thing you need is the site to be exploited, and the decision maker coming around insisting it was your job (or your buddy's job) to consider that technical aspect, and you finding no one remembers that you spoke up.

like image 24
Richard JP Le Guen Avatar answered Jan 02 '23 19:01

Richard JP Le Guen