How prevent or restrict the usage of ?.do back door to backend

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 03:47 AM
Does anyone know how we could either prevent or at least restrict the usage of "?.do" back door to backend?
As you well know, many customer wants to restrict the end users = roleless users of going to backend. As there are some OOTB ways to automatically redirect (roleless) users from backend (nav_to.do) to portal, they do not get triggered when ?.do is used. Neither I have found a way to prevent the usage of this method for named or even all users. Any thoughts on this?
What I have tried is: I created an UI page with name '?' and tried creating various ACL rules for it. No effect.
I also created a Support ticket for this.
- Labels:
-
Platform and Cloud Security
- 1,771 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 06:17 AM
Hello AnttiP,
You could probably use a UI Script to check the current page using window.location and redirect to the portal if it contains ?.do but you can also purely just redirect if they don't have a minimum role like itil using the solution in: https://community.servicenow.com/community?id=community_question&sys_id=4972e50edbfceb848e7c2926ca96...
Please mark my answer as correct/helpful if it has helped you.
Thanks,
Logan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 10:14 PM
Hi Logan,
Thanks for the tip. Unfortunately I was not able to get the UI script marked as solution in another thread to work in my San Diego PDI. Sooo, we're still in square one with this.
BR,
AnttiP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 10:40 PM
Restricting local login
var r = new Packages. java. util. Random ( ) ;
var str1 = Packages. java. lang. Long. toString (Packages. java. lang.
Math. abs (r. nextLong ( ) ) , 36 ) ; var str2 = Packages. java. lang.
Long. toString (Packages. java. lang. Math. abs (r. nextLong ( ) ) , 36
) ;
var newPass = str1 + str2 ;
target. user_password = newPass ;
//password now set to a random string like this:
//qvm81zdrn7cwwylpvw94eebk
https://docs.servicenow.com/bundle/sandiego-platform-administration/page/integrate/single-sign-on/re...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 11:03 PM
Hi Pranesh,
Your reply has nothing to do with my original question.
BR,
AnttiP.