مشاركة مميزة
Launch HN: SuperTokens (YC S20) – Securely manage session tokens https://ift.tt/2YIHUb2
- Get link
- X
- Other Apps
Launch HN: SuperTokens (YC S20) – Securely manage session tokens Hi everyone! My name is Advait and I co-founded SuperTokens along with @rishabhpoddar ( https://supertokens.io/ ). SuperTokens helps companies securely manage their session tokens, saving developer time and preventing identity theft. We started SuperTokens 1.5 years ago when we were building a consumer app and wanted our users to be logged in for a long time in a secure way. When it came to managing user sessions, there was a lot of ambiguity. We read many forums (Reddit, Stackoverflow) and blogs, and found that developers were arguing about best practices, such as using local storage vs cookies, implementing JWTs, etc. We had to do a lot of the first principles thinking ourselves to understand the tradeoffs. Around the same time, Facebook, Docker, Gitlab, Youtube, Uber were in the news for session vulnerabilities. Stealing a user’s session allows you to access their account as if you had their username and password. Hence being able to mitigate against this is important. We’ve audited companies and found large session vulnerabilities that they were not aware of. For a YC company, we were able to pull information on users that we shouldn’t have had access to. Through our research, we built something internally and decided to write a blog post [1] explaining how our system works. While SuperTokens is not currently open source, you can see the original codebase on Github [2]. Building a good solution for sessions requires a lot of specialised knowledge and time that could otherwise be spent on building your core business logic. Detecting session theft reliably is difficult. There are multiple race conditions, edge cases and network issues that need to be thought about. In fact, one of our libraries that solves a difficult race condition has 100K downloads / week and is even used by Auth0 [3] SuperToken mitigates against all session attacks (XSS, CSRF, etc) by implementing best practices. For a full list of types of attacks with real life examples please see [4]. However, it is not possible to mitigate against all attacks (for eg: social engineering) and hence, SuperTokens is also able to detect session theft. We use rotating refresh tokens as per the official OAuth specifications in RFC 6819 [5]. Auth0 has also started offering this, but due to their setup, they cannot use httpOnly cookies to store these tokens and this goes against popular compliance recommendations. Besides security, SuperTokens also offers improved API performance and developer convenience. For clustered and distributed environments, session verification for each API takes < 1 millisecond. You can get a user’s ID and access role without any database lookup. SuperTokens can be implemented in 15 minutes, provides a simple API and has clear documentation. We abstract away complexities of token management by providing frontend and backend SDKs. In the coming months we plan to offer Access Control, Internal Auth between services and for internal tools (i.e. recent Twitter hack was through unauthorized access to an internal tool), and more! We're still experimenting with pricing, so you won't find this on our website, but we'd love to hear your thoughts about it. Thank you for reading! We’d love to hear what this community specifically has to say and if you have any experience dealing with this. We’d appreciate any feedback! ---------- Footnotes: [1] - Blog post: https://medium.com/hackernoon/all-you-need-to-know-about-use... [2] - Github: https://github.com/supertokens/supertokens-core [3] - Library used by Auth0: https://www.npmjs.com/package/browser-tabs-lock [4] - List of attacks: https://supertokens.io/pdf/attackshomepagev1 [5] - OAuth RFC 6819: https://tools.ietf.org/html/rfc6819#section-5.2.2.3 August 28, 2020 at 06:08PM
- Get link
- X
- Other Apps
Popular posts from this blog
How do you build your body in 1 week?
How do you build your body in 1 week? Ready to see real changes in just seven days? This guide shows how to kick start your body's muscle development . You'll learn about targeted workouts, smart nutrition, and wellness habits. Even in a week, small adjustments can spark noticeable improvements in strength and energy. Edit Full screen View original Delete Body health This plan helps lay the groundwork for lasting progress by focusing on exercise routines, meal planning, and rest. Every step is designed to maximize your body’s potential in a short time frame. Key Takeaways Body...
استفتاء - A REFERNDUM.
استفتاء . ******* استفتاء حيران ... العقل أم الجنان ؟.. ألمس نار الحنان .. وتحيط بكل جانب .. بأدق ما في الزوايا .. تسكن مني الحنايا.. تدعو والقلب راغب .. يملأ حولي المكان .. ويدق مثل الكمان .. فتفيض فيها الحِسان .. أتُراها لا تُبالي ؟؟.. أتحس حقا بِبالي ؟؟.. أرفض منها العناد .. فيعاتبني الفؤاد .. ويواسيني خيالي .. ما جدوى أن تُحاسب ؟.. تبغي مثلي الأمان .. إذّ يجمعنا أوان .. لا نخشاه الزمان .. وتقلبات الليالي .. أبلغ منها منالي .. وتُكللنا مواكب .. وتنال مني كتاب .. لِتُوَحدُنا رواية .. وتُصورُنا مرايا .. ونظل في كل آن .. نجمان يسبحان .. ويُقِرُنا الاثنان .. العقلُ والجِنان . بقلمي السيد أحمد إبراهيم 16\11\1994 ترجمة قصيدة استفتاء. A referendum. ******* Wondered referendum ... The mind or the heavens? Touch the fondness of fire. Surrounded by each side. As exact in the corners. Live in all my curves. Invites the heart wants. Fill around the place. Beats like a violin. It is overflowing with grace. is she Don't care?? It fell off my mind ???. I reject such stubbornness. Then m...
H. Welton Flynn: A Pioneer in Public Service
H. Welton Flynn: A Pioneer in Public Service By Jeremy Menzies This February for Black History Month we're highlighting one of San Francisco's most important figures in transportation, H. Welton Flynn. Flynn is best known for his key leadership at the SF Public Utilities Commission and as the inaugural chairman of the SFMTA Board of Directors. Mr. Flynn was the first African American appointed to a city commission and served the longest term of any commissioner in San Francisco’s history. He served under six different mayors, being elected to the office of President or Chairman more than a dozen times. Welton Flynn in 1978 during the inaugural run of Muni light rail in the Market Street Subway. Flynn’s leadership on the Public Utilities Commission was crucial during this era of change and adoption of new technology in San Francisco transit. Flynn's long tenure in transit began with his appointment to the Public Utilities Commission, which oversaw Muni operations, in 19...
Comments
Post a Comment