BUG: Server.Execute ignores web.config <location> role permissions

P

Paul

I have an intranet site that uses authentication mode="Windows" with
identity impersonate="true". I recently implemented a site search
feature that uses server.execute to retrieve dynamic content for the
search. Unfortunately, Server.execute retrieves pages that the user
can not access. The pages appear in the search results with the found
terms highlighted in context. Rut-roh! So much for security. When the
user clicks the link to see the page located by the search, they get
the custom access denied page, but they've already seen some content
that they were not authorized to see.

The work arounds I have come up with are not elegant.
 
P

Paul

As a workaround, before I call Server.Execute I now check to see if
there is a location entry in web.config for the path/file. If there is,
I call User.IsInRole against the listed roles in any allow or deny
lists found.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top