Nikki Siapno Profile picture
May 2 10 tweets 3 min read Twitter logo Read on Twitter
134 million credit cards were stolen from Heartland's payment systems.

The hackers used one technique — SQL injections.

Here's how it works:
SQL injection is a type of attack where the attacker runs damaging SQL commands by inserting malicious SQL code into a web application input field or URL.
For example, imagine a web app that returns all your information after logging in. That query may look like the following:

SELECT * FROM users
WHERE username = 'USER_INPUT';
If an attacker were to submit a malicious input, the query could change to the following:

SELECT * FROM users
WHERE username = '' OR '1'='1';

This query will return all users as '1'='1' will always return true. Image
You can protect your system from SQL injection by doing the following:
1. Use prepared statements or parameterized queries:

User input cannot be executed because prepared statements and parameterized queries ensure a distinct separation between user input and SQL code.
2. Validate and clean inputs:

Use expected formats and constraints to validate user input, and clean inputs to get rid of characters that may be interpreted as SQL code.
3. Follow the least privilege principle:

Limit the permissions for database accounts used by applications and services to only what is required for their functionality. This limits the system's vulnerability to SQL injection attacks.
Want more engineering insights like this?

Subscribe to our free newsletter for a weekly roundup of all our best content:

drp.li/PnqjS
If this thread was helpful to you:

1. Connect with me: linkedin.com/in/nicolesiapno for content like this

2. Follow linkedin.com/company/levelu… for quality Programming & Tech content

3. Like & Retweet the tweet below to share it with others👇

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Nikki Siapno

Nikki Siapno Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @NikkiSiapno

Apr 25
If you're not using AI, you're falling behind.

Here are 7 cutting-edge AI tools to save you hours of boring work:
1. Wix Development Platform

Rapidly build, manage, & deploy applications.

Integrated with ChatGPT, let AI write all the text for your site/app.

• Drag & drop UI
• Add JavaScript, connect database
• Out-of-the-box tooling
• One-click deployment

Wix.com/velo
2. Kaiber

Create stunning videos.

Kaiber is an AI-powered video generation tool.

Create captivating visuals from images or text descriptions.

Kaiber.ai

Read 9 tweets
Apr 21
Data structures are the backbone of programming.

Here's a dead-simple guide to get you started: Image
Non-primitive data structures are made up of primitive data types like integers, characters, floats, or booleans to make complex structures. They help arrange data in a way that makes operations easier and faster to complete.
Linear data structures are used to arrange items sequentially and in a specific order. They can be traversed in a linear fashion, which makes them ideal for organizing and manipulating data when access, insertion, or removal must take place in a specific sequence or place. Image
Read 6 tweets
Apr 19
Ever wondered how banks protect your sensitive data?

Here’s everything you need to know about tokenization, a must-have in cybersecurity:
1. Tokenization is a security technique that replaces sensitive information with unique placeholder values called tokens.
2. By tokenizing your sensitive data, you can protect them from unauthorized access and lessen the impact of data breaches.

Tokenization also lets you scale back on security measures in other areas of the system.
Read 9 tweets
Apr 17
Give me 5 minutes and I'll teach you everything about inheritance in object-oriented programming (includes Python code): Image
Single inheritance:

This kind of inheritance is the simplest and most typical. It creates a single-level hierarchy where a parent's properties and methods are passed down to child classes. Image
Multiple inheritance:

A child class can inherit traits & functions from several parent classes thanks to multiple inheritance.

Despite being a powerful technique, it may also increase complexity & lead to problems like tight coupling. Image
Read 8 tweets
Apr 14
MYTH: you need to be a programming genius to land a high-paying job.

REALITY: you need a strong portfolio of projects.

Here are awesome projects you should add to your resume.
Build 15 JavaScript Projects - Vanilla JavaScript Course

• Improve and showcase your JavaScript skills
• 15 projects in 8 hours
• Full walkthroughs
• By FreeCodeCamp

rli.to/WLRML
12 Beginner Python Projects - Coding Course

• Improve your Python skills
• 12 projects in 3 hours
• Full walkthroughs
• By FreeCodeCamp

rli.to/Vz1y8
Read 8 tweets
Apr 6
Stop wasting time and money on tasks that AI can be doing instead.

Here are 7 AI tools to hack your life and save time:
1. Simplified

All-in-one platform for content creation.

It's an AI presentation maker, AI blog writer, AI powered Social Media Manager, and more!

@yadavajay & the team have done a great job of this tool.

A "must-try" tool — very generous free tier.

👉 simplified.com Image
2. Kickresume

Let artificial intelligence write your resume.

@Kickresume can generate the first draft of your resume in seconds.

Very generous free tier provided.

👉 kickresume.com Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(