Rule Definition
An attacker could access other user information thanks to string injection threw the withFormat method. This is why it is highly recommended to avoid the usage of the API
Remediation
Usage of unstructured, strictly structured, and weakly structured data with explicit lengths are less likely to pose security risks
Reference
https://www.owasp.org/index.php/Mobile_Top_10_2014-M7
https://developer.apple.com/library/mac/documentation/Security/Conceptual/SecureCodingGuide/Articles/ValidatingInput.html#//apple_ref/doc/uid/TP40007246-SW3
Related Technologies
Technical Criterion
Secure Coding - Input Validation
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.