Likely, your dishwasher is leaking because the door seal (also referred to as a gasket ... Inspect the seal groove and if it appears unclean, lightly scrub it using a soft sponge combined with water ...
The rubber gasket around the refrigerator door is a notorious spot for mold ... Apply it to the seals with a sponge and leave it for 10-15 minutes to allow the bleach to penetrate and kill mold ...