Zum Hauptinhalt springen
LIVE
CVSS 6.5CVE-2026-111315 | The Smaily Connect plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 3.24.0 This is due to the smaily_get_edit_user_id() function reading an attacker-controlled $_GET['user_id'] parameter without performing any ownership or capability check, and then feeding that id into smaily_get_userdata() (which calls get_user_meta()) when rendering the WooCommerce My Account 'edit-account' form via the smaily_print_CVSS 6.4CVE-2026-137713 | Webmin through 2.670 before ae8feb1 allows XSS via an SVG attachment in a mail queue, relevant if an authenticated user uploads an SVG document and an administrator views it.CVSS 6.9CVE-2026-137678 | A security vulnerability has been detected in code-projects Online Job Portal 1.0. Affected by this issue is some unknown functionality of the file Admin/InsertUser.php. Such manipulation of the argument txtUserName/txtPassword leads to sql injection. The attack can be launched remotely. The exploit has been disclosed publicly and may be used.CVSS 5.3CVE-2026-137703 | Flask-AppBuilder before 5.3.1 contains a path traversal vulnerability in ImageManager.save_file that allows authenticated users to write image files outside IMG_UPLOAD_FOLDER via unsanitized multipart filenames. Attackers with add or edit permission on a ModelView with an ImageColumn can upload filenames containing ../ segments to create or overwrite image files like static assets.CVSS 6.1CVE-2026-130039 | The LiteSpeed Cache plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'REQUEST_URI' parameter in all versions up to, and including, 7.9.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires comments to be open, a comment author name containinCVSS 6.1CVE-2026-136206 | The Export Products, Orders & Customers for WooCommerce plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'start_date' parameter in all versions up to, and including, 2.4.3 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. SucCVSS 9.4CVE-2026-137706 | Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.CVSS 8.7CVE-2026-137705 | Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Unauthenticated remote attackers can exploit Relative Path Traversal to download arbitrary system files.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

A Production Security Checklist

We spent the last article making the app fast. This one is about making sure it's still standing when someone tries to break it. That's the uncomfortable truth…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
CVE & Threat-Kontext · 10 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

We spent the last article making the app fast. This one is about making sure it's still standing when someone tries to break it. That's the uncomfortable truth about security work: nobody notices it when it's done right, and everybody notices the one gap you missed.



This is part of the Full Stack SaaS Masterclass, a series that builds a multi-tenant SaaS end to end. Security is a mindset that touches auth, the database, the API layer, and the infrastructure around all of it, not a single article's worth of work. What follows is the checklist I actually run through before calling something production-ready, with the reasoning behind each item so you can decide what applies to your own app.



I'm resisting the urge to list forty things here. Most of the OWASP Top Ten is either handled by your framework already or irrelevant until you've earned the complexity that creates the risk. What follows is the subset that actually bites SaaS teams in practice.






Authentication and session handling



Get this wrong and nothing else matters. If someone can impersonate another user, your rate limiting and your input validation are decorating a house with an open front door.



A few non-negotiables for a NestJS backend:




  • Passwords hashed with bcrypt or argon2, never anything you rolled yourself.

  • Access tokens short-lived (minutes, not days), refresh tokens rotated on use and stored server-side so you can revoke them.

  • Cookies for session tokens set httpOnly, secure, and sameSite: 'lax' or 'strict' depending on whether you need cross-site requests at all.




// auth/cookie.config.ts
export const REFRESH_COOKIE_OPTIONS = {
httpOnly: true,
secure: process.env.NODE_ENV === 'production',
sameSite: 'lax' as const,
path: '/auth/refresh',
maxAge: 7 * 24 * 60 * 60 * 1000,
};






The tradeoff people underestimate is refresh token rotation. It's more moving parts: you need a token family concept so that if a stolen refresh token gets reused after rotation, you can detect it and kill the whole session chain. It's worth building once, early, rather than bolting it on after an incident forces the issue.



