• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Sunday, May 25, 2025
Techcratic
Click For A Secret Deal
  • TC
  • AI
    Artificial Intelligence

    Surprising Things You Can Do with Python’s csv Module

    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

  • Crypto
    Dubai Land Department Launches Tokenized Real Estate Initiative on XRP Ledger

    Dubai Land Department Launches Tokenized Real Estate Initiative on XRP Ledger

    Bitcoin trader swaps $1.25B long for short as BTC price slides under $108K

    Bitcoin trader swaps $1.25B long for short as BTC price slides under $108K

    BTC Ranged, Alts Ripped, and Coinbase’s Rollercoaster Ride

    BTC Ranged, Alts Ripped, and Coinbase’s Rollercoaster Ride

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    Hyperliquid Letters Push CFTC Toward 24/7 Perpetuals Trading

    Ripple Hails Crypto ETF Boom as Game-Changer for Institutional Access

    Ripple Hails Crypto ETF Boom as Game-Changer for Institutional Access

    Weekly Crypto Wrap: Bitcoin’s Surge Stalls Amid Trump Tariff News; Analyst Predicts $140,000 by July

    Weekly Crypto Wrap: Bitcoin’s Surge Stalls Amid Trump Tariff News; Analyst Predicts $140,000 by July

    XRP Price Watch: Consolidation or Collapse? Market Holds Breath Near $2.35

    XRP Price Watch: Consolidation or Collapse? Market Holds Breath Near $2.35

    Chinese Automotive Firm Reveals Dual-Track Plan to Buy 1,000 Bitcoins Over Next Year

    Chinese Automotive Firm Reveals Dual-Track Plan to Buy 1,000 Bitcoins Over Next Year

    Wallet intelligence shapes the next crypto power shift

    Wallet intelligence shapes the next crypto power shift

  • Cybersecurity
    Cybersecurity

    ViciousTrap Uses Cisco Flaw to Build Global Honeypot from 5,300 Compromised Devices

    Cybersecurity

    CISA Warns of Suspected Broader SaaS Attacks Exploiting App Secrets and Cloud Misconfigs

    Cybersecurity

    Chinese Hackers Exploit Trimble Cityworks Flaw to Infiltrate U.S. Government Networks

    Cybersecurity

    Critical Windows Server 2025 dMSA Vulnerability Enables Active Directory Compromise

    Cybersecurity

    Identity Security Has an Automation Problem—And It’s Bigger Than You Think

    Cybersecurity

    Unpatched Versa Concerto Flaws Let Attackers Escape Docker and Compromise Host

    Cybersecurity

    Learn How to Build a Reasonable and Legally Defensible Cybersecurity Program

    Cybersecurity

    Securing CI/CD workflows with Wazuh

    Cybersecurity

    PureRAT Malware Spikes 4x in 2025, Deploying PureLogs to Target Russian Firms

  • Deals
    5 Surprise NBA Ballers Series 2 by ZURU, Licensed NBA Collectible, Surprise Unboxing…

    5 Surprise NBA Ballers Series 2 by ZURU, Licensed NBA Collectible, Surprise Unboxing…

    Horse Race Board Game with 11 Luxurious Durable Classic Metal Horses with 4 Dice and 2…

    Horse Race Board Game with 11 Luxurious Durable Classic Metal Horses with 4 Dice and 2…

    My Arcade Street Fighter II Pocket Player Pro: Capcom Officially Licensed Handheld Game…

    My Arcade Street Fighter II Pocket Player Pro: Capcom Officially Licensed Handheld Game…

    Army Men: Air Combat (Renewed)

    Army Men: Air Combat (Renewed)

    Seagate STEA2000417 2 TB Portable Hard Drive – External – White

    Seagate STEA2000417 2 TB Portable Hard Drive – External – White

    Toshiba N300 16TB NAS 3.5-Inch Internal Hard Drive – CMR SATA 6 GB/s 7200 RPM 512 MB…

    Toshiba N300 16TB NAS 3.5-Inch Internal Hard Drive – CMR SATA 6 GB/s 7200 RPM 512 MB…

    SanDisk 4TB Extreme Portable SSD – Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and…

    SanDisk 4TB Extreme Portable SSD – Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and…

    SAMSUNG Galaxy S24 Ultra 5G, US Version, 1TB, Titanium Black – Unlocked (Renewed)

    SAMSUNG Galaxy S24 Ultra 5G, US Version, 1TB, Titanium Black – Unlocked (Renewed)

    SAMSUNG Galaxy S25 Edge Phone + Gift Card + Large Storage Upgrade, 512 GB AI Smartphone,…

    SAMSUNG Galaxy S25 Edge Phone + Gift Card + Large Storage Upgrade, 512 GB AI Smartphone,…

  • Gaming
    Tomb Raider 4-6 Remastered on Steam Deck is the DEFINITVE way to play

    Tomb Raider 4-6 Remastered on Steam Deck is the DEFINITVE way to play

    FNaF STUCK INSIDE – Music Video IN LEGO | Five Nights at Freddy's Movie Springlock Failure

    FNaF STUCK INSIDE – Music Video IN LEGO | Five Nights at Freddy's Movie Springlock Failure

    RoboCop: Rogue City Hands-On Preview

    RoboCop: Rogue City Hands-On Preview

    Thymesia – Corvus

    Thymesia – Corvus

    I Almost Quit this Game | The Callisto Protocol Review (PS5)

    I Almost Quit this Game | The Callisto Protocol Review (PS5)

    Starship Troopers: Extermination | Advance and Secure | Demolisher | Hard | No Commentary | #210

    Starship Troopers: Extermination | Advance and Secure | Demolisher | Hard | No Commentary | #210

    As Dusk Falls Video Review | The Xbox Zone | RMGB TV

    As Dusk Falls Video Review | The Xbox Zone | RMGB TV

    Diablo 4 – Is The Necromancer The Right Class For You? Our Brutally Honest Impressions | Open Beta

    Diablo 4 – Is The Necromancer The Right Class For You? Our Brutally Honest Impressions | Open Beta

    Sonic Frontiers Review – Here's The Truth

    Sonic Frontiers Review – Here's The Truth

  • Tesla
    LivTee 5 pcs Auto Trim Removal Tool Kit, No Scratch Plastic Pry Tool Kit – Interior Door…

    LivTee 5 pcs Auto Trim Removal Tool Kit, No Scratch Plastic Pry Tool Kit – Interior Door…

    Seat Cleaner for Tesla Interior & Leather Seat Maintainer Accessories for Model Y 3 S X…

    Seat Cleaner for Tesla Interior & Leather Seat Maintainer Accessories for Model Y 3 S X…

    10-Layer Waterproof Sport Car Cover. See Size Chart for Accurate Fit. All Weather Full…

    10-Layer Waterproof Sport Car Cover. See Size Chart for Accurate Fit. All Weather Full…

    BestEvMod Dashboard Car 1/4 Screw Mount Phone Holder Tablet Mag Safe Compatible with…

    BestEvMod Dashboard Car 1/4 Screw Mount Phone Holder Tablet Mag Safe Compatible with…

    JSAUX Car Cup Holder Cellphone Mount, Metal Long-Arm Ultra Stable Phone Holder for Car…

    JSAUX Car Cup Holder Cellphone Mount, Metal Long-Arm Ultra Stable Phone Holder for Car…

    Wireless Charger Mat Fit for Tesla Cybertruck 2023 2024, Car Center Console Anti Slip…

    Wireless Charger Mat Fit for Tesla Cybertruck 2023 2024, Car Center Console Anti Slip…

    Sunshade Umbrella for cybertruck Accessories ,Custom fit Tesla cybertruck 2023 2024 2025…

    Sunshade Umbrella for cybertruck Accessories ,Custom fit Tesla cybertruck 2023 2024 2025…

    OEDRO Floor Mats Cargo Mats Fit for 2024 2025 Tesla Model 3 Highland, TPE Custom Fit…

    OEDRO Floor Mats Cargo Mats Fit for 2024 2025 Tesla Model 3 Highland, TPE Custom Fit…

    2025 Upgrade Sunshade Roof for Tesla Model Y 2025-2020 [No-Gap/Sag-Free] Middle Magnetic…

    2025 Upgrade Sunshade Roof for Tesla Model Y 2025-2020 [No-Gap/Sag-Free] Middle Magnetic…

  • UFO
    HOdo Big and Tall Mens Polo Shirt Moisture Wicking Sport Golf Shirts 2XL-6XL

    HOdo Big and Tall Mens Polo Shirt Moisture Wicking Sport Golf Shirts 2XL-6XL

    The Problems with China's Space Program

    The Problems with China's Space Program

    ZAFUL Flat Pocket Parachute Pants for Men Casual Baggy Cargo Pants Unisex Street Y2K Pants Drawstring Trouser

    ZAFUL Flat Pocket Parachute Pants for Men Casual Baggy Cargo Pants Unisex Street Y2K Pants Drawstring Trouser

    Conspiracy Theory Music – Demise of A Nation

    Conspiracy Theory Music – Demise of A Nation

    What’s Love Got to Do with It? [DVD]

    What’s Love Got to Do with It? [DVD]

    All You Need To Know About The Alleged UFO Sighting In Manipur

    All You Need To Know About The Alleged UFO Sighting In Manipur

    Mens Graphic Tank Tops Crewneck Gym Muscle Beach Hawaii Sleeveless Shirts

    Mens Graphic Tank Tops Crewneck Gym Muscle Beach Hawaii Sleeveless Shirts

    Top 10 UFO Hotspots the Government Doesn’t Want You to Know About – Part 2

    Top 10 UFO Hotspots the Government Doesn’t Want You to Know About – Part 2

    Monsters Vs Aliens

    Monsters Vs Aliens

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    Surprising Things You Can Do with Python’s csv Module

    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

  • Crypto
    Dubai Land Department Launches Tokenized Real Estate Initiative on XRP Ledger

    Dubai Land Department Launches Tokenized Real Estate Initiative on XRP Ledger

    Bitcoin trader swaps $1.25B long for short as BTC price slides under $108K

    Bitcoin trader swaps $1.25B long for short as BTC price slides under $108K

    BTC Ranged, Alts Ripped, and Coinbase’s Rollercoaster Ride

    BTC Ranged, Alts Ripped, and Coinbase’s Rollercoaster Ride

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    Hyperliquid Letters Push CFTC Toward 24/7 Perpetuals Trading

    Ripple Hails Crypto ETF Boom as Game-Changer for Institutional Access

    Ripple Hails Crypto ETF Boom as Game-Changer for Institutional Access

    Weekly Crypto Wrap: Bitcoin’s Surge Stalls Amid Trump Tariff News; Analyst Predicts $140,000 by July

    Weekly Crypto Wrap: Bitcoin’s Surge Stalls Amid Trump Tariff News; Analyst Predicts $140,000 by July

    XRP Price Watch: Consolidation or Collapse? Market Holds Breath Near $2.35

    XRP Price Watch: Consolidation or Collapse? Market Holds Breath Near $2.35

    Chinese Automotive Firm Reveals Dual-Track Plan to Buy 1,000 Bitcoins Over Next Year

    Chinese Automotive Firm Reveals Dual-Track Plan to Buy 1,000 Bitcoins Over Next Year

    Wallet intelligence shapes the next crypto power shift

    Wallet intelligence shapes the next crypto power shift

  • Cybersecurity
    Cybersecurity

    ViciousTrap Uses Cisco Flaw to Build Global Honeypot from 5,300 Compromised Devices

    Cybersecurity

    CISA Warns of Suspected Broader SaaS Attacks Exploiting App Secrets and Cloud Misconfigs

    Cybersecurity

    Chinese Hackers Exploit Trimble Cityworks Flaw to Infiltrate U.S. Government Networks

    Cybersecurity

    Critical Windows Server 2025 dMSA Vulnerability Enables Active Directory Compromise

    Cybersecurity

    Identity Security Has an Automation Problem—And It’s Bigger Than You Think

    Cybersecurity

    Unpatched Versa Concerto Flaws Let Attackers Escape Docker and Compromise Host

    Cybersecurity

    Learn How to Build a Reasonable and Legally Defensible Cybersecurity Program

    Cybersecurity

    Securing CI/CD workflows with Wazuh

    Cybersecurity

    PureRAT Malware Spikes 4x in 2025, Deploying PureLogs to Target Russian Firms

  • Deals
    5 Surprise NBA Ballers Series 2 by ZURU, Licensed NBA Collectible, Surprise Unboxing…

    5 Surprise NBA Ballers Series 2 by ZURU, Licensed NBA Collectible, Surprise Unboxing…

    Horse Race Board Game with 11 Luxurious Durable Classic Metal Horses with 4 Dice and 2…

    Horse Race Board Game with 11 Luxurious Durable Classic Metal Horses with 4 Dice and 2…

    My Arcade Street Fighter II Pocket Player Pro: Capcom Officially Licensed Handheld Game…

    My Arcade Street Fighter II Pocket Player Pro: Capcom Officially Licensed Handheld Game…

    Army Men: Air Combat (Renewed)

    Army Men: Air Combat (Renewed)

    Seagate STEA2000417 2 TB Portable Hard Drive – External – White

    Seagate STEA2000417 2 TB Portable Hard Drive – External – White

    Toshiba N300 16TB NAS 3.5-Inch Internal Hard Drive – CMR SATA 6 GB/s 7200 RPM 512 MB…

    Toshiba N300 16TB NAS 3.5-Inch Internal Hard Drive – CMR SATA 6 GB/s 7200 RPM 512 MB…

    SanDisk 4TB Extreme Portable SSD – Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and…

    SanDisk 4TB Extreme Portable SSD – Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and…

    SAMSUNG Galaxy S24 Ultra 5G, US Version, 1TB, Titanium Black – Unlocked (Renewed)

    SAMSUNG Galaxy S24 Ultra 5G, US Version, 1TB, Titanium Black – Unlocked (Renewed)

    SAMSUNG Galaxy S25 Edge Phone + Gift Card + Large Storage Upgrade, 512 GB AI Smartphone,…

    SAMSUNG Galaxy S25 Edge Phone + Gift Card + Large Storage Upgrade, 512 GB AI Smartphone,…

  • Gaming
    Tomb Raider 4-6 Remastered on Steam Deck is the DEFINITVE way to play

    Tomb Raider 4-6 Remastered on Steam Deck is the DEFINITVE way to play

    FNaF STUCK INSIDE – Music Video IN LEGO | Five Nights at Freddy's Movie Springlock Failure

    FNaF STUCK INSIDE – Music Video IN LEGO | Five Nights at Freddy's Movie Springlock Failure

    RoboCop: Rogue City Hands-On Preview

    RoboCop: Rogue City Hands-On Preview

    Thymesia – Corvus

    Thymesia – Corvus

    I Almost Quit this Game | The Callisto Protocol Review (PS5)

    I Almost Quit this Game | The Callisto Protocol Review (PS5)

    Starship Troopers: Extermination | Advance and Secure | Demolisher | Hard | No Commentary | #210

    Starship Troopers: Extermination | Advance and Secure | Demolisher | Hard | No Commentary | #210

    As Dusk Falls Video Review | The Xbox Zone | RMGB TV

    As Dusk Falls Video Review | The Xbox Zone | RMGB TV

    Diablo 4 – Is The Necromancer The Right Class For You? Our Brutally Honest Impressions | Open Beta

    Diablo 4 – Is The Necromancer The Right Class For You? Our Brutally Honest Impressions | Open Beta

    Sonic Frontiers Review – Here's The Truth

    Sonic Frontiers Review – Here's The Truth

  • Tesla
    LivTee 5 pcs Auto Trim Removal Tool Kit, No Scratch Plastic Pry Tool Kit – Interior Door…

    LivTee 5 pcs Auto Trim Removal Tool Kit, No Scratch Plastic Pry Tool Kit – Interior Door…

    Seat Cleaner for Tesla Interior & Leather Seat Maintainer Accessories for Model Y 3 S X…

    Seat Cleaner for Tesla Interior & Leather Seat Maintainer Accessories for Model Y 3 S X…

    10-Layer Waterproof Sport Car Cover. See Size Chart for Accurate Fit. All Weather Full…

    10-Layer Waterproof Sport Car Cover. See Size Chart for Accurate Fit. All Weather Full…

    BestEvMod Dashboard Car 1/4 Screw Mount Phone Holder Tablet Mag Safe Compatible with…

    BestEvMod Dashboard Car 1/4 Screw Mount Phone Holder Tablet Mag Safe Compatible with…

    JSAUX Car Cup Holder Cellphone Mount, Metal Long-Arm Ultra Stable Phone Holder for Car…

    JSAUX Car Cup Holder Cellphone Mount, Metal Long-Arm Ultra Stable Phone Holder for Car…

    Wireless Charger Mat Fit for Tesla Cybertruck 2023 2024, Car Center Console Anti Slip…

    Wireless Charger Mat Fit for Tesla Cybertruck 2023 2024, Car Center Console Anti Slip…

    Sunshade Umbrella for cybertruck Accessories ,Custom fit Tesla cybertruck 2023 2024 2025…

    Sunshade Umbrella for cybertruck Accessories ,Custom fit Tesla cybertruck 2023 2024 2025…

    OEDRO Floor Mats Cargo Mats Fit for 2024 2025 Tesla Model 3 Highland, TPE Custom Fit…

    OEDRO Floor Mats Cargo Mats Fit for 2024 2025 Tesla Model 3 Highland, TPE Custom Fit…

    2025 Upgrade Sunshade Roof for Tesla Model Y 2025-2020 [No-Gap/Sag-Free] Middle Magnetic…

    2025 Upgrade Sunshade Roof for Tesla Model Y 2025-2020 [No-Gap/Sag-Free] Middle Magnetic…

  • UFO
    HOdo Big and Tall Mens Polo Shirt Moisture Wicking Sport Golf Shirts 2XL-6XL

    HOdo Big and Tall Mens Polo Shirt Moisture Wicking Sport Golf Shirts 2XL-6XL

    The Problems with China's Space Program

    The Problems with China's Space Program

    ZAFUL Flat Pocket Parachute Pants for Men Casual Baggy Cargo Pants Unisex Street Y2K Pants Drawstring Trouser

    ZAFUL Flat Pocket Parachute Pants for Men Casual Baggy Cargo Pants Unisex Street Y2K Pants Drawstring Trouser

    Conspiracy Theory Music – Demise of A Nation

    Conspiracy Theory Music – Demise of A Nation

    What’s Love Got to Do with It? [DVD]

    What’s Love Got to Do with It? [DVD]

    All You Need To Know About The Alleged UFO Sighting In Manipur

    All You Need To Know About The Alleged UFO Sighting In Manipur

    Mens Graphic Tank Tops Crewneck Gym Muscle Beach Hawaii Sleeveless Shirts

    Mens Graphic Tank Tops Crewneck Gym Muscle Beach Hawaii Sleeveless Shirts

    Top 10 UFO Hotspots the Government Doesn’t Want You to Know About – Part 2

    Top 10 UFO Hotspots the Government Doesn’t Want You to Know About – Part 2

    Monsters Vs Aliens

    Monsters Vs Aliens

