OK you need to strip all around the pipe like at least 4 feet by 4 feet . Then repair any wood that is rotten....then Ice / water shield the entire area. Install a New Flange and re-shingle it and then it will be fixed. You just can't add Crap on top of Crap and hope it seals the leak....that never works