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
-
Mz Nana, other gospel artistes lead worship at celebration of life for Eno Baatanpa Foundation CEO
1 hour -
Ayawaso East NDC Primary: Baba Jamal campaign distributes TV sets, food to delegates
2 hours -
MzNana & Obaapa Christy unite on soul-stirring gospel anthem Ahoto’
2 hours -
Ayawaso East by-election underway as five candidates vie for NDC ticket
2 hours -
Loyalty is everything in politics; Bawumia must decide on Afenyo-Markin – Adom-Otchere
2 hours -
Ghana positions itself as a Competitive Fund Domiciliation Hub
3 hours -
NPP: Afenyo-Markin defends post-election coordination, urges focus on party unity
3 hours -
MoMo boss Shaibu Haruna named fintech CEO of the Year as MobileMoney Ltd, MTN Ghana sweep top awards
3 hours -
Kofi Bentil praises Afenyo-Markin’s leadership style but calls it combative
3 hours -
NDC’s demolishing exercises will feature in 2028 election – Adom Otchere
4 hours -
“I was hoping for 60%” – Paul Adom-Otchere on Dr Bawumia’s flagbearer win
4 hours -
Africa’s growth depends on empowering SMEs, women and youth – CEO of Telecel Group
4 hours -
Force for good in action: Absa’s colleague volunteerism in 2025
5 hours -
14-Year-old boy drowns at Fiapre Catholic Junction in Bono Region
5 hours -
KIA too big to be named after Kotoka – Kofi Bentil
5 hours
