yes upgrade requires a license of CS2… thus using the license, thus making either your copy of CS3 or the copy of CS2 illegit.
If you bought the FULL version of CS3 then you can legally sell this and both licenses are valid, otherwise might as well be torrenting a copy