Solutions/By stack
AppSec for 1C code
1C code is checked in the same platform and lands in the same vulnerability list as the rest of the stack.
Формула = Запрос.ПараметрыЗапроса.Получить("f"); Результат = Вычислить(Формула);
Eval (Вычислить) over user data
011C
How to load code
- Export to files
- From Configurator or an EDT project, as an archive or from GitLab.
- Configurations and extensions
- Recognized automatically, even if one archive contains several.
- .cf and .dt files
- Not parsed: the platform will explain how to export the configuration to files.
- Secrets in 1C
- Passwords in HTTPСоединение, FTPСоединение, WSОпределения and connection strings.
02Rules
What SAST finds in 1C code
- Execute (Выполнить) and Eval (Вычислить) over user data
- External data processor or extension without safe mode
- OS command from user data
- COM object class from user data
- User data in query text
- Privileged mode without a permission check
- HTTP service without an access check
- Password in a connection string