The pitfall I see most often is storing the JWT in localStorage because it's convenient for a single-page app. It reads fine in a demo. It also means any XSS vulnerability anywhere in your frontend, a compromised npm package, an unescaped user string, hands over every active session. httpOnly cookies aren't reachable from JavaScript, which removes that entire attack class for a small amount of extra plumbing on cross-origin requests.






Authorization and tenant isolation



Authentication answers "who are you." Authorization answers "what are you allowed to touch," and in a multi-tenant SaaS, that second question has an extra dimension: which tenant do you belong to, and is every query you run scoped to it.



The mistake that causes real damage is usually a query that forgot to filter by organizationId, not a missing role check. A user in tenant A ends up reading or writing rows that belong to tenant B. What catches it is rarely a broken permission check. Usually it's a support ticket asking why unrelated data showed up on someone's dashboard.



Two things reduce this risk meaningfully:




  1. Never trust a tenant ID that comes from the client. Derive it from the authenticated session, not a request body or query param.

  2. Enforce it at the data layer, not just in application logic, wherever your database supports it.




-- Postgres row-level security as a backstop, not a replacement for app-layer checks
ALTER TABLE invoices ENABLE ROW LEVEL SECURITY;

CREATE POLICY tenant_isolation ON invoices
USING (organization_id = current_setting('app.current_org_id')::uuid);






Row-level security is a defense-in-depth layer, not a silver bullet. It adds a session variable you have to set correctly on every connection, and it's easy to forget in a connection pool if you're not deliberate about it. I still think it's worth having, because it means a bug in your NestJS service layer doesn't automatically become a cross-tenant data leak. The application-level check should be your primary guard; RLS is the seatbelt for when that check has a bug.






Input validation and injection prevention



Every string that enters your system from outside is untrusted until proven otherwise: request bodies, query params, headers, webhook payloads, file uploads, even values from a third-party API you call.



NestJS gives you most of this for free if you actually use it. A global validation pipe with DTOs stops malformed and unexpected payloads before they reach a service.




// main.ts
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
forbidNonWhitelisted: true,
transform: true,
}),
);









// dto/create-invoice.dto.ts
import { IsUUID, IsNumber, Min, IsISO8601 } from 'class-validator';

export class CreateInvoiceDto {
@IsUUID()
customerId: string;

@IsNumber()
@Min(0)
amountCents: number;

@IsISO8601()
dueDate: string;
}






whitelist: true strips any property not declared on the DTO. forbidNonWhitelisted: true rejects the request outright instead of silently dropping the extra field. That combination has quietly saved me from mass-assignment-style bugs where a client sends { ...formData, role: 'admin' } and an unguarded update handler happily writes it.



SQL injection is largely a non-issue if you use a query builder or ORM (Prisma, TypeORM) with parameterized queries, which you should be doing by default. The pitfall is the raw query someone writes six months later to work around an ORM limitation, string-concatenating a value into SQL because it was faster than learning the parameterized syntax. Ban string-concatenated SQL in code review, no exceptions, and treat it as a blocking comment rather than a nitpick.






Secrets and configuration management



Secrets in source control are the single most avoidable production incident I've seen, and they still happen constantly because a .env file gets committed once and lives forever in git history.



