AFAIK the WoW server code was never leaked. All private server code bases were developed by reverse engineering network traffic, game behaviour and client asset files.

E.g. the code for AzerothCore is fully available (and very easy to run on very low spec hardware)

https://github.com/azerothcore/azerothcore-wotlk