
Your last photo-if leaking at B would be easy-but sounds like at A.
Brighting the pic revels what appears to be a thin flange?
Curious you said you could see pipe wiggle from inside the tanks, you actually SEE the pipe? Is it flush inside?
This is what I believe you have

ABS holding tank flange or holding tank hub inlet. It is glued
To effectively repair you will need to remove. Hopefully its completely loose. Other than access problem I'm see is re-orientating, short of replacing everything aligning might be hardest part. You can buy replacement pieces. I might look at disconnecting the gray water line-splicing in at least one piece of flex coupling (hose with clamps). Worst case just put another dump valve-there are work arounds so Id focus on the tank flange.