I have encountered something that is very confusing. My problem is this. I am assuming two infinite cubical Gaussian surfaces sharing a common side. One of the cubes contains a charge $q_1$ at a finite distance from the common surface and the second cube contains a charge $q_2$ at a finite distance from the common surface.
Now both the charges contribute flux to their respective Gaussian surfaces only at the common surface as the electric field at infinity goes to zero. So, the flux of first cube should be negative to that of second cube, which implies $q_1=-q_2$ which is certainly not true for all cases. Where is my argument flawed?