# Az - Table Storage Post Exploitation {% hint style="success" %} Learn & practice AWS Hacking:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\ Learn & practice GCP Hacking: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
Support HackTricks * Check the [**subscription plans**](https://github.com/sponsors/carlospolop)! * **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.** * **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
{% endhint %} ## Table Storage Privesc For more information about table storage check: {% content-ref url="../az-services/az-table-storage.md" %} [az-table-storage.md](../az-services/az-table-storage.md) {% endcontent-ref %} ### Microsoft.Storage/storageAccounts/tableServices/tables/entities/read A principal with this permission will be able to **list** the tables inside a table storage and **read the info** which might contain **sensitive information**. ```bash # List tables az storage table list --auth-mode login --account-name # Read table (top 10) az storage entity query \ --account-name \ --table-name \ --auth-mode login \ --top 10 ``` ### Microsoft.Storage/storageAccounts/tableServices/tables/entities/write | Microsoft.Storage/storageAccounts/tableServices/tables/entities/add/action | Microsoft.Storage/storageAccounts/tableServices/tables/entities/update/action A principal with this permission will be able to **write and overwrite entries in tables** which might allow him to cause some damage or even escalate privileges (e.g. overwrite some trusted data that could abuse some injection vulnerability in the app using it). * The permission `Microsoft.Storage/storageAccounts/tableServices/tables/entities/write` allows all the actions. * The permission `Microsoft.Storage/storageAccounts/tableServices/tables/entities/add/action` allows to **add** entries * The permission `Microsoft.Storage/storageAccounts/tableServices/tables/entities/update/action` allows to **update** existing entries ```bash # Add az storage entity insert \ --account-name \ --table-name \ --auth-mode login \ --entity PartitionKey=HR RowKey=12345 Name="John Doe" Age=30 Title="Manager" # Replace az storage entity replace \ --account-name \ --table-name \ --auth-mode login \ --entity PartitionKey=HR RowKey=12345 Name="John Doe" Age=30 Title="Manager" # Update az storage entity merge \ --account-name \ --table-name \ --auth-mode login \ --entity PartitionKey=HR RowKey=12345 Name="John Doe" Age=30 Title="Manager" ``` ### \*/delete This would allow to delete file inside the shared filesystem which might **interrupt some services** or make the client **lose valuable information**. {% hint style="success" %} Learn & practice AWS Hacking:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\ Learn & practice GCP Hacking: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
Support HackTricks * Check the [**subscription plans**](https://github.com/sponsors/carlospolop)! * **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.** * **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
{% endhint %}