Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Security hole or feature? (IIS related)

Security hole or feature? (IIS related)

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestiondatabasecomwindows-admin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Philip Patrick
    wrote on last edited by
    #1

    I have a COM object which runs on IIS server. From within, I can't access files on another computers in Local network. But I needed to. So I thought about a workaround and created a thread with specified Scurity Attributes. That worked. Now (dunno why) I tried to create a usuall thread (using AfxBeginThread(&Test, NULL)) and ..... inside this thread I could access files on other computers also! Now here comes a question. Why it is so? And is this a security hole, or a feature that I can use in my programs? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it!

    O 1 Reply Last reply
    0
    • P Philip Patrick

      I have a COM object which runs on IIS server. From within, I can't access files on another computers in Local network. But I needed to. So I thought about a workaround and created a thread with specified Scurity Attributes. That worked. Now (dunno why) I tried to create a usuall thread (using AfxBeginThread(&Test, NULL)) and ..... inside this thread I could access files on other computers also! Now here comes a question. Why it is so? And is this a security hole, or a feature that I can use in my programs? Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it!

      O Offline
      O Offline
      Oleksandr Kucherenko
      wrote on last edited by
      #2

      How I understand you simply delegate security attributes from your workaround thread. If windows security give you access to files on nearby computers then IIS thread also can do that. Solution: try to run IIS extensions by special user, which have special security settings in domain, then IIS will only have access to folders and computers were special security for such user is set. Good Luck

      P 1 Reply Last reply
      0
      • O Oleksandr Kucherenko

        How I understand you simply delegate security attributes from your workaround thread. If windows security give you access to files on nearby computers then IIS thread also can do that. Solution: try to run IIS extensions by special user, which have special security settings in domain, then IIS will only have access to folders and computers were special security for such user is set. Good Luck

        P Offline
        P Offline
        Philip Patrick
        wrote on last edited by
        #3

        Well, I think so too. But look, the main thread of COM object is also one of the threads of IIS (inetinfo.exe), but there I can't access files over network. And user settings for IIS are usual, IUSR_ComputerName, which has rights like Guest account (e.g. - no rights :) ). But a simple thread, opened from this COM object, looks like it has much more permissions... Dunno why. All I want to know right now, if I can use this feature, or maybe it will be fixed as security hole, lol Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer Need Web-based database administrator? You already have it!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups