This lab contains an OS command injection vulnerability that can be exploited via its APIs. You can call these APIs via the LLM.

https://portswigger.net

Ask the LLM what APIs it has access to. The LLM responds that it can access APIs controlling the following functions:

  • Password Reset
  • Newsletter Subscription
  • Product Information

Consider the following points:

  • You will probably need remote code execution to delete Carlos’ morale.txt file. APIs that send emails sometimes use operating system commands that offer a pathway to RCE.
  • Since you don’t have an account, testing the password reset will be challenging. The Newsletter Subscription API is a better initial testing target.

Ask the LLM what arguments the Newsletter Subscription API takes.