Legally Russia is the internationally recognized successor state. Russia even paid off the whole Soviet debt, but in exchange inherited all of the USSR's legal privileges (right to have nukes under NPT, right to the spot on the Sec Council, right to observer state in Danube, etc)