Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Control what scripts can be invoked using fmp protocol

Featured Replies

Hi Guys,

As I'm developing an app, making use of the fmp protocol to invoke other databases, I was left wondering.

I use username/passwords to invoke scripts from another database using the fmp protocol, and if no username/password is specified it asks for one. But, if  the user logging in is known and has the correct password, they could invoke any scripts they have access to in the database they're invoking. Note that I don't expect endusers to specify what script to invoke. I do this using scripts, the end user has no idea they're going from one DB to another.

But it left me wondering. If someone created their own little local database, they can effectively invoke any script (as long as the user they're logging in with has access to invoke scripts using urls) that lives in the database if they know the correct name of the script. I know, it's very unlikely they'll be able to guess the names, or that they'll be able to retrieve a list of script names, but having worked in IT for well over 20 years mostly as a Network Engineer with a lot of security focus, I just can't help but wonder if there's a way for me to control what scripts can be invoked using a url.

I know that the OnWindowFirstOpen always gets invoked if used, and that would be the place I would probably test. But afaik I can't retrieve the script stack, therefore can't check what script gets invoked after the OnWindowFirstOpen script.

Is there a way, in the DB being invoked, to retrieve the script specified in the fmp url? If I can retrieve that script name, I can create a list of scripts that are allowed to be invoked by fmp. I realize I have to be careful when renaming those scripts of course.

Starting in FileMaker® Pro 16, users cannot call scripts using FMPURL unless and until their Privilege Set is explicitly set to allow them to do so.  Look in the Extended Privileges section.

 

ExtendedPrivilegesOff.png.bf5c62985f72be809f01e2788daf16b0.png

 

Steven H. Blackwell

  • Author

Yeah, but that's an all or nuthin' approach. I like a bit more granular control. Out of all my hundreds of scripts, only a handful are used with the fmp protocol. It makes sense to restrict fmurlscript to only those.

But can I? It can't be done through priviliges, at least not as far as I can see.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.