Saudi Press

Saudi Arabia and the world
Friday, Aug 21, 2026

Copycat coders create 'vulnerable' apps

Copycat coders create 'vulnerable' apps

Developers who copy code rather than write it themselves leave apps open to attack, a study warns.

Lazy developers who copy solutions to tricky programming problems are creating apps that are vulnerable to attack, research suggests.

A team of computer scientists looked at more than 72,000 chunks of code found on the Stack Overflow website.

The site is popular with developers seeking advice on the best way to fix broken code.

But researchers found many of the most copied snippets lacked basic checks that would stop common attacks.

The dangerous code chunks often used obsolete functions, did little to check user responses and did not look for attempts to break the application, said the study.


Security risks


The researchers, also trawled through a website where many developers upload and share the code behind their apps and programmes.

The most widely used insecure code blocks turned up in more than 2,800 separate projects on the Github website, they found.

The research team, involving experts at Canadian and Iranian universities, focused on the C++ programming language, which is used in a huge variety of projects, from small programs to large distributed systems.

The team informed those they found using the problematic code chunks on Github that they may have introduced security risks into their apps and programmes.


The hard way


But only 13% of the developers contacted said they had fixed the code, the researchers said. A similar number declined to fix the bugs.

Some 40% said the code was safe because users could not change it once an app was running.

"The people who are using Stack Overflow, they shouldn't trust it fully," said Prof Ashkan Sami, a computer scientist at Shiraz University in Iran who co-wrote the study.

"It's better for programmers to do it the hard way and learn secure coding," he told The Register tech news site.

Prof Sami said the team had developed an extension for the Chrome browser that checks when code is copied from Stack Overflow and lets coders know if it is poorly written or insecure.

Newsletter

Related Articles

Saudi Press
0:00
0:00
Close
Cristiano Ronaldo and Georgina Rodríguez Sign Prenup Protecting Their Separate Fortunes
Google Launches Pixel 11 With Gemini AI at the Center of Its Hardware Strategy
Turkish Parliament Passes Landmark Bill Granting Conditional Amnesty to Disarmed PKK Members
Jorge Messi, Lionel Messi’s Father and Longtime Agent, Dies at 68
AI’s Next Bottleneck Is Power, Not Just Nvidia Chips
Meta Raises AI Spending Target to as Much as $145bn Despite Pressure Over Returns
Joe Biden’s Cancer Has Spread Beyond His Bones, Hunter Biden Says
Why 2027 Could Be a Strong Year for Stocks—and Why the Forecast Is Fragile
Why Markets May Look Quiet in August After Big Tech Earnings
Trump’s Top General Seeks an Exit Strategy From Iran War, Report Says
Brock Lesnar Retires From Wrestling, Closing a Career of Rare Athletic Range and Lasting Controversy
UFO: Pentagon Releases Video of Unidentified Object Tracked Over Middle East
Ukraine Tells Senate Republicans Its Drone War Offers a Blueprint for America
Weight-Loss Drug Boom Tests the Limits of Prescription Advertising Rules
Saudi Arabia, Turkey and Pakistan Sign Mutual-Defence Pact
AI Is Remaking the US Economy, From GDP Growth to iPhone Prices
A SpaceX Rocket Is About to Crash Into the Moon — and Scientists Hope to Watch
Modern Slavery Decisions Broaden the Al Fayed Inquiry’s Frame
FIFA’s Retreat Leaves a Larger Question Over Who Guards the Game
Finland Deploys Commercial-Scale Thermal Batteries Using Crushed Rock to Store Renewable Grid Energy
Valued at $109 Million: F-35B Fighter Jet Crashes in Southern California
US Says It Has Carried Out Heavy Strikes on Iran After Attempted Attacks on Its Forces
Over 24 Hours in the Air: Qantas Airbus Completes Record-Breaking Test Flight
Arrest Warrant Issued in Lebanon for Tycoon Spotted Meeting Netanyahu in Washington
Trump says Israel ‘would not survive’ without US
Nvidia Reportedly Takes Vast Texas Data-Centre Lease to Underwrite AI Expansion
FIFA’s Private-Investment Plan for World Cup Rights Draws European Revolt
Following OpenAI's Cyberattack: 'Most Companies Still Do Not Understand What Is Coming'
OpenAI Sued After ChatGPT Allegedly Discouraged Emergency Care Before Near-Fatal Embolism
Miliband Sets Climate and International Law at Centre of UK Diplomacy
Pentagon Discloses Nearly 100 US Troop Injuries During Renewed Iran Fighting
Trump Readies New Tariffs as Temporary Global Levy Nears Expiry
High Prices Push Coffee Drinkers Toward Whole Beans and Home Brewing
Trump Draws Boos and Podium Scrutiny at Spain’s World Cup Triumph
Spain Defeats Argentina in Extra Time to Win Second World Cup
Turkey Explores S-400 Transfer to UAE in Bid to Rejoin F-35 Program
US Retaliates Against Iran After Two American Troops Killed in Jordan
Proposed U.S.-Saudi Nuclear Pact Could Permit Limited Uranium Enrichment Under International Safeguards
Why Kentucky Fried Chicken Became KFC—and Why the False Explanations Persist
Iran Claims It Destroyed Bahrain’s Main Artificial Intelligence Center in Missile and Drone Strike
Ukrainian Drones Strike Wildberries Warehouses Deep Inside Russia
Reported CIA Mission Helped Clear the UAE’s Path to Advanced US AI Chips
Artificial Intelligence Capital Fuels Markets While Governments and Regulators Face Mounting Strategic Tests
China’s Moonshot’s Kimi K3 Narrows the Gap With Anthropic Through Scale, Openness and Lower Cost
Gold and Cash Seizure Puts Indonesia’s Senior Anti-Corruption Prosecutor Under Investigation
The Ledger Will Not Trust on Faith
Passenger Bound for Germany Refused to Sit Beside a Woman on a Plane — Then Slapped a Flight Attendant
Ukraine’s Leadership Rift Spills Into the Streets as Protesters Target Army Chief
The Ten World Cup Finals That Defined Football History
Smartphones Are Getting More Expensive, Sales Are Collapsing, and Even Apple Admits: "Prices Will Rise"
×