Is it true that if a ritually impure, or a menstruating woman visits one who is in confinement, harm will be inflicted on the latter, or her baby?
This is completely wrong and unfounded piece of information.
Allah The Almighty Made marrying up to four women lawful, but human beings prohibit that with their own land laws. What is the position of Sharia on this?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
What Allah has made lawful, human beings can`t make it unlawful. However, taking the decision to marry up to four women requires material and physical abilities, in addition to having the courage to make such a decision. And Allah The Almighty Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
I made a vow "If the Israeli troops retreated out of Gaza strip I will buy a cake from a certain bakery" and it happened. Am I obliged to buy from the same bakery?
You are obliged to buy from the same bakery. And Allah Knows Best.