Both Buddhism and Taoism are non "thiestic" religious philosophies (religions), and each contain mechanisms for distinguishing right from wrong.
They are both esoteric, just as much as theistic religions are...
In the martial arts, there is no right and wrong... only raw power counts...