Summary of Discussion on Password Security in Discourse API
A discussion was initiated by mikeredick regarding the security concern of passing plain text passwords when creating a user through the Discourse API. mpalmer explained that using SSL is considered sufficient to protect secrets in-flight, but Siddhu_Dhangar suggested passing an encrypted or hashed password instead. However, mpalmer clarified that hashing is not a supported configuration due to its changing mechanism within Discourse. mpalmer also pointed out that if someone has access to the endpoint, they can still capture the password. RGJ mentioned that if SSO is enabled, the password is not used, and spirobel suggested certificate pinning to prevent man-in-the-middle attacks.
I’m creating a small windows application that will use Discourse as the SSO provider. The first step in that chain is allowing the app to create a user through the Discourse API.
I’ve got that working, however it seems that the password for the user is passed in plain text and I’m wondering why that is? It seems like that could be a security issue… is the thought just that people should use SSL and that’s good enough to protect the password?
Yes, SSL is considered sufficient to protect secrets in-flight. Until the world sees the light and switches to something like TLS-SRP, sharing secrets over a secured channel are pretty much all we’ve got to work with.
평문 비밀번호 대신 암호화된 비밀번호를 전달하는 방법이 있을까요? 현재 인증 확인을 위해 /session API를 사용하는 앱을 개발 중입니다. 이 API에서는 사용자 이름과 비밀번호를 제출해야 합니다. 그런데 브라우저의 개발자 도구를 열어 보면 로그인 시 전달하는 평문 비밀번호를 실제로 확인할 수 있다는 점을 발견했습니다. 즉, 제 노트북에 접근할 수 있는 사람이 있다면 비밀번호가 해킹당할 수 있는 것이죠.