Inspekt.ID reads and verifies electronic passports and identity cards, and stores the results on the device, so vulnerabilities can affect people's personal data and the trust they place in a verification result. Please report them privately.
Use GitHub's private vulnerability reporting: Security → Report a vulnerability in this repository, or go to github.com/gmrtd/InspektID-iOS/security/advisories/new. Please don't open a public issue for a suspected vulnerability.
Include, where you can:
- what the issue is and its impact (for example: document data exposed, a forged or cloned document shown as verified, a crash from a crafted file);
- steps to reproduce, or a proof of concept. Use synthetic or specimen documents (such as the in-app sample, or ICAO specimen data). Never send real passport data, MRZs, CANs, chip dumps or
.gmrtdexports of real documents; - the app version (Settings → About Inspekt.ID), and the GmrtdKit and GmrtdCore versions shown there;
- the iPhone model and iOS version.
This repository covers the iOS app: the scan flow, how verification results are presented, scan history, export and import of .gmrtd files, settings, and analytics.
The chip protocols and cryptographic verification (PACE, BAC, Passive, Active and Chip Authentication, PACE-CAM, CSCA trust chains, ASN.1 and CBOR parsing) are implemented in gmrtd, and the NFC integration in GmrtdKit. Report issues there if you know where they belong; if you're not sure, report here and we'll route it.
Things that are by design, not vulnerabilities:
- Documents without Active Authentication, Chip Authentication or PACE-CAM can't be proven to be the original chip. The app says so.
- An imported
.gmrtdfile can't prove which chip it came from, so chip authentication recorded in it is never counted (see the README). - Exported
.gmrtdfiles are not encrypted. The app says so.
Security fixes go into the latest release. Please check that you can reproduce the issue on the current main branch or the latest App Store version.