Automattic publishes their WordPress.com Terms of Service under a Creative Commons Sharealike license, meaning you can copy, redistribute and build upon the material for any (including commercial) purpose.
Might be a good start for a Saas: https://en.wordpress.com/tos/