10

Is it legal for me to write a small exploit (possibly to a closed issue) and put it up on the internet for everyone to see (as a tutorial)? I have been researching the legality of exploiting vulnerabilities and I came across CFAA (Computer Fraud and Abuse Act.) Looks like there is nothing in CFAA that explicitly prevents something like this but I might be overlooking something.

FYI: I am currently located in Canada and I am interested in legal issues that relate to North America.

essefbx
  • 172
  • 12
SivaDotRender
  • 326
  • 3
  • 11

1 Answers1

17

I don't know about the CFAA specifically, but good general guidelines for educational, or exploratory penetration testing are:

  1. Only attack servers that you control, or that you have express permission to attack. For example, some people leave up websites with known vulnerabilities so that others can "practice hacking" on them. These sites usually have a disclaimer expressly giving you permission to attack them. Without that disclaimer, you can get in big trouble for launching an attack on a domain that you don't control.
  2. Only publish exploits for known (and patched) vulnerabilities. If you are playing with exploits that have already been published in academic journals / conferences, or are otherwise well known, then you're probably ok to post it on the internet, especially if a patch is available. However if you discover a new exploit, or are unsure if it's new, then it's better to go through official channels and notify the vendors before making anything public.

EDIT:

The OWASP WebGoat Project exists specifically to address issue (1.) :

WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web application security lessons.

You can download and install the WebGoat packages onto your own machine and then run all the attacks you want!

If you have strong concerns about issue (2.) and publishing, you could always get in touch with your local OWASP Chapter and ask them.

Mike Ounsworth
  • 57,707
  • 21
  • 150
  • 207
  • 3
    A frequent practice I see on each clean research or educational site is some kind of disclaimer telling something like "The information provided here is for educational purpose only. All unauthorized use etc.". I'm not a lawyer to tell whether such mention has any real juridic weight, but it may help to show your intent to be "on the white side" as an IT security student / researcher. – WhiteWinterWolf Apr 28 '15 at 15:47