Consuming undercooked eggs can also lead to Salmonella infection, which causes an upset stomach and diarrhea up to 72 hours after eating. If you make sure to buy fresh, uncracked eggs at the store, but they crack on the way home, you can crack the eggs into a bowl, cover them tightly, and refrigerate them, per the USDA.