All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
Inserting one's hand in the vagina does not necessitate Ghusl (a ritual bath); neither is it desirable to perform Ghusl for this purpose. It only requires ablution and removing anything that stuck to your hand. So you are not obliged to perform Ghusl after having these discharges. Furthermore, it does not affect the validity of fasting.
Allaah Knows best.