Apple Inc.'s iCloud service may have been used to illegally access nude photos of actress Jennifer Lawrence and other celebrities, raising security concerns as the company prepares to unveil its newest iPhone.