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. The Lounge
  3. Roll your own...

Roll your own...

Scheduled Pinned Locked Moved The Lounge
asp-netsecuritycsharpdotnetquestion
49 Posts 25 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.
  • Richard Andrew x64R Richard Andrew x64

    So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework. I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!" I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

    The difficult we do right away... ...the impossible takes slightly longer.

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #10

    So he wants to use this gem?

    SELECT * FROM Users WHERE UserName=@username AND Password=@password

    There's a reason why there are so few secure authentication frameworks. Security is very difficult to get right. No offense to you or your team, but the chances your team is going to come up with something that doesn't have more security holes in it than an established framework is close to zero. Your new Director is showing massive inexperience with a single demand. Where did this person come from and are they still in business?

    Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

    Richard Andrew x64R S R 4 Replies Last reply
    0
    • P PIEBALDconsult

      Yes, but I mean, layer it atop and say you rolled your own.

      Richard Andrew x64R Online
      Richard Andrew x64R Online
      Richard Andrew x64
      wrote on last edited by
      #11

      I don't follow your clarification.

      The difficult we do right away... ...the impossible takes slightly longer.

      P 1 Reply Last reply
      0
      • D Dave Kreskowiak

        So he wants to use this gem?

        SELECT * FROM Users WHERE UserName=@username AND Password=@password

        There's a reason why there are so few secure authentication frameworks. Security is very difficult to get right. No offense to you or your team, but the chances your team is going to come up with something that doesn't have more security holes in it than an established framework is close to zero. Your new Director is showing massive inexperience with a single demand. Where did this person come from and are they still in business?

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

        Richard Andrew x64R Online
        Richard Andrew x64R Online
        Richard Andrew x64
        wrote on last edited by
        #12

        Thank you! That's what I thought. Other people in the company have said to me that they think he's a bit of a charlatan. He is a big talker to upper management.

        The difficult we do right away... ...the impossible takes slightly longer.

        D S M 3 Replies Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework. I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!" I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

          The difficult we do right away... ...the impossible takes slightly longer.

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #13

          He sounds like a guy that just BSed his way into his position. There's a time and a place to reinvent the wheel, but security is not something to be taken lightly. I don't use ASP.NET these days, but common sense says Microsoft and their 200 billion dollar budget put more effort into the framework than some company with a director speaking like they're still in teenager land (OMGZ all things suckz except what I like). If he can't articulate a good reason why, that the engineers can appreciate, then he's full of excrement. Besides, a good director should know he's out of touch with some tech and needs to listen to people in the trenches. So, maybe you could convince him if you present your case of why that's a bad idea. But still, my gut reaction says teenager in an adult's body. :laugh: As k5054 mentioned, there are compliance issues (which to be fair the framework may not even handle), testing issues (please don't tell this dude hates unit tests), and issues some may not even think about where a hacker can get your data. Again, I don't use ASP.NET these days, but I do know a hacker can easily bypass encrypted data with a tiny bit of injected script. So, all that encryption means squat if done. Now, there are third party solutions that I wouldn't use for some very valid reasons. But, this isn't that scenario. Granted, I don't use ASP.NET these days so I'm talking out of my arse. But common sense is common sense. If he's so gung ho about it, he should be able to state why.

          Jeremy Falcon

          Richard Andrew x64R 1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            This is a great explanation of other reasons to go with the framework! Our development team consists of me, one other guy and a summer intern. I think we're in trouble.

            The difficult we do right away... ...the impossible takes slightly longer.

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #14

            May the force be with you, buddy. :laugh:

            Jeremy Falcon

            1 Reply Last reply
            0
            • J Jeremy Falcon

              He sounds like a guy that just BSed his way into his position. There's a time and a place to reinvent the wheel, but security is not something to be taken lightly. I don't use ASP.NET these days, but common sense says Microsoft and their 200 billion dollar budget put more effort into the framework than some company with a director speaking like they're still in teenager land (OMGZ all things suckz except what I like). If he can't articulate a good reason why, that the engineers can appreciate, then he's full of excrement. Besides, a good director should know he's out of touch with some tech and needs to listen to people in the trenches. So, maybe you could convince him if you present your case of why that's a bad idea. But still, my gut reaction says teenager in an adult's body. :laugh: As k5054 mentioned, there are compliance issues (which to be fair the framework may not even handle), testing issues (please don't tell this dude hates unit tests), and issues some may not even think about where a hacker can get your data. Again, I don't use ASP.NET these days, but I do know a hacker can easily bypass encrypted data with a tiny bit of injected script. So, all that encryption means squat if done. Now, there are third party solutions that I wouldn't use for some very valid reasons. But, this isn't that scenario. Granted, I don't use ASP.NET these days so I'm talking out of my arse. But common sense is common sense. If he's so gung ho about it, he should be able to state why.

              Jeremy Falcon

              Richard Andrew x64R Online
              Richard Andrew x64R Online
              Richard Andrew x64
              wrote on last edited by
              #15

              It's a little like upside down world because during the discussion, he said he thought that I wasn't backing up my arguments with any substance, "just theory."

              The difficult we do right away... ...the impossible takes slightly longer.

              J 1 Reply Last reply
              0
              • Richard Andrew x64R Richard Andrew x64

                I don't follow your clarification.

                The difficult we do right away... ...the impossible takes slightly longer.

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #16

                Like putting a Big Mac in your own wrapper and telling your boss you made it yourself.

                J 1 Reply Last reply
                0
                • Richard Andrew x64R Richard Andrew x64

                  It's a little like upside down world because during the discussion, he said he thought that I wasn't backing up my arguments with any substance, "just theory."

                  The difficult we do right away... ...the impossible takes slightly longer.

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #17

                  Assuming the meeting wasn't confrontational, then put together a report that articulates all the reasons why it's a bad idea. If he was a ever an engineer in a previous life and it's was a friendly thing he'll listen. If not, he was never an engineer. Also, it sounds like your dev team is way too small to reinvent the wheel. I'd be surprised if the executives are ok with spinning that kinda money for no gain when there's only 2.5 devs.

                  Jeremy Falcon

                  Richard Andrew x64R 1 Reply Last reply
                  0
                  • J Jeremy Falcon

                    Assuming the meeting wasn't confrontational, then put together a report that articulates all the reasons why it's a bad idea. If he was a ever an engineer in a previous life and it's was a friendly thing he'll listen. If not, he was never an engineer. Also, it sounds like your dev team is way too small to reinvent the wheel. I'd be surprised if the executives are ok with spinning that kinda money for no gain when there's only 2.5 devs.

                    Jeremy Falcon

                    Richard Andrew x64R Online
                    Richard Andrew x64R Online
                    Richard Andrew x64
                    wrote on last edited by
                    #18

                    Oh you're so right. Fortunately the higher ups are not going to go all in until we produce a demo program to show what we can do. This puts a serious crimp in our potential output.

                    The difficult we do right away... ...the impossible takes slightly longer.

                    D 1 Reply Last reply
                    0
                    • Richard Andrew x64R Richard Andrew x64

                      Thank you! That's what I thought. Other people in the company have said to me that they think he's a bit of a charlatan. He is a big talker to upper management.

                      The difficult we do right away... ...the impossible takes slightly longer.

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #19

                      When it came to the website that drives my team processes, we just went with Windows Auth. No login page and no user management on our part, and it's about as secure as you can get with minimal effort. HR takes care of the AD accounts and users can request security group membership on their own, and we approve/deny any requests to the groups the site uses. All group memberships are looked at for what you can see/do. If you're not in any groups, you get read-only access to a limited portion of the site. About the only thing we do as far as users is the site allows you to create a user profile where you get to set a bunch of defaults, like landing pages, default view tabs, email notification subscriptions, color theme, font size, and a bunch of other stuff.

                      Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

                      1 Reply Last reply
                      0
                      • Richard Andrew x64R Richard Andrew x64

                        Oh you're so right. Fortunately the higher ups are not going to go all in until we produce a demo program to show what we can do. This puts a serious crimp in our potential output.

                        The difficult we do right away... ...the impossible takes slightly longer.

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #20

                        Oh man, that's a nasty spot to be in.

                        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

                        1 Reply Last reply
                        0
                        • Richard Andrew x64R Richard Andrew x64

                          So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework. I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!" I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

                          The difficult we do right away... ...the impossible takes slightly longer.

                          A Offline
                          A Offline
                          Amarnath S
                          wrote on last edited by
                          #21

                          Reinventing the wheel. Maybe a squarish / triangularish kind of wheel.

                          D 1 Reply Last reply
                          0
                          • A Amarnath S

                            Reinventing the wheel. Maybe a squarish / triangularish kind of wheel.

                            D Offline
                            D Offline
                            dandy72
                            wrote on last edited by
                            #22

                            Make the wheel stationary, and the earth move under it.

                            1 Reply Last reply
                            0
                            • D Dave Kreskowiak

                              So he wants to use this gem?

                              SELECT * FROM Users WHERE UserName=@username AND Password=@password

                              There's a reason why there are so few secure authentication frameworks. Security is very difficult to get right. No offense to you or your team, but the chances your team is going to come up with something that doesn't have more security holes in it than an established framework is close to zero. Your new Director is showing massive inexperience with a single demand. Where did this person come from and are they still in business?

                              Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

                              S Offline
                              S Offline
                              Steve Raw
                              wrote on last edited by
                              #23

                              Dave Kreskowiak wrote:

                              So he wants to use this gem? SQL SELECT * FROM Users WHERE UserName=@username AND Password=@password

                              That's the most disturbing thing I have yet to encounter today. **shudders**

                              A 1 Reply Last reply
                              0
                              • Richard Andrew x64R Richard Andrew x64

                                So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework. I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!" I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

                                The difficult we do right away... ...the impossible takes slightly longer.

                                S Offline
                                S Offline
                                Steve Raw
                                wrote on last edited by
                                #24

                                I remember your post about this in the Web Development forum, titled Identity Management Recommendations[^] I have great interest in this same topic. I'm currently working on an authentication and authorization system for my Chromosphere.com project.

                                Richard Andrew x64 wrote:

                                So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework.

                                Your dev team is made up of three people, right? What kind of deadline are you on? A dev team that small, regardless of any team member's skill and experience, will exhaust a huge amount of time and money developing this. In addition, it needs to be maintained and updated as security needs are always changing. Every day, you will need to seek out the most recent exploits and vulnerabilities, fix them, and test them. Does a 3 person dev team have the time and resources to do this? No way!

                                Richard Andrew x64 wrote:

                                I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!"

                                He's right. If you create a hacker's playground, everything will go down. If all computer systems are perpetually down, then there won't be any bugs to exploit. What's the percentage of downtime your systems have? Anything under 99.9% uptime is unacceptable. If your IT director doesn't realize this, he lives under a rock.

                                Richard Andrew x64 wrote:

                                I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

                                You are 100% right. Your IT director is absolutely wrong. I'm not in your shoes, so I can't fully understand who and what you are dealing with here. If the leadership at the top insists on committing such a disastrous mistake, then it's clear that they don't understand this at all. If they won't listen to reason, that's their fault. Working under such leadership is the perfect reason to seek out a new job.

                                Richard Andrew x64 wrote:

                                I don't intend to pull the eject cord on this job

                                That just might be the answer

                                1 Reply Last reply
                                0
                                • Richard Andrew x64R Richard Andrew x64

                                  So, to be brief, our new IT Director thinks he'd rather have us roll our own user authentication functionality, than use the components already present in the ASP.NET Core framework. I recommended strongly against this, but he waved his hand and said, "There won't be any security holes!" I don't intend to pull the eject cord on this job, so I want to ask the public, am I right, or is the IT Director right?

                                  The difficult we do right away... ...the impossible takes slightly longer.

                                  M Offline
                                  M Offline
                                  Mike Hankey
                                  wrote on last edited by
                                  #25

                                  Reminds me of an old song; Roll another one just like the other one...

                                  A home without books is a body without soul. Marcus Tullius Cicero PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com Latest Article: EventAggregator

                                  1 Reply Last reply
                                  0
                                  • D Dave Kreskowiak

                                    So he wants to use this gem?

                                    SELECT * FROM Users WHERE UserName=@username AND Password=@password

                                    There's a reason why there are so few secure authentication frameworks. Security is very difficult to get right. No offense to you or your team, but the chances your team is going to come up with something that doesn't have more security holes in it than an established framework is close to zero. Your new Director is showing massive inexperience with a single demand. Where did this person come from and are they still in business?

                                    Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

                                    Richard Andrew x64R Online
                                    Richard Andrew x64R Online
                                    Richard Andrew x64
                                    wrote on last edited by
                                    #26

                                    Dave Kreskowiak wrote:

                                    So he wants to use this gem?

                                    Dave, now that I've had time to think about your post, I'm wondering what you're saying is wrong with that SQL statement. It looks like it's using parameters, so I'm wondering. Keep in mind that I don't know the first thing about designing an authentication library.

                                    The difficult we do right away... ...the impossible takes slightly longer.

                                    D 1 Reply Last reply
                                    0
                                    • M Mike Hankey

                                      If it ain't broke don't fix it!

                                      A home without books is a body without soul. Marcus Tullius Cicero PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com Latest Article: EventAggregator

                                      D Offline
                                      D Offline
                                      Dr Walt Fair PE
                                      wrote on last edited by
                                      #27

                                      Mike Hankey wrote: If it ain't broke don't fix it! I usually end up with " If it's fixed, break it, then fix it differently and pat myself on the back for a good job well done! CQ de W5ALT

                                      Walt Fair, Jr.PhD P. E. Comport Computing Specializing in Technical Engineering Software

                                      M 1 Reply Last reply
                                      0
                                      • D Dr Walt Fair PE

                                        Mike Hankey wrote: If it ain't broke don't fix it! I usually end up with " If it's fixed, break it, then fix it differently and pat myself on the back for a good job well done! CQ de W5ALT

                                        Walt Fair, Jr.PhD P. E. Comport Computing Specializing in Technical Engineering Software

                                        M Offline
                                        M Offline
                                        Mike Hankey
                                        wrote on last edited by
                                        #28

                                        I hear ya!

                                        A home without books is a body without soul. Marcus Tullius Cicero PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com Latest Article: EventAggregator

                                        1 Reply Last reply
                                        0
                                        • Richard Andrew x64R Richard Andrew x64

                                          Dave Kreskowiak wrote:

                                          So he wants to use this gem?

                                          Dave, now that I've had time to think about your post, I'm wondering what you're saying is wrong with that SQL statement. It looks like it's using parameters, so I'm wondering. Keep in mind that I don't know the first thing about designing an authentication library.

                                          The difficult we do right away... ...the impossible takes slightly longer.

                                          D Offline
                                          D Offline
                                          Dave Kreskowiak
                                          wrote on last edited by
                                          #29

                                          Typically, this is something that would be used by someone storing passwords in plain text.

                                          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

                                          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