Firmware diff: new backdoor
The IoT gateway manufacturer released the 1.3 firmware as a «security improvement». You obtained both images (fw_v1.2.bin and fw_v1.3.bin) in firmware.zip and suspect that the new version contains a technical («factory») access that was quietly left in.
Image format: a 32-byte header (the SMSFW2 marker, u16 major, u16 minor, u32 payload length, u32 CRC32 of the payload, ...; all little-endian), followed by a gzip payload of that length, then 0xFF padding. Inside the gzip there is a cpio (newc, 070701) file system archive.
The archive is extracted like a normal cpio -i: if the same name occurs several times, the later one overwrites the earlier one.
Task: find the new/changed files of v1.3, read their logic, open the secret (vault) that the device stored, and find the flag in the secret= value: BAYROQ{...} (the last 16 characters are lowercase hex). Note: the old v1.2 image has a similar vault too, but the flag belongs to v1.3.