Yes, a 10x12 shed needs a foundation—it’ll stop it from shifting or settling.  A common type of foundation for a shed is a concrete slab, which should be at least four inches thick and extend slightly beyond the shed’s perimeter.  Another option is a gravel or crushed stone foundation, which involves leveling the ground and adding a compacted gravel or stone layer.