No Result
View All Result
Techcratic
No Result
View All Result

The Top 5 Most Common Security Issues I Discover When Reviewing Code

Hacker News by Hacker News
February 2, 2025
in Hacker News
Reading Time: 8 mins read
126 4
A A
0
Home Hacker News
Share on FacebookShare on XShare on LinkedIn

William Barrett
2022-06-10 12:00:00
www.hackerone.com

NOTE: The following code examples have been contrived to provide detailed, illustrative representations of real security issues I’ve found while reviewing code. They have not been pulled from actual codebases or commits. They are written in Python and Ruby, but the concepts apply broadly.

1. Sensitive Information in Log Files

Personally Identifiable Information (PII) is governed by a few different laws—GDPR in Europe and CCPA in California being the two most relevant examples at the time of publication, though more legislation will arrive on this topic over the next few years. These laws govern the ways that companies can store and use personally identifying information, such as names, physical addresses, email addresses, ID numbers, and the like. Generally, this legislation requires that such information is stored securely. Logging is one of the biggest violators of this requirement. Take the following example:

Figure1Top5

This is ostensibly reasonable and safe, but it’s actually leaking email addresses for users into log files. What makes logging this information a security issue? Logging systems tend to not have the same protections as a database. Attackers know this and can exploit it. The email address in the above code should be replaced by an obfuscated or encrypted User ID number.

