DotNetNuke (DNN)
Discovery
# Identify DNN from HTTP response
proxychains curl http://TARGET | grep -i "DNN\|DotNetNuke"
# Login page
http://TARGET/Login?returnurl=%2fadmin
# Default admin login
http://TARGET/Login?returnurl=%2fadminDNN is a .NET-based CMS (the "WordPress of .NET")
Default install page says "Every journey begins with the first step"
User registration may be available but usually requires admin approval
Enumeration
# Check version
curl -s http://TARGET | grep -i "dnn\|dotnetnuke"
# Common paths
/Login
/admin
/Host
/Portals/0/
/DesktopModules/Exploitation (Authenticated as Admin)
RCE via SQL Console
DNN has a built-in SQL console under the Settings page. Enable xp_cmdshell to execute OS commands:
Execute commands:
RCE via File Upload (ASP/ASPX Web Shell)
Browse to
Settings → Security → More → More Security SettingsUnder Allowable File Extensions, add
aspandaspxClick Save
Navigate to
http://TARGET/admin/file-managementUpload an ASP web shell
Right-click uploaded file → Get URL
Access the URL to execute commands
To transfer tools (e.g., PrintSpoofer, nc.exe), add .exe to allowable extensions, then upload via File Management. Uploaded files land in c:\DotNetNuke\Portals\0\.
Reverse Shell via PrintSpoofer
If the DNN app pool runs with SeImpersonatePrivilege:
Post-Exploitation
Dump SAM Database
Add .SAVE to allowable file extensions, download via File Management, then extract:
Download Files via DNN
Add the target file extension (e.g., .SAVE, .exe) to Allowable File Extensions, then browse to File Management and download.
Default Credentials
host
dnnhost
admin
dnnadmin
Key Paths
c:\DotNetNuke\Portals\0\
Default upload directory
web.config
Database credentials, connection strings
/DesktopModules/
Installed modules
/Portals/
Site content and uploads
Last updated