SafeExamBrowser / seb-mac

Safe Exam Browser for macOS and iOS
https://www.safeexambrowser.org/macosx
101 stars 41 forks source link

seb:// and sebs:// protocols crash on SEB 3.0.1 iOS #134

Closed t00 closed 1 year ago

t00 commented 3 years ago

After upgrading to iOS 15 and SEB to 3.0.1, both seb and sebs protocols are causing SEB to crash when starting. No request is being made to the server to download the seb configuration file.

After clicking (any browser - tried Safari and Firefox which nicely shows the actual link clicked), a white SEB background is shown for 1 second and closes afterwards.

To reproduce use a simple jsfiddle

danschlet commented 3 years ago

You have to provide real settings and not a fake seb(s) link...

If you configure SEB client settings to show some page without a quit password and start the app first (directly with its icon), the error message below would be displayed. The error is currently not displayed when SEB is started with a seb(s) link or when opening a .seb file. I will improve that error message and displaying sometimes, but that wasn't changed at least since SEB 3.0 (it might have worked better in SEB 2.x, but 3.0 was a major refactoring and there surely still are some flaws).

image

t00 commented 3 years ago

Thank you for taking time to answer and re-check the issue. I just finished testing it with a colleague on 2 devices - iPhone 11 with iOS 14.8 and iPad mini 5th gen with iOS 15 and the crash is always reproducible on the iPad mini. Both devices are running SEB 3.0.1.

Steps to reproduce are slightly convoluted as SEB must be removed from memory for a crash to happen, one of 2 options:

  1. double tap home -> swipe up SEB window
  2. uninstall SEB -> install SEB - do not open

The crash does not happen when SEB is opened prior to clicking on a link. And just as you wrote, link is invalid and when it works, correct error message is shown but when SEB crashes, it does not even try to download the file so the link might as well be broken.

Now, I cannot be certain if this issue had existed on SEB 3.0.0 as well or earlier versions, or if it is related to iOS 15 but above should hopefully provide enough clues to reproduce it.

danschlet commented 3 years ago

I was able to reproduce the crash, as you mentioned when SEB is not running prior to clicking the link. Thanks for the report, I will add this issue to the backlog and fix it in the next update.

I just want to make sure that this doesn't happen with a valid seb(s) link to a valid configuration file. If you would observe such a case, then please try to provide a reproducible test for that as well.

xavier-bw commented 3 years ago

This definitely also happens with valid sebs links. If you open https://www.bookwidgets.com/play-links/5632428767969280 and log in with a google account - sorry, can't work without - it will redirect to a sebs:// link that crashes in SEBS 3.0.1 on IOS 15.0.x. Launch and exit password :

abc