Secrets can also find their way into log files. As the name implies “secret” keys are credentials that should not be exposed, whereas some API keys are safe to expose. I find that many of the chief offenders are database drivers that will print out the entire connection string on a connection failure. Typically connection attempts for some of these sadly misguided drivers should be wrapped in an exception handler that will swallow the error rather than printing it to logs. Lesser offenders include logging added by programmers for debugging purposes which then sneaks into a pull request or logging code that is intended for the development environment that is set with the wrong log level.

Figure1.5Top5

2. Poor Cryptography Choices

Typically this involves systems that use a one-time key or other token. I’ve seen times when folks tried to take the easy way out by doing a Base64 encoding of a timestamp (highly guessable and not at all pseudo-random) or choosing a high-collision hash for a unique key (like md5) without a unique constraint on the table. Other failures include using encryption algorithms known to be insufficiently complex for security.

Figure2Top5

3. Insufficient Access Controls

Also known as Broken Access Control by OWASP. In 2021, Broken Access Control moved to #1 on the OWASP Top 10 list of the most critical web application security risks.

Broken Access Control moves up from the fifth position to the category with the most serious web application security risk; the contributed data indicates that on average, 3.81% of applications tested had one or more Common Weakness Enumerations (CWEs) with more than 318k occurrences of CWEs in this risk category. The 34 CWEs mapped to Broken Access Control had more occurrences in applications than any other category.

