Головні звуки українського ІТ. Вгадаєш всі? 👉

How not to vibecode a security hole? Ukrainian developer names top 5 vibecoding mistakes of beginners

Український розробник Павло Снєда зібрав топ-п’ять помилок у безпеці, які, за його спостереженнями, регулярно трапляються в коді новачків, написаному за допомогою ШІ.

Leave a comment
How not to vibecode a security hole? Ukrainian developer names top 5 vibecoding mistakes of beginners

Ukrainian developer Pavlo Snieda has compiled the top five security mistakes that, according to his observations, regularly occur in novice code written using AI.

The developer spoke about this on LinkedIn, based on his experience in testing live code projects written in NestJS.

«Everyone is coding with AI these days, I’m not an AI hater, but when I review such code, security is almost non-existent,» the developer wrote. Here are the most common mistakes he sees.

1. Insecure validation

The program must check what data it is allowed to receive from the user. If the validation of the entered data is configured incorrectly, the server may accept from the user not only the allowed information, but also unnecessary data. For example, the system may have standard properties: user: name, password, e-mail, as well as the value isAdmin. So when the validation is insecure, the user can change this value to isAdmin=true, and the system can skip it and elevate his rights to the administrator.

2. The system checks who the user is, but not what they are allowed to do

The system verifies that a person is logged in to their account, but may not check whether they have permission to see specific data. For example, if the order number can be changed in the address bar or query, the user can replace it with someone else’s order number. If the server does not check who it belongs to, it may show someone else’s data.

3. Part of the site was protected, but the rest was forgotten.

A developer can lock most pages or features but forget about one. Sneda recommends locking everything by default and only individually unlocking what really needs to be public.

4. The service may accidentally show the user passwords, tokens, or other unnecessary data.

For example, the application needs to show the user’s name, avatar, and registration date, but along with them, the server sends the entire record from the database. It may contain service or sensitive data — password hashes, tokens, or other information that the user should not see. Therefore, it is worth transmitting only those fields that are really needed.

5. Failure to follow basic cyber hygiene rules

Snieda also points out the basic security settings before launching a product. For example, if the number of login attempts is not limited, the password can be tried without restrictions, which makes it easier to hack accounts. And overly detailed error messages can reveal table names and other internal system details to an outsider.

In the comments, the developers also suggested several ways to secure the AI ​​code. For example, Olena Kuznetsova advises running the result through LLM with a request for a security review. Oleksiy Vykhrystyuk suggests using low-code platforms for vibcoding, citing Oracle APEX and APEXlang as examples. And Andriy Zilnyk suggested adding to the rules for the AI ​​assistant OWASP Top 10 — a list of the most critical risks for web applications.

Another commenter, Nazariy Muska, pointed out that .env files, where developers often store passwords, tokens, and API keys, could expose this data to third parties if accidentally uploaded to an open repository.

Previously, dev.ua wrote about a study that tested the security of thousands of applications created using vibecoding, which found that about 40% of the studied applications disclosed confidential data. In particular, medical and financial information, as well as customer contacts and the history of their conversations with chatbots.

“The speed you can get compared to programming yourself is just crazy.” 3 vibe coding tips from top software engineers
«The speed you can get compared to programming yourself is just crazy.» 3 vibe coding tips from top software engineers
On the topic
«The speed you can get compared to programming yourself is just crazy.» 3 vibe coding tips from top software engineers
"These specialists are like superhero janitors in the programming world." A new profession is emerging in IT - vibe core cleaner: who is it and how many of them are there?
«These specialists are like superhero janitors in the programming world.» A new profession is emerging in IT — vibe core cleaner: who is it and how many of them are there
On the topic
«These specialists are like superhero janitors in the programming world.» A new profession is emerging in IT — vibe core cleaner: who is it and how many of them are there
Read the country's main IT news in our Telegram
Read the country’s main IT news in our Telegram
On the topic
Read the country’s main IT news in our Telegram
Also Read
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Нейронні мережі для генерації зображень бачать світ по-своєму, їхню логіку зрозуміти часом зовсім неможливо. Але таки хочеться. На честь Дня Незалежності України редакція dev.ua вирішила провести невеликий експеримент. Ми задали чотирьом різним нейронним мережам п’ять однакових запитів: «прапор України», «День Незалежності України», «український Крим», «перемога України» та «українці». Отриманими результатами ми ділимося з вами нижче.
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok з’явилася нова функція «Розумний фон». З її допомогою як фон для тіктоків можна підставляти згенеровані нейромережею зображення. Редакція dev.ua протестувала цю технологію і ділиться своїми враженнями.
1 comment
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.