Audio By Carbonatix
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.DISCLAIMER: The Views, Comments, Opinions, Contributions and Statements made by Readers and Contributors on this platform do not necessarily represent the views or policy of Multimedia Group Limited.
DISCLAIMER: The Views, Comments, Opinions, Contributions and Statements made by Readers and Contributors on this platform do not necessarily represent the views or policy of Multimedia Group Limited.
Latest Stories
-
DVLA to replace faded 2026 number plates free of charge – CEO
4 minutes -
2026 Obuasi Cricket Festival set for September 17–20
6 minutes -
Weak cedi limiting bigger fuel price reductions despite government intervention – IES
16 minutes -
Speaker of Parliament announces “Visit Ghana” Project with Sunderland
31 minutes -
From classroom to public: Understanding the interpretation of AI in project work, assignments, and research
41 minutes -
Gender Ministry, IJM reaffirm commitment to strengthening child protection partnership
47 minutes -
Government’s GH¢2 diesel subsidy offers timely relief, not a long-term solution – IES
49 minutes -
Parliament, Sunderland AFC set for strategic partnership for youth development in Ghana
54 minutes -
How Dr. Bawumia delivered touching tribute to late Ya-Na at the installation of Regent of Dagbon
1 hour -
GH¢2 diesel relief will not burden taxpayers – Energy Ministry
1 hour -
GH¢2 diesel subsidy will cushion consumers amid global fuel market volatility – COMAC
1 hour -
Current NPP leadership must accept responsibility for 2024 defeat and step aside – Frances Essiam
1 hour -
Washington state wildfires force 60,000 people to evacuate homes
1 hour -
Russia says seven killed and 40 injured by Ukrainian drone hitting busy beach
1 hour -
France hits out at Reform UK plan to return migrants using Navy
1 hour