The most common example of this is related to row-level security, where a user can access a subset of the information in a table. It’s easy to forget to add a filter to a query or a check to an endpoint, and it can be tricky to see the mistake in the UI of a program if the filtering is happening appropriately elsewhere in the code. This is most easily discovered by checking that the query filters on index actions are also present on all of the other actions that operate on individual rows.

Figure4Top5

The other common access control failure that I see is missing session checks on endpoints—when, say, every endpoint requires a Python decorator to check the session, it’s easy to leave that off. The best strategy here is to default everything to closed and then use decorators to open up access instead.

Figure5Top5

More about this here.

4. Unsecured Caches

A pattern that I’m seeing more and more, as single-page applications become more complex and common, are cache layers exposed to the front-end, where any cache member is available to load if you know the cache key. This can leak sensitive information across sessions and may result in the escalation of privilege attacks, particularly if the session is used to store access keys. When implementing front-end cache access, it’s important to provide a system for limiting cache access to only those items written by the current user, or if it’s a shared cache ensuring that the writes are verified server-side to avoid injection attacks based on bad behavior from users.

Figure6Top5

5. Trusting the Client Too Much

If you’re new to development, you can think of the client as the “front-end” that users interact with and the “back-end” as the systems that power the front-end.

One of the first security lessons that I was taught was never to trust client-side input; always validate that the client is doing what we expect it to do. I am seeing more and more instances of fewer server-side controls and more reliance on the JavaScript front-end to provide data validation and control on user flow.