The baseline: .env in .gitignore from commit one, secrets injected at runtime through your deployment platform (AWS Secrets Manager, SSM Parameter Store, or your CI/CD provider's secret store), and different credentials per environment so a compromised staging key can't touch production.




# docker-compose.yml (local dev only, not how production gets secrets)
services:
api:
env_file:
- .env.local
environment:
- NODE_ENV=development






In production, don't env_file a plaintext secrets file into a container image or repo. Pull secrets at deploy time from a managed store and inject them as environment variables into the running process, so the secret never touches disk on the image layer or a git commit.



A subtler pitfall: logging. It's easy to log an entire request object for debugging and forget that the request includes an Authorization header or a password field. Redact known-sensitive keys at the logger configuration level, not per call site, because per-call-site discipline eventually lapses.




// logger/redact.ts
export const REDACTED_KEYS = ['password', 'authorization', 'refreshToken', 'apiKey'];

export function redact(obj: Record<string, unknown>) {
const clone = { ...obj };
for (const key of REDACTED_KEYS) {
if (key in clone) clone[key] = '[REDACTED]';
}
return clone;
}









Transport and infrastructure hardening



HTTPS everywhere is table stakes, not a checkbox you argue about. What's less obvious is what sits between "HTTPS is on" and "we're actually hardened."



Set security headers with something like helmet rather than hand-rolling them, and don't skip rate limiting on anything that touches auth or lets a caller trigger expensive work.




// main.ts
import helmet from 'helmet';
import { ThrottlerGuard } from '@nestjs/throttler';

app.use(helmet());
app.useGlobalGuards(new ThrottlerGuard());






Rate limiting deserves a second look specifically on login, password reset, and any endpoint that sends an email or SMS. Without it, your signup form becomes a free tool for someone to spam another person's inbox, and your login endpoint becomes a credential-stuffing target with no friction at all. Redis-backed rate limiting scales this across multiple instances, which matters the moment you're running more than one container.



Dependency scanning is the least glamorous item on this list and the one teams skip most. npm audit in CI, or a service like Snyk or GitHub's Dependabot, catches known vulnerabilities in the packages you already depend on. The tradeoff is noise: not every flagged vulnerability is exploitable in your context, and blindly bumping every dependency on every alert introduces its own risk of breakage. Triage the alerts; don't auto-merge them blind, and don't ignore them either.






Logging, monitoring, and incident readiness



Security work isn't finished when the code ships. Most teams have a detection gap, not a prevention gap: something goes wrong and nobody notices until a customer complains.



Structured logs with enough context to reconstruct an event (who, what tenant, what action, when) make the difference between a five-minute investigation and a two-day one. Pair that with alerting on the signals that actually matter: repeated failed logins from one account, a spike in 401/403 responses, an unusual volume of data exports.



None of this needs to be elaborate on day one. A log aggregator, a couple of alert rules, and a documented "what do we do if this fires" runbook cover most of the realistic scenarios a small SaaS team will face. Building a full SIEM setup before you have the traffic to justify it is complexity you haven't earned yet, in the same spirit as the stack decisions from the first article in this series.






Key takeaways




  • Authentication is the foundation: short-lived access tokens, rotated refresh tokens, and httpOnly cookies close off the most common session-hijacking paths.

  • Tenant isolation belongs at the application layer first, with row-level security as a defense-in-depth backstop, not a replacement.

  • Global DTO validation with whitelist and forbidNonWhitelisted stops mass-assignment and malformed-payload bugs before they reach your services.

  • Secrets go into a managed store and get injected at runtime; they never live in git history or plaintext files on a deployed image.

  • Security headers, rate limiting, and dependency scanning are cheap to add and expensive to skip; add them before launch, not after an incident.

  • Detection matters as much as prevention: structured logs and a couple of well-chosen alerts turn an unnoticed breach into a five-minute response.






FAQ



What is the most important security control for a new SaaS product?

Authentication and tenant isolation, in that order. Get short-lived tokens, rotated refresh tokens, and server-side tenant scoping right before layering on anything else.



Do I need row-level security in Postgres if my application already checks tenant ID?

It's a strong defense-in-depth layer rather than a strict requirement. Application checks stay your primary guard, but RLS means a bug in a service method doesn't automatically become a cross-tenant data leak.



Is storing a JWT in localStorage actually dangerous?

Yes, mainly because of XSS exposure. Any script that runs on your page, your own code or a compromised dependency, can read localStorage and exfiltrate the token. An httpOnly cookie isn't reachable from JavaScript, which removes that attack path entirely.



How often should refresh tokens rotate?

Rotate on every use, and track token families so a stolen refresh token that gets reused after rotation is detectable and revocable. Rotation on use matters more than the exact expiry window you pick.



Do I need a WAF or can rate limiting and validation cover me?

For most small-to-mid SaaS products, solid input validation, rate limiting, and security headers cover the realistic threat surface. A WAF helps at higher traffic, but it isn't a substitute for fixing validation gaps in your own code.



What's the single most common security mistake in early-stage SaaS apps?

A query that forgets to filter by tenant ID. It rarely comes from a missing role check; it comes from an otherwise correct-looking query written without the tenant scope in mind, and it usually surfaces through a support ticket rather than a security scan.






Further reading











About the Author



Hi, I'm Aman Singh — Senior Full Stack Engineer specializing in scalable SaaS products, distributed systems, cloud architecture, and AI-powered applications.



I write about System Design, Full Stack Engineering, Distributed Systems, Redis, PostgreSQL, AWS, Node.js, and NestJS.



Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Topluluk tartışması ve yorumlar

🌐 Ana sohbete katıl

Tartışmayı başlat: Social Chat yayın akışı veya yukarıdaki ekleme formuyla uzman katkısı gönder.

Siber Tehdit İstihbaratı ve Adli Bilişim

ATT&CK Gezgini · IoC Radarı ve Graf

MITRE ATT&CK Matrix Navigator
2 belegte Techniken
T1190TA0001 · Initial Access
Exploit Public-Facing Application
Mitigation: M1042 Network Segmentation & WAF Rule Enforcement
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 86%
OpenVAS ile halka açık erişilebilir hizmetler, keskin WAF kuralları, kısa yama pencereler.
T1041TA0010 · Exfiltration
Exfiltration Over C2 Channel
Mitigation: M1057 Data Loss Prevention
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 75%
Egress filtreleme, DLP yönergeleri kontrol edin, olağandışı yükleme hacimleri için uyarı.
Initial Access
Exfiltration
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating &amp; Social Proof
⭐ Okuyucu Puanı
–
Ø / 5.0
Hiçbir okuyucu henüz yorum yok
Bu makale yararlı mıydı?
0
Değerlendirmenizi gönderin
Detaylı değerlendirme (isteğe bağlı)
İçerik ve Kalite
Kaynak ve Güvenilirlik
Güncellik
Security Briefing Ücretsiz · Tek tıkla abonelikten çıkma

Zeka Digest - ücretsiz

Günlük en önemli güvenlik haberi · herhangi bir zamanda alınabilir

İlgili Story Cluster & Kaynaklar (vector AI)

6 Cluster
44 Kaynaklar
Best Black Friday home office deals 2026 — save on our top-tested work essentials from Herman Miller, FlexiSpot, Logitech, Epson and more
Latest from TechRadar 20 dakika önce
43 diğer kaynaklar
Latest from TechRadar18 dakika önceSony WH-1000XM6 just hit a record-low price — now it's Black Friday Latest from TechRadar13 dakika önceLenovo's Copilot+ IdeaPad Slim 3 with 16GB RAM and a 512GB SSD is £350 off for Black Friday The Verge8 dakika önceOur favorite headphones and earbuds are cheaper than ever ahead of Black Friday Computer Bild22 dakika önceBlack Friday: Live-Show ab 16 Uhr – die besten Deals t3n.de22 dakika önceBlack Friday: Alle guten Angebote zu Apple, Samsung, Fritz und Co. in der Übersicht Golem.de14 dakika önceAnzeige: Google Pixel 10a am Black Friday bei Amazon erstmals unter 380 Euro COMPUTER BILD1 saat önceCOMPUTER BILD: Die Deal-Checker! BLACK FRIDAY 2026 WIRED33 dakika önceThe Best Black Friday Streaming Deals (2026): Apple TV, Disney, Paramount, and More GamingOnLinux Latest Articl…40 dakika önceitch.io Creator Day & Black Friday 2026 sale is live Latest from TechRadar48 dakika önceBest Black Friday MacBook Air deals: biggest discounts on Apple's thin and light laptop range Latest from TechRadar38 dakika önceProton VPN vs ExpressVPN – which secure VPN should you pick this Black Friday? WIRED9 saat önceThe 108 Best Black Friday Deals Are Now Live: Our Expert Picks for 2026 WIRED44 dakika önce20 Best Black Friday Tech Deals (2026) WIRED43 dakika önceThe 10 Best Black Friday TV Deals (2026): Save Up to 53% Off Giga.de34 dakika önceBlack Friday 2026 bei Back Market: Dyson, Ninja und GoPro jetzt deutlich günstiger Cyber Security News1 saat önceBlack Friday or Black Fraud Day? 7 Cyber Traps to Watch Out for Before You Click ‘Buy’ CNET2 gün önceLive: Black Friday Is Here. Shop Our Favorite Deals and Save Up to 60% Apple, Anker, Bose and More WIRED57 dakika önce22 Best Black Friday Deals Under $100 (2026) WIRED56 dakika önceBest Black Friday Phone Deals (2026): iPhone, Pixel, and More The Verge1 saat önceThe absolute best Black Friday deals we’ve found (so far) Giga.de55 dakika önceAirPods Pro 3 im Black-Friday-Sturzflug: So günstig waren Apples Top-In-Ears noch nie PC-WELT53 dakika önceBlack Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr PC-WELT53 dakika önceBlack Friday bei Amazon Haul: 20 Prozent Rabatt auf Powerbanks, Batterieprüfer, Speichersticks und mehr t3n.de1 saat önceKindle, Echo Dot, Fire TV: Diese neuen Amazon-Geräte sind zum Black Friday stark reduziert Macerkopf.de1 saat önceAmazon Black Friday Woche: iPad Air, iPhone 18 Cases, AirTag 2, Fire TV Sticks, Echo Dot und mehr appgefahren.de1 saat önceJMGO mit Black Friday-Deals: Heimkino-Bundles bis zu 60 Prozent günstiger PC-WELT1 saat önceGoogle Pixel 11 jetzt unglaubliche 430 Euro günstiger im Black-Friday-Deal: Tiefstpreis bei Amazon PC-WELT1 saat önceNorton 360 Premium-Security an Black Friday nur 19,99 Euro statt 100 Euro Latest from TechRadar1 saat önceThe best Black Friday headphone deals: Sony, AirPods and more Latest from TechRadar1 saat önceBest Black Friday mini PC deals 2026 live: Save on desktops from Apple, Geekom, GMKtec, Minisforum, and more Golem.de1 saat önceAnzeige: Amazon startet mit Glücksrad-Gewinnspiel in den Black Friday Latest from TechRadar1 saat önceThese smart and polished backpacks have accompanied me to events all over the world — and they're now 30% for Black Friday PC-WELT1 saat önceRiesiger 75 Zoll 4K-QLED-Fernseher fällt bei Amazon auf nur 469 Eur im Black-Friday-Angebot PC-WELT1 saat önceBlack Friday: Beliebte Mähroboter von Mammotion jetzt ab 599 Euro Latest from TechRadar1 saat önceSave up to around £200 on these top mini PCs for Black Friday — with multiple options and configurations available for your exact needs or preferences Caschys Blog3 saat önceFlexiSpot Black Friday 2026: Bis zu 40 % Rabatt auf Bestseller bei Amazon Golem.de1 saat önceBlack Friday: Verdi mobilisiert bei Amazon in Gera nur wenige PC-WELT1 saat önceNotebooksbilliger Black Friday: 150 Euro Extra-Rabatt – Laptops unter 300 Euro appgefahren.de1 saat öncetink.de bietet bis zu 50 Euro Extra-Rabatt auf Black-Friday-Angebote PC-WELT1 saat önceNotebooksbilliger Black Friday: 150 Euro Extra-Rabatt – Laptops unter 300 Euro Latest from TechRadar2 saat önceWhich all-in-one Black Friday VPN bundle is really worth it? I compared NordVPN Prime, ExpressVPN Pro, and Proton Unlimited — all under $7 a month — to decide PC-WELT2 saat önceAmazon verlost an Black Friday Einkaufsgutscheine im Wert von 2.000 Euro PC-WELT2 saat önceAmazon verlost an Black Friday Einkaufsgutscheine im Wert von 2.000 Euro
22 Kaynaklar
CVE-2026-95457 | Google Android Camera reconnect.shard.cml privileges management
VulDB Updates 44 dakika önce
21 diğer kaynaklar
VulDB Updates44 dakika önceCVE-2026-95458 | Google Android Bluetooth Setup bluetooth_setup_impl.cc OnAudioSourceConnectChanged privileges management VulDB Updates44 dakika önceCVE-2026-95464 | Google Android logical_link.cc SignalError use after free VulDB Updates44 dakika önceCVE-2026-95456 | Google Android a2dp_offload_manager.cc StartA2dpOffload use after free VulDB Updates44 dakika önceCVE-2026-95463 | Google Android data_element.cc DataElement::Read recursion Engadget59 dakika önceGoogle will soon share Android developers' addresses publicly VulDB Updates1 saat önceCVE-2026-95429 | Google Android BrEdrDynamicChannel bredr_dynamic_channel.cc resource consumption VulDB Updates1 saat önceCVE-2026-95434 | Google Android LowEnergyScanner low_energy_scanner.cc NotifyPeerFound resource consumption VulDB Updates1 saat önceCVE-2026-95441 | Google Android Bluetooth connection.cc OnDisconnectionComplete denial of service VulDB Updates1 saat önceCVE-2026-95422 | Google Android periodic_advertising_synchronizer.cc OnSyncEstablished assertion VulDB Updates1 saat önceCVE-2026-95423 | Google Android local_service_manager.cc OnWriteCCC null pointer dereference VulDB Updates1 saat önceCVE-2026-95447 | Google Android SDP Client client.cc OnRxFrame memory corruption VulDB Updates1 saat önceCVE-2026-95421 | Google Android Command Processing bredr_signaling_channel.cc DecodeRxUnit use after free VulDB Updates1 saat önceCVE-2026-95435 | Google Android advertising_data.cc FromBytes out-of-bounds VulDB Updates1 saat önceCVE-2026-95446 | Google Android credit_based_flow_control_rx_engine.cc ProcessPdu input validation VulDB Updates1 saat önceCVE-2026-95420 | Google Android Pairing security_manager.cc OnEncryptionChange privileges management VulDB Updates1 saat önceCVE-2026-95419 | Google Android Bluetooth Security Manager security_manager.cc OnPairingRequest unusual condition VulDB Updates1 saat önceCVE-2026-95416 | Google Android Link Encryption Key security_manager.cc OnPairingFailed denial of service VulDB Updates1 saat önceCVE-2026-95415 | Google Android RemoteCharacteristic remote_characteristic.cc denial of service VulDB Updates1 saat önceCVE-2026-95417 | Google Android remote_characteristic.cc ResolvePendingNotifyRequests use after free VulDB Updates1 saat önceCVE-2026-95414 | Google Android http_file_request_handler.cc GetFilePath path traversal VulDB Updates1 saat önceCVE-2026-95418 | Google Android logical_link.cc LogicalLink::SignalError use after free
Benzer katkılar
🔍 Verwandte News

Auch interessante Nachrichten A Production Security Checklist

Thematisch verwandte Begriffe: Production, Security, Checklist · 6 Treffer

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Yorumlar yüklenir..
Update to Update
Widgets & Topics
Loading widgets…
Nächster Beitrag