In rice water diarrhea, which is commonly associated with cholera, the bacteria Vibrio cholerae produces toxins that affect the GM1 ganglioside receptor on the intestinal cells. The toxin increases cyclic AMP levels in enterocytes, leading to massive secretion of water and electrolytes, causing the characteristic rice water stool. GM2 ganglioside is not involved in this process.