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. Web Development
  3. ASP.NET
  4. Razor Pages Navigation

Razor Pages Navigation

Scheduled Pinned Locked Moved ASP.NET
asp-netsecurityjsonquestion
6 Posts 4 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.
  • M Offline
    M Offline
    Mycroft Holmes
    wrote on last edited by
    #1

    Is it possible to navigate a Razor web site without displaying the details in the URL

    https://localhost:44351/UserDetails?**id=1**

    The id=1 seems to be a security risk as changing the id will show another users details or is this caught by using API security (currently not implemented)

    Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

    F Richard DeemingR 2 Replies Last reply
    0
    • M Mycroft Holmes

      Is it possible to navigate a Razor web site without displaying the details in the URL

      https://localhost:44351/UserDetails?**id=1**

      The id=1 seems to be a security risk as changing the id will show another users details or is this caught by using API security (currently not implemented)

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      Make sure the currently logged-in user has access to the data they request. Things you shouldn't spend time doing | The ASP.NET Forums[^]

      M 1 Reply Last reply
      0
      • M Mycroft Holmes

        Is it possible to navigate a Razor web site without displaying the details in the URL

        https://localhost:44351/UserDetails?**id=1**

        The id=1 seems to be a security risk as changing the id will show another users details or is this caught by using API security (currently not implemented)

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        Insecure Direct Object Reference Prevention · OWASP Cheat Sheet Series[^]:

        To be exploited, an IDOR issue must be combined with an Access Control issue because it's the Access Control issue that "allow" the attacker to access to the object for which he have guessed the identifier through is enumeration attack.

        So long as you have proper access controls in place, and return the same error for accounts that the current user doesn't have permission to access as for accounts which don't exist, there shouldn't be any problems. Depending on what you're doing, you might be able to drop the querystring and deduce the record to display based on the currently logged-in user. Or you could replace the IDs with a Guid, which would be much harder to enumerate.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        M V 2 Replies Last reply
        0
        • F F ES Sitecore

          Make sure the currently logged-in user has access to the data they request. Things you shouldn't spend time doing | The ASP.NET Forums[^]

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Thanks for the link - makes a lot of sense.

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            Insecure Direct Object Reference Prevention · OWASP Cheat Sheet Series[^]:

            To be exploited, an IDOR issue must be combined with an Access Control issue because it's the Access Control issue that "allow" the attacker to access to the object for which he have guessed the identifier through is enumeration attack.

            So long as you have proper access controls in place, and return the same error for accounts that the current user doesn't have permission to access as for accounts which don't exist, there shouldn't be any problems. Depending on what you're doing, you might be able to drop the querystring and deduce the record to display based on the currently logged-in user. Or you could replace the IDs with a Guid, which would be much harder to enumerate.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            Access control is something I have not implemented yet, still working on the nuts and bolts.

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              Insecure Direct Object Reference Prevention · OWASP Cheat Sheet Series[^]:

              To be exploited, an IDOR issue must be combined with an Access Control issue because it's the Access Control issue that "allow" the attacker to access to the object for which he have guessed the identifier through is enumeration attack.

              So long as you have proper access controls in place, and return the same error for accounts that the current user doesn't have permission to access as for accounts which don't exist, there shouldn't be any problems. Depending on what you're doing, you might be able to drop the querystring and deduce the record to display based on the currently logged-in user. Or you could replace the IDs with a Guid, which would be much harder to enumerate.


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              V Offline
              V Offline
              valycarrolito
              wrote on last edited by
              #6

              Never underestimate the power of human stupidity

              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