Rebrand the software and sell it as-is
Yes. Free and open source software licenses, as defined by the Free Software Foundation and Open Source Initiative, all allow rebranding the software and selling it as-is.
If I can sell it, if I modify the source code, do I have to contribute back the code changes I made?
Yes, you must release the source code for the changes you make. The CDDL is a copyleft license, which means that you need to release any changes you make under the same license.
From the license:
Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License.
(note: I am not a lawyer and this is not legal advice)