What should one who forgot to offer the second Sajda during congregational prayer, and remembered it before the end of the prayer do?
All perfect praise be to Allah, The Lord of The Worlds. Whoever forgets a pillar of prayer while in congregation must follow the lead of the Imam, and after the latter offers Tasleem, he should offer one Rakah, then perform Sujood As-Sahw (prostration of forgetfulness). And Allah 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.
Should Al-Basmalah (i.e. saying Bismillaaahi Ar-Rahmaani Ar-Raheemi) be recited after Takbeerat Al-Ihram (saying Allahuakbar) which marks the beginning of prayer?
All perfect praise be to Allah,The Lord of The Worlds A praying person is obliged to recite Al-Basmalah at the beginning of Chapter Al-Faatihah, and in every Rak`ah (unit of prayer) because it is a verse of it. And Allah Knows Best.
Is it permissible for a woman who is in her confinement to fast upon seeing blood signs that are neither black, nor red ?
Brownish, reddish, and yellowish discharges are all considered confinement until there is no colored discharge which marks the end of confinement. Moreover, the aforesaid woman is prohibited from fasting until she attains ritual purity. And Allah Knows Best.