For example, say an application has a feature where users can upload images. The front-end client may have validation to make sure a selected file is formatted to contain the expected file type (e.g., the file name ends in “.png”, “.jpg”), but this validation can be easily circumvented by an attacker looking for ways to insert an executable file into a system. Putting too much trust in the client for this validation opens a security hole and opportunity for the attacker to do this. The application’s back-end should also perform validation that the file is the correct and expected type.

While I don’t have evidence for this beyond personal experience, PullRequest provides engineers in the reviewer network like me a unique lens and perspective in reviewing code for a multitude of engineering teams. And from what I’ve observed, this is a visible and growing trend.

I believe the increase in this behavior is a result, at least in part, of the increasing specialization in the industry—web development has become increasingly fragmented into front-end and back-end specialists and requires more collaboration between the two groups to produce functional software. When this collaboration isn’t going well, there can be a tendency for back-end concerns to migrate to the front-end, which can create security vulnerabilities.

Conclusion

These five security issues are especially important to catch in pull request code review as they’re generally very unlikely to be caught in QA. They may be surfaced in a routine penetration test (or pen test) if your organization participates in these, but pen testing is usually done in longer duration intervals while pull request code review is highly regular, ongoing, and proactive—pen testing will usually uncover security issues that already exist. In short, it’s much safer to catch security issues in code review before you, or an attacker discovers them in production.

