cwa-app-android icon indicating copy to clipboard operation
cwa-app-android copied to clipboard

Implausible screenshot certificate technical expiration dates

Open MikeMcC399 opened this issue 4 years ago • 3 comments

Avoid duplicates

  • [X] Bug is not mentioned in the FAQ
  • [X] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
  • [X] Bug is not already reported in another issue

Technical details

  • Device: Android Tablet for screenshot capture
  • First reported on App version: 2.9.0
  • Reviewed as not yet fixed in App version: 2.26.0-RC1
  • Android version: 11

Describe the bug

Certificate screenshots shown on https://www.coronawarn.app/en/screenshots/ use implausible and expired technical expiry dates in the past.

https://www.coronawarn.app/en/screenshots/#android_test_certificate:

https://www.coronawarn.app/en/screenshots/#android_vaccination_certificate:

https://www.coronawarn.app/en/screenshots/#android_recovery_certificate:

Edit: Links and dates/times updated for CWA 2.25.0

Steps to reproduce the issue

(Set device to small font to capture complete certificate)

  1. In Android Studio
  2. Run TestCertificateDetailsFragmentTest.kt
  3. Run VaccinationDetailsFragmentTest.kt
  4. Run RecoveryCertificateDetailFragmentTest.kt
  5. View > Tools Windows > Device File Explorer
  6. Go to /data/data/de.rki.coronawarnapp.test/screenshots
  7. View screenshots

Expected behavior

According to https://www.coronawarn.app/en/faq/#eu_dcc "Currently, in Germany, the digital vaccination, test and recovery certificates of the EU are usually issued with a technical validity of one year from the date of issue."

EU Digital COVID Certificates were not introduced until mid 2021 (see https://ec.europa.eu/info/live-work-travel-eu/coronavirus-response/safe-covid-19-vaccines-europeans/eu-digital-covid-certificate_en#timeline), so if the technical validity is one year, then none of the certificates can have a technical expiration date before mid 2022.

Pharmacies started to issue vaccination certificates on Monday, June 14, 2021 (see https://www.abda.de/aktuelles-und-presse/pressemitteilungen/).

Although the published screenshots do not show other certificate details, if screenshots are captured on a tablet with small font size, it can be seen that the expiration date is also inconsistent with the corresponding event.

Dates and times below from 2.26.0-RC1:

File Event Technical Expiration Duration of Validity
TestCertificate 12.05.2021 19:00 5/12/21, 7:00 PM 0 minutes!
VaccinationCertificate 2021-02-18 5/16/21, 2:00 AM 3 months!
RecoveryCertificate 2021-05-24 Current date and time > 1 year!

Possible Fix

Ensure that the technical expiration date for certificate screenshots corresponds to real use certificates.


Internal Tracking-ID: EXPOSUREAPP-9299

MikeMcC399 avatar Sep 04 '21 12:09 MikeMcC399

Hey @MikeMcC399 ,

Thank you for your report. We have notified the dev team about the issue. They will look into it now.


Corona-Warn-App Open Source Team

heinezen avatar Sep 06 '21 12:09 heinezen

@MikeMcC399 This issue seems fixed. Non of the screenshot paragraphs you mention still show a screenshot with a technical expiration date.

Ein-Tim avatar Jun 22 '22 20:06 Ein-Tim

@Ein-Tim

This issue seems fixed.

The issue only looks fixed if you inspect the current screenshots on the website, however these screenshots do not show the whole of the certificate so the problem is still there, but it is hidden.

The way to check for the underlying problem is to go through the steps to reproduce with a tablet for instance.

The test certificate date and time of expiry is exactly the same as the date and time of sample collection. This is an implausible example because the test certificate is never valid if the length of time of validity is 0 minutes.

TestCertificateDetailsFragment_expired_2

MikeMcC399 avatar Jun 23 '22 07:06 MikeMcC399

  • PR #5461 resolves this issue. Each of the certificate screenshots has a technical validity of one year:

Dates and times below from 2.27.0-RC0 (https://github.com/corona-warn-app/cwa-app-android/commit/7710cc9c73593716952e9f9143699bae72147194):

File Event Technical Expiration Duration of Validity
TestCertificate 12.05.2021 19:00 5/12/22, 7:00 PM 1 year
VaccinationCertificate 2021-02-18 2/18/22, 3:00 PM 1 year
RecoveryCertificate 2021-05-24 5/24/22 3:00 PM 1 year

MikeMcC399 avatar Aug 17 '22 16:08 MikeMcC399

This issue has been fixed, so any related screenshots which are generated in advance for the 2.27 should be correct. Closing therefore.

MikeMcC399 avatar Sep 05 '22 17:09 MikeMcC399