Obfuscating vCard Download URLs

Business Security Questions & Discussion

I'm trying to determine the best way to "protect" vCard downloads on a domain (quotations on purpose). A client of mine wants to start using NFC business cards and have them link to vCards for their employees instead of their company directory on their website.

Right now, we have it set up as a subdomain link in a /vcard/ directory with 20 random characters appended to the end of the base file name. I understand that obfuscation is not a solid form of security. However, in this instance, do you think this will be enough to protect company emails and phone numbers from malicious crawlers?

Link Example: https go . example . com/vcard/john-doe-vcard-94oikf97df9mfwo9b9he . vcf

ETA for clarity: Most of the staff would likely also be adding their cell phone numbers, which are not public on the company website. Hence why we are looking to hide the URLs.

Posted Nov 13, 2022, 12:15 AM UTC

619
OuiOuiKiwiGovernance, Risk, & Compliance•

However, in this instance, do you think this will be enough to protect company emails and phone numbers from malicious crawlers?

You could mitigate that by pointing it to the company direct... oh.

( ಠ ͜ʖಠ)

This is just a dumb ideia through and through. Even linking to something like a Calendly to "schedule a call" would be a better option that linking to a VCF with cell phone numbers on it.

7
CryptoSebOP•

Hey, someone else who read my mind. "As some of our staff do tradeshows and events, we feel it is best for potential clients to be able to add these individuals directly into their contacts as quickly as possible."

¯\('-')/¯ Considering these cell phone numbers are likely used as 2FA devices/tokens, I 100% see the flawed logic in having a VCF on a web-accessible URL.

3
OuiOuiKiwiGovernance, Risk, & Compliance•

"As some of our staff do tradeshows and events, we feel it is best for potential clients to be able to add these individuals directly into their contacts as quickly as possible."

I went to a conference that used this system for their badges. Everyone hated it. People trying to gather leads didn't really want to add some random "Michael Ligma" to their personal phone contacts.

This is just going to drive potentials clients away if anything: "I don't want to add your number like this, this is my personal phone and it doesn't even let me type in some notes. Do you have a card that I can take?".

3
CryptoSebOP•

Great comment. Mind if I screenshot this (without your username) and attach it in my follow-up as more proof that this idea sucks.

I like the idea of an NFC card, but we aren't yet there in the world of today. Even the idea I suggested of linking to that person's directory listing at companyname . com / staff / john-doe isn't great because the likelihood of that person bookmarking that URL, and then remembering to go back to it, is slim.

However, they're already pretty sold on this idea of using the NFC cards. Not much I can do now other than approach this from a security footing and try to make their implementation as safe and user-proof as possible.

3
OuiOuiKiwiGovernance, Risk, & Compliance•

Sure. This has all the hallmarks of "LinkedIn Driven Development" by someone desperate to hit KPIs.

Someone read about NFC cards somewhere. Thought it was quite cool. Now they are pushing it hard and will not see their dreams destroyed.

Show them how to clone them via a Flipper Zero (the hottest thing on the market right now) and how that will allow other people to easily impersonate your staff to try and sell body parts for a discount or something. NFC cards are infinitely shareable so, unlike the physical ones, they will never run out and stop doing it.

5
SpaceWanderer22•

Sounds like a poor overall arch, but a long random string would definitely stop discovering the URLs directly (unless the directory is listable)

Issues of the top of my head:

  • URLs are leaky. They stay in browser history, get caught in logs, etc.

  • Once a card is known, it can be periodically queried for future updates

  • it may get accidentally attached to extental calendar invites or something

3
CryptoSebOP•

All good points, yes. I was thinking about logs and sent all NGINX access logs for that subdomain directory to /dev/null. Don’t have a solve to get around someone knowing the URL once and being able to visit it infinitely into the future unless they rotate their .vcf filenames periodically. That would be difficult, though.

I think I have achieved an alright setup by adding 20 random characters to these .vcf files and locking down that directory. It’s nowhere near what I would like to have done, but they are happy with the proposal and will work on getting it implemented.

1

Emmm. You can just change file names to uuid and good luck for crawlers. But your approach is also quite secure as a brute force protection.

Ps: Just make sure that the directory is not listable

2
CryptoSebOP•

Was just looking to minimize the amount of employee data out on the Internet. I don't feel that it is best practice to have Full Names, Company Emails, Business Phone Numbers, Cell Phone Numbers, LinkedIn Profiles, and more in a place that could be easily targeted.

Especially when it's not just one individual putting that information out there. Company-deployed stuff that comes down from marketing like this isn't always the best idea. Would be a different story if these vCards only had their name, company name, and email on them. It sounds like this company is planning to add much more to those vCards to really personalize them (photo, cell numbers, etc).

2
HugeQock•

There was a thread in here a few weeks back that showed a similar setup wth vCards, but they just used numbers like vcard/emp01.vcf, vcard/emp02.vcf etc... meaning someone can just iterate through them. Atleast you're protected against that ad crawlers.

1
CryptoSebOP•

I thought about that. Where I struggled was that sometimes vCards don’t open right on someone’s phone and if asks them to download the file first. So, I was trying label the files in a way that would identify what the file. Hence adding their name and the word vcard into the filename.

This method you listed would be more secure, though. Just a random 15 character string of letters would be difficult to “find”.

1
HugeQock•

We had similar issues until a coding major looked at it and added some parameters to the top / 2nd line of the cards code. I think specifying the version of vCard... I will check with him on what he did and let you know - but prior to him adding this, they only worked every 2nd time on apple and basically was 1/4 chance of working in android. After doing this, it works everytime. Will let you know

2
biztactixSecurity Generalist•

I've had it for years online... Almost not even obfuscated .. I used a subdomain and then blocked google from indexing the whole subdomain.. that way you don't have to declare them in the robots file to ensure they aren't indexed.

2
CryptoSebOP•

Yeah, I’ve got the whole subdomain listed as no-index. I think my method will work just fine for them the more that I think about it.

1
biztactixSecurity Generalist•

I can tell you almost nobody uses it... I have had a QR code version on my business card for nearly 10 years.... For most of that people went what is that thing on your card... Luckily covid introduced the world to qr which is good.. But even still people don't use it

2
HugeQock•

Would having a few thousands fake files help stop robots / crawlers from reading the vCards ?

2
CryptoSebOP•

Probably, but I don’t think it is necessary in this case. Maybe if the company had 100+ employees, but this is just 25-30 people. I think adding 20 random characters on the end of a generic filename format is going to work really well.

2