Results 1 to 2 of 2

Thread: "Spoofing" an Authentication object...

  1. #1

    Default "Spoofing" an Authentication object...

    Hi all,

    I was going through the documentation and I was wondering what would prevent a user from creating their own Authentication object, populating it with some GrantedAuthorities, and then set whether it has been authenticated to true? Could they not load this into the SecurityContext? Or is it that only objects loaded as Spring beans within an applicationContext have access to the SecurityContext, so the "spoofed" Authentication object cannot be loaded?

    Thanks!

  2. #2
    Join Date
    Jan 2008
    Location
    San Diego
    Posts
    780

    Default

    And how exactly would a remote user accessing your application through a web browser do this?

    Theoretically what you are describing is a security hole but realistically, it means that the user would have to have somehow injected malicious code into your application. This pretty much means that for a web application, he'd have to have access to your application server, at which point, you have other issues.

    Remember, security is all about "layers" ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •