Look at these two photos I took.
First photo with the flare dots from the reflection of the lights against the sensor:
Angling the camera relative to the reflections, which by the way, were plainly obvious on the screen before I took the photo, I was able to completely eliminate the dots:
I didn't change my actual position at all. I simply angled the camera better to eliminate the flare. This demonstrates there's nothing wrong with the cameras. We, as photographers, need to be more careful when we take photos of bright lights in dark settings.
Finally, if you take a photo which shows these flares and you don't have the option to retake the photo, you can do what all professional photographers have at their disposal and that's photo editing tools such as Lightroom for iPhone and use the healing brush to remove anomalies you want to remove.