Skip to main content

Posts

Showing posts from December, 2023

OS Command Injection -Portswigger (LAB-1) | INFOCODX

Hey there, how are you all? I hope everything is going smoothly and everyone is doing fine.  Today, we're diving into the exciting world of OS Command Injection labs from portswigger . Get ready for some hands-on action!    So, the first thing we need to know is what OS command injection actually means. A command injection allows attackers to run any commands they want by exploiting data handling vulnerabilities. This can lead to various attacks like injecting JavaScript or HTML code. OS Command Injection is a specific attack that enables the execution of commands on the target operating system or server. Alright, let's begin, shall we? LAB 1 : OS command injection This lab contains an  OS command injection  vulnerability in the product stock checker. The application executes a shell command containing user-supplied product and store IDs, and returns the raw output from the command in its response. To solve the lab, execute the  whoami  command to dete...