That's lens flare. All iPhones do it in certain lighting conditions. It's caused by bright sources of light reflecting back on internal lens elements. If a DSLR or film camera lens did that it would be totally unacceptable- a sign of a cheap poorly designed lens, but since smartphone lenses are so small, lots of compromises have to be made.