Preheat oven to 350°F (175°C). Grease an 8-inch square glass baking dish.
Whisk flour, granulated sugar, 1/4 cup cocoa powder, baking powder, and salt together in a bowl.
Stir in milk, melted butter, and vanilla extract until a thick, smooth batter forms; spread evenly into prepared baking dish.
Mix brown sugar and remaining 1/4 cup cocoa powder in a small bowl; sprinkle evenly over top of batter.
Pour boiling water gently over entire surface using back of a spoon; do not stir.
Bake for 32 to 35 minutes until cake center springs back and pudding sauce bubbles beneath.
Let stand for 10 minutes before scooping into bowls with vanilla ice cream.