Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

valorin, to Laravel
@valorin@phpc.social avatar

It's incredibly common to find hardcoded domains used for identifying admins, however this also makes it trivial to escalate privileges to admin! 😈

https://securinglaravel.com/security-tip-privilege-escalation-through-domain-wildcards/
#Laravel

valorin, to random
@valorin@phpc.social avatar

Fair warning my Laravel & security friends:

Now that The Rings of Power promo is starting back up, I'll probably start talking about that on here too because I loved S1, and am very excited for S2. (I'll avoid spoilers though.)

If you'd just like to follow just my Laravel and Security work, I'd suggest signing up for my weekly security tips on http://securinglaravel.com. 🙂

valorin,
@valorin@phpc.social avatar

@ramsey @derickr
There is a short mention in https://www.tolkiensociety.org/blog/2022/08/does-it-matter-what-tolkien-would-have-thought-of-the-rings-of-power/

In short, the Tolkien Estate put the TV rights up for sale and Amazon won, and Simon Tolkien (JRR's grandson) is a consultant on the show. I also believe the Estate provided Elvish translators and other resources.

I don't know if Amazon got the rights before or after the show runners pitched their idea though.

I don't think the Estate have any control over the film rights, but I could be wrong on that one.

ramsey,
@ramsey@phpc.social avatar

@valorin @derickr I think you’re right about the film rights. IIRC, Tolkien sold those to United Artists, and at some point, Saul Zaentz acquired them.

valorin, to Laravel
@valorin@phpc.social avatar

Securing Laravel has now officially moved to Ghost from Substack! 🎉

I'll be sending out the first Security Tip written on Ghost later today, but first, it's time for a migration discount!

For the next 2 weeks, you can get 25% off a new Securing Laravel subscription! 🎂

https://securinglaravel.com/ghost-migration-discount/

#Laravel #PHP

outofcontrol,
@outofcontrol@phpc.social avatar

@valorin Congrats on completing the move!

valorin, to random
@valorin@phpc.social avatar

It's finally happening: Securing Laravel is moving off Substack onto Ghost this week! 🎉

Just asked Substack to disconnect my Stripe account, and once that's done I can connect Ghost and get them to import subscribers.

Still some content to fix up, but billing is the big one!

valorin,
@valorin@phpc.social avatar

@outofcontrol
It's too late for an import file, but I did scrape the tag pages to retrieve the list of tagged posts, and then used their API to update the posts.

So now everything is tagged. 😁

outofcontrol,
@outofcontrol@phpc.social avatar

@valorin Great minds thinking alike and all that 😜

valorin, to random
@valorin@phpc.social avatar

My first full-time dev job was building a domain name registration system, so I'm very good at sniffing out domain scams.🧐

I received an suspicious looking email yesterday, so let's see how far I can string this along and what their goal is... 😈
(I'll keep this thread updated)

image/png

valorin,
@valorin@phpc.social avatar

@sysop408

Good question! 🤔

The first email from SL came from a different domain to the registry, but I've just noticed the latest is the actual domain. So I think it's a deceptive sales tactic scam rather than a third party scam.

I don't think ZN is real, their email was far too coordinated with SL, timing wise. Plus why reach out to me anyway, to tell me they are going to do it?

I'm curious to see how they respond though.

sysop408,
@sysop408@sfba.social avatar

@valorin upps! I meant SL when I said ZN. I didn't realize that the messages in your screenshots were supposedly from two different entities.

Well, that's a rather interesting twist. They're trying to play the good cop/bad cop game with you.

This is weirder than I thought it'd be. Even if SL and ZN aren't the same entity, the way China's Internet regulations are composed would make it frightfully lucrative for someone to go around randomly filing paperwork to register Western trademarks because you can't have a domain in China unless you have a location in China or someone willing to act as your representative in China... and maybe that's what SL is actually trying to do... turn around and offer to be your representative.

I've been a small-scale domain reseller for many years and had people forward versions of that SL letter to me. I saw it constantly for about 10 years. It seems to have quieted down in the last 10 or maybe those emails are just getting blocked more effectively now.

valorin, to random
@valorin@phpc.social avatar

Getting closer to migrating Securing Laravel to Ghost, but now there is a new issue: Substack manage the Stripe account, so I can't link Ghost to import subscribers.

Hopefully there is an easy fix. 🤞

valorin,
@valorin@phpc.social avatar

@molly0xfff @willpower232
Ah! It wasn't fully clear in your article.

Every set of instructions I've seen talked about connecting to the Substack Stripe before disconnecting Substack so billing is uninterrupted. Even the stuff from concierge.

I'm wondering if my account is somehow set up differently. I've pinged concierge, so hopefully they've encountered it before.

molly0xfff,
@molly0xfff@hachyderm.io avatar
valorin, to Laravel
@valorin@phpc.social avatar

Do you use Encrypted Environment files in Laravel?

I think they are great for some special use cases, but given the prevalence of API keys and credentials found in repos, is it worth it to use them all the time?

There was a bit of a debate about this last time I posted it, so I'm curious to see how we're all feeling about them now. Or maybe I'm just being a old security grump? 🧐

https://securinglaravel.com/p/security-tip-encrypting-environment
#Laravel

j3j5,
@j3j5@hachyderm.io avatar

@valorin I don't use them on any of my projects but I do see how they can be useful for a shared local .env

Prod credentials on the repo on the other hand? No way José!

valorin, to random
@valorin@phpc.social avatar

Just discovered Ghost doesn't support native footnotes... 😟

outofcontrol,
@outofcontrol@phpc.social avatar

@valorin Naive question: could you setup your own platform in laravel or something built on laravel, and integrate payments? I think you know someone to pen test the site 🥳

valorin,
@valorin@phpc.social avatar

@outofcontrol That was my original plan, and is still my eventual goal, but I just don't have the time to spend on setting up a full newsletter site at the moment. I'm having enough trouble finding time for my course. 😔

The big appeal with Ghost is the Concierge who are doing the hard parts of the migration for me, so I can get off Substack faster.

valorin, to Laravel
@valorin@phpc.social avatar

Let's checkout three of the configuration options available as part of Laravel 11's Automatic Password Rehashing: custom fields, disabling rehashing, and changing bcrypt rounds.

https://securinglaravel.com/p/security-tip-laravel-11s-automatic

valorin, to random
@valorin@phpc.social avatar

Anyone else wonder why the default header used for Authentication is actually called Authorization, or is it just me? 😕

I wish those two words weren't so similar (or so long).

michael,
@michael@thms.uk avatar

@valorin nope. I’ve wondered about that many times …

valorin, to random
@valorin@phpc.social avatar

I think this is the week Securing Laravel is moving to Ghost! Pretty nervous about the move, but also quite excited to see it happen. 😄🤞

Huge shout-out to Alex and Paul from Ghost Concierge who have been patiently answering my many questions, and making the process so easy.

valorin, to Laravel
@valorin@phpc.social avatar

Limiting access to remote files is easy if you're using something like S3, but what about limiting access to local files?

Here's my solution: https://securinglaravel.com/p/security-tip-restricting-local-file

valorin, to Laravel
@valorin@phpc.social avatar

One of my favourite security tricks is to install Canary Tokens in all of my apps. (I also put them in my live code talks too!)

They'll tell you if anyone is snooping around your code who shouldn't be! 🕵️

https://securinglaravel.com/p/security-tip-canary-tokens

valorin, to random
@valorin@phpc.social avatar

This is your periodic reminder that anything you get from the user - including callback URL query params - should be considered untrusted user input and validated accordingly...

Otherwise, someone like me will come along and use it to steal your private keys! 😈
(True story)

video/mp4

valorin, to random
@valorin@phpc.social avatar

One of the things I love about Stripe is the prefixed API keys - making it trivial to block sk_live_* keys from being used outside production.

Anything that stops you from accidently calling production APIs from dev or staging is worth doing: https://securinglaravel.com/p/protecting-production-apis

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • khanakhh
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • mdbf
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • tacticalgear
  • everett
  • JUstTest
  • tester
  • cubers
  • osvaldo12
  • GTA5RPClips
  • Durango
  • cisconetworking
  • Leos
  • ethstaker
  • anitta
  • normalnudes
  • modclub
  • provamag3
  • lostlight
  • All magazines