ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 333 - PT0-002 discussion

Report
Export

A penetration tester is reviewing the security of a web application running in an laaS compute instance. Which of the following payloads should the tester send to get the running process credentials?

A.
file=http://192.168. 1. 78?+document.cookie
Answers
A.
file=http://192.168. 1. 78?+document.cookie
B.
file =.. / .. / .. /proc/self/environ
Answers
B.
file =.. / .. / .. /proc/self/environ
C.
file='%20or%2054365=54365 ;--
Answers
C.
file='%20or%2054365=54365 ;--
D.
file=http://169.254.169.254/latest/meta-data/
Answers
D.
file=http://169.254.169.254/latest/meta-data/
Suggested answer: D

Explanation:

The payload D is used to access the metadata service of the laaS compute instance, which can provide information about the running process credentials, such as the instance ID, the service account, and the SSH keys. This is a common technique for exploiting cloud-based web applications that do not properly secure their metadata service. The other payloads are not effective for this purpose, as they either try to access the cookie data (A), the environment variables (B), or perform a SQL injection attack , which are not related to the running process credentials.

Reference:

* The Official CompTIA PenTest+ Study Guide (Exam PT0-002) eBook, Chapter 7, Lesson 7.2, Topic 7.2.3: Perform attacks on cloud technologies

* Set up service authentication - Azure Machine Learning, Section: Managed identity

* Set up authentication - Azure Machine Learning, Section: Managed identity

* Compute Engine IAM roles and permissions - Google Cloud, Section: Service accounts

asked 02/10/2024
PATRICK ADUSEI
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first