If I had only one bit of advice that I could beam into every programmer’s mind, it would be to check every single thing you write to logs for PII and secrets, as well as every error you throw for the same. This is the most common recurring issue that I catch time and time again.

This post was originally published on the PullRequest website. On April 28th, 2022 HackerOne acquired PullRequest to help power developer-first security testing solutions. 

Find post author Will Barrett here.

 

Source Link


Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.

Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!


Start your free Amazon Prime trial
today and unlock unlimited streaming and more!

Help Power Techcratic’s Future – Scan To Support

If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.

As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!

BITCOIN

Bitcoin Logo

Bitcoin QR Code

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Scan the QR code with your crypto wallet app

DOGECOIN

Dogecoin Logo

Dogecoin QR Code

D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA

Scan the QR code with your crypto wallet app

ETHEREUM

Ethereum Logo

Ethereum QR Code

0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a

Scan the QR code with your crypto wallet app

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: Hacker News
Share162Tweet101Share28
Previous Post

AirPods 4 Hit New All-Time Low Price of $99.99 on Amazon, Plus Big Discounts on ANC Model and AirPods Pro 2

Next Post

6 BIG Questions God of War Ragnarok Still DOESN'T ANSWER

Hacker News

Hacker News

Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.

Related Posts

Hydra: See photos of vehicles on the island – ‘After the works they abandon them here’, say residents
Hacker News

