I haven't contributed to some open-source projects in a while, but I know many friends who have heard contributed to many projects through 'Google Summer of Code': [0]
Sure, you don't have to only contribute via GSoC. You can also contribute directly to them in your spare time which is how some of the contributors (not all) have done before being core developers.