The Messenger of Allah (ﷺ) wiped over the socks.

Another version adds: "On the back (upper part) of the socks."
Sunan Abi Dawud Book 1, Hadith 161