<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SANGKUR</title>
    <description>The latest articles on DEV Community by SANGKUR (@sangkur).</description>
    <link>https://dev.to/sangkur</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3936566%2Fd1acd34b-c7a0-4846-83a8-19eba5ebaee7.png</url>
      <title>DEV Community: SANGKUR</title>
      <link>https://dev.to/sangkur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sangkur"/>
    <language>en</language>
    <item>
      <title>Top 10 Security Mistakes Developers Make in 2026</title>
      <dc:creator>SANGKUR</dc:creator>
      <pubDate>Sun, 17 May 2026 16:44:20 +0000</pubDate>
      <link>https://dev.to/sangkur/top-10-security-mistakes-developers-make-in-2026-d52</link>
      <guid>https://dev.to/sangkur/top-10-security-mistakes-developers-make-in-2026-d52</guid>
      <description>&lt;p&gt;After analyzing thousands of codebases, here are the most common security issues we find — ranked by frequency.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Hardcoded Secrets (73% of repos)
&lt;/h2&gt;

&lt;p&gt;API keys, database passwords, and JWT secrets committed directly to source code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Use environment variables and .env files (gitignored). Set up git pre-commit hooks with tools like git-secrets.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Missing Input Validation (68%)
&lt;/h2&gt;

&lt;p&gt;User input goes directly to database queries, file operations, or shell commands without any validation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Validate ALL inputs at the boundary. Use schema validation (Zod, Joi, Pydantic) and parameterized queries.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Broken Access Control / IDOR (54%)
&lt;/h2&gt;

&lt;p&gt;Users can access other users' data by changing an ID in the URL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Always check resource ownership: &lt;code&gt;WHERE id = ? AND user_id = ?&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. No Rate Limiting (61%)
&lt;/h2&gt;

&lt;p&gt;Login endpoints, API routes, and password reset flows without any rate limiting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Use slowapi (Python), express-rate-limit (Node.js), or your CDN's rate limiting.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Sequential IDs Exposed (47%)
&lt;/h2&gt;

&lt;p&gt;Sequential IDs in URLs make it trivial to enumerate resources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Use UUIDs for public-facing IDs. Keep sequential IDs for internal use only.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Missing Security Headers (82%)
&lt;/h2&gt;

&lt;p&gt;No CSP, no X-Frame-Options, no Strict-Transport-Security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Add security headers via middleware or CDN config. Test at securityheaders.com.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. SQL Injection (31%)
&lt;/h2&gt;

&lt;p&gt;Still prevalent in PHP and Python codebases that use string formatting for queries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Use parameterized queries or an ORM. Never concatenate user input into SQL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# ❌ Vulnerable
&lt;/span&gt;&lt;span class="n"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SELECT * FROM users WHERE id = &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# ✅ Safe
&lt;/span&gt;&lt;span class="n"&gt;cursor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SELECT * FROM users WHERE id = %s&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;,))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Weak Cryptography (39%)
&lt;/h2&gt;

&lt;p&gt;MD5 or SHA1 for password hashing, weak encryption algorithms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; bcrypt/argon2 for passwords, AES-256-GCM for encryption.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Verbose Error Messages (56%)
&lt;/h2&gt;

&lt;p&gt;Stack traces and internal paths exposed to users in production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Catch all errors at the boundary, log internally, return generic messages to users.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. Outdated Dependencies (44%)
&lt;/h2&gt;

&lt;p&gt;Known CVEs in npm packages, pip requirements, or Composer dependencies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick fix:&lt;/strong&gt; Enable Dependabot/Renovate, run &lt;code&gt;npm audit&lt;/code&gt; in CI, update regularly.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to check your code automatically
&lt;/h2&gt;

&lt;p&gt;I built &lt;a href="https://sangkur.com" rel="noopener noreferrer"&gt;SANGKUR&lt;/a&gt; to detect all 10 of these issues automatically. It uses a 5-engine pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pattern matching (540+ rules)&lt;/li&gt;
&lt;li&gt;Taint analysis (tracks user input → dangerous sinks)&lt;/li&gt;
&lt;li&gt;AST analysis (understands code structure)&lt;/li&gt;
&lt;li&gt;Cross-file data flow&lt;/li&gt;
&lt;li&gt;AI analysis with CVSS scoring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's free to try — 30 scans/month, no credit card. Supports 23+ languages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://sangkur.com" rel="noopener noreferrer"&gt;sangkur.com&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;What security issues do you see most often in code reviews? Let me know in the comments 👇&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