Hydra: See photos of vehicles on the island – ‘After the works they abandon them here’, say residents

May 25, 2025
1.3k
Please don’t upload my code on GitHub
Hacker News

Please don’t upload my code on GitHub

May 24, 2025
1.3k
What Even Is a Small Language Model Now?
Hacker News

What Even Is a Small Language Model Now?

May 24, 2025
1.3k
Microsoft-backed UK tech unicorn Builder.ai collapses into insolvency
Hacker News

Microsoft-backed UK tech unicorn Builder.ai collapses into insolvency

May 24, 2025
1.3k
Valve takes another step toward making SteamOS a true Windows competitor
Hacker News

Valve takes another step toward making SteamOS a true Windows competitor

May 24, 2025
1.3k
imdj/HNRelevant: A browser extension that adds a “Related Submissions” section to Hacker News
Hacker News

imdj/HNRelevant: A browser extension that adds a “Related Submissions” section to Hacker News

May 23, 2025
1.3k
Load More
Next Post

6 BIG Questions God of War Ragnarok Still DOESN'T ANSWER

LEGOBatman2: DC Super Heroes – Nintendo DS (Renewed)

LEGOBatman2: DC Super Heroes - Nintendo DS (Renewed)

6 Highly-Rated Tool Belts For Electricians

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • AnandTech
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • Home
  • Apple
  • Gaming
  • Microsoft
  • AnandTech