This New York Times post in the Well section nicely summarizes the ways sleep deprivation can lead to weight gain. From the article:
“The research showed that depriving people of sleep for one night created pronounced changes in the way their brains responded to high-calorie junk foods. On days when the subjects had not had proper sleep, fattening foods like potato chips and sweets stimulated stronger responses in a part of the brain that helps govern the motivation to eat. But at the same time, the subjects experienced a sharp reduction in activity in the frontal cortex, a higher-level part of the brain where consequences are weighed and rational decisions are made.”
Read the full article here.