Think I want to play around with this too, but using WOL instead.
I can make my nas with the webserver access my pfSense router, where I got the mac mapped for WOL. Only problem is that I can't make it shut down by it.
To hack that system, they would either have to hack the apache web server or pfSense.
Update
Got it working: http://bld.is-a-geek.com/wordpress/2010/10/10/wake-on-lan-with-pfsense/