Yes, hash is legal. But only if the maximum THC content is below 0.2% or 0.3% (in Austria).
Disclaimer: CBD products are not medications and cannot diagnose, treat or cure disease. Always consult your own physician before starting any new diet program.