A popular opinion says to not use the pickle class on a data given by user because on deserialization it may lead to the object injection attack and malicious code execution.
Subscribe:
But what about other formats? Are they also dangerous?
My name is Kacper Szurek and in today’s episode of “from 0 to pentesting hero“ I’m going to talk about yaml files.
Yaml format is not as simple as it might seem.
In the standard parser used in Python, we can also use the apply tag, which allows you to call any function from any module, and pass appropriate parameters to them.
So it is equivalent to the ability to execute arbitrary code on the server that we attack.
In our case, we will use the function to list the contents of the current directory.
Twitter:
Website:
Github:
#from0topentestinghero #bugbounty #python
3 views
6
2
3 years ago 00:02:46 3
YAML: code execution using !!python/object
5 years ago 00:16:23 24
Blueprint - Laravel Code Generation tool
4 years ago 00:11:55 24
Шесть полезных приемов при работе с Yaml файлом, о которых вы не знали
3 years ago 00:14:56 1
SpringBoot to Kubernetes Using Deployment YAML
1 year ago 00:19:34 1
Установил Visual Studio Code на планшет. Программирую с iPad.
3 years ago 00:07:10 1
05. Ansible for absolute beginners with practice tests - YAML Basics
2 years ago 00:20:51 14
Хранилище файлов. Java + WebDav
10 months ago 01:58:20 1
Разрабатываем Admin UI на React Admin в VS Code вместе с Amplicode
2 years ago 00:07:42 1
#8:GitLab CI Build Docker Image and Push to Docker Hub | Push Docker Image to Docker Hub GitLab CI
1 year ago 00:51:46 1
08-Docker-COMPOSE. Простой запуск контейнеров.
1 year ago 01:39:16 1
Как стать специалистом DevOps / DevNet и зарабатывать от $3000
3 years ago 00:20:02 1
Setup Local Kubernetes/Minikube and Deploy SpringBoot Application - Step by Step Tutorial
1 year ago 01:45:52 1
Как создавать, использовать и хранить пароли DevOps / DevNet
3 years ago 00:06:28 1
GITLAB CI CD сокращаем код. Gitlab ci include, extends, reference, remote, local
9 months ago 00:09:27 1
GitLab: DevSecOps: Part 5/12: Protect your Apps with Static Application Security Testing (SAST)
1 year ago 00:22:19 1
Dockerizing a React App for Development and Production
1 year ago 01:41:21 1
Python с нуля до DevOps на практике за 1,5 часа
3 years ago 00:13:05 2
6 - Создание объекта Pod. Запуск контейнеров в Kubernetes
4 years ago 01:00:48 1
CI/CD with CircleCI. Igor Maslakov. Frontend talks.
1 year ago 01:04:51 1
Курсы Git за час: руководство для начинающих DevOps / DevNet инженеров
1 year ago 01:13:28 14
Как использовать Ansible для автоматизации установки и настройки веб-сервера Apache под Linux
5 years ago 00:56:53 1
Вы ещё пишете код руками? Тогда мы идём к вам! Сергей Садовников ➠ CoreHard Autumn 2019
7 months ago 00:08:00 1
Секретная фича Docker Compose | Создаём несколько окружений для Spring Boot | Amplicode
2 years ago 00:33:12 3
Face Recognition App In Flutter Using TensorflowLite & Google ML KIT