Skip to Content Skip to Menu

Private messages stored in plain text

  • jhaines
  • jhaines
  • ONLINE
  • Posts: 56
  • Thanks: 8
  • Karma: 2
1 week 2 days ago #340315 by jhaines
Private messages stored in plain text was created by jhaines
It looks like the CB private message system stores them in plain text in the database. Is there any easy way to encrypt these to improve privacy?

Joomla! 5.2.3 Stable [ Uthabiti ] 7-January-2025 16:00 GMT
Kunena: 6.3.8 2024-12-29
CB: 2.9.3+build.2025.01.09.19.37.00.f3e4e0439
CB Antispam: 6.1.0
JCE: 2.9.82

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48844
  • Thanks: 8346
  • Karma: 1449
1 week 2 days ago - 1 week 2 days ago #340318 by krileon
Replied by krileon on topic Private messages stored in plain text
Correct they're stored in plain text. No there is no way to encrypt them. Private messages do not have end to end encryption and there's no point encrypting them as if the site is compromised the encryption key will also be compromised. HTTPS handles encryption during transmission (e.g. sending a message) so be sure you're using HTTPS.

With that said we might implement optional support for this in CB 3.x though when the PMS is finally rewritten into a live messenger, but it will force off searchability of messages when enabled. We'll need to consider where the encryption key will come from as it'll need to be from a server env more than likely.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 1 week 2 days ago by krileon.

Please Log in or Create an account to join the conversation.

  • jhaines
  • jhaines
  • ONLINE
  • Posts: 56
  • Thanks: 8
  • Karma: 2
1 week 2 days ago #340319 by jhaines
Replied by jhaines on topic Private messages stored in plain text
Thanks for confirming. A degree of obfuscation would avoid casual reading whilst browsing the database and wouldn't need to be properly secure.

I'm interested in the "live messenger" that you reference potentially in CB 3.0 . I'm not clear how this would differ from what's there today, other than in respect of encryption, but perhaps you're referencing something more like WhatsApp, Messenger and such like with push notifications of the messages at the client? Would that require a dedicated app too or would it leverage something that's out there already?

Joomla! 5.2.3 Stable [ Uthabiti ] 7-January-2025 16:00 GMT
Kunena: 6.3.8 2024-12-29
CB: 2.9.3+build.2025.01.09.19.37.00.f3e4e0439
CB Antispam: 6.1.0
JCE: 2.9.82

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48844
  • Thanks: 8346
  • Karma: 1449
1 week 1 day ago #340320 by krileon
Replied by krileon on topic Private messages stored in plain text

A degree of obfuscation would avoid casual reading whilst browsing the database and wouldn't need to be properly secure.

I would recommend not giving access to your database freely. You can also use permissions to restrict read access to specific tables. This is relatively easy to do with tools like phpmyadmin.

I'm interested in the "live messenger" that you reference potentially in CB 3.0 . I'm not clear how this would differ from what's there today, other than in respect of encryption, but perhaps you're referencing something more like WhatsApp, Messenger and such like with push notifications of the messages at the client? Would that require a dedicated app too or would it leverage something that's out there already?

It would basically function just like Facebook Messenger. It won't be a separate application or anything though and will be built into your site like the current private messenger is.

It'll differ quite a bit as conversation will be a lot more fluid being a true messenger. It'll support multi-person conversations, reaction gifs, emoji, image/video/file/audio upload built in (current implementation relies on CB Gallery, which is a bit strange). There's also plans to implement voice and video call support via WebRTC for peer-to-peer voice/video, but that may not be in the initial release.

The PMS messages will be migrated to the new messenger so there won't be any data loss either so feel free to continue using the PMS and not worry about needing to wait.

I've no real timeframe for this though as we've a lot of work to do in CB 3.x before we start rewriting core systems. CB 3.x development is scheduled to start after the CB Gallery rewrite (which I'm currently working on as we speak!). We'll be first starting off with several massive overhauls to our API and core component structure. Details about all this will be posted after CB Gallery rewrite release.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: jhaines

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum