MSSQL trusted links
Last updated
Last updated
Another SQL abuse we could try on the lab, is the usage of mssql trusted links.
Note that trusted link is also a forest to forest technique
To abuse the links let’s connect with elena.lopez and use enum_links
This play the following queries :
As we can see a linked server exist with the name Salisbury and a mapping exist with the user Elena.Lopez and sa on Salisbury.
If we use the link we can get a command injection on Salisbury:
This play the following MSSQL commands :
We got a command injection on Salisbury.Maryland.local as maryland\sql_svc\