If the song is not your own and protected by copyrights or you do not have permission to distribute it in that method, then yes it would be illegal to even have it available for download.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.