I would think it would run a firmware function to do the resetting, and if not that, then some sort of sell script that is not callable by their web interface.
Due to all this stupidness, my weekend is going to be consumed by trying to find out if my Synology has something stupid in it (assuming I can even figure that out).
So my trust in "personal" network storage devices has been shattered. Hopefully Synology is not as dumb.