Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


DNN-DotNetNuke:Shell Upload (Root) filter_list
Author
Message
DNN-DotNetNuke:Shell Upload (Root) #1
So, This tutorial will be talking about what is DNN(DotNetNuke) , And how it is used in web attacks.

What is DNN?

DotNetNuke is an open source platform for building websites based on Microsoft .NET technology.
DotNetNuke is mainly provide Content Management System(CMS) for the personal websites.
[Image: 2m4sxtu.jpg]

How it's done?

Let's Start:
As most ways of web attack such as SQLi/RFI/LFI.. and more. We use Google Dorks to find a possibly vulnerable webpage to this attack.
We simply search in Google for : " inurl:/tabid/36/language/en-US/Default.aspx " .
Then just open up any website to your liking , and follow the next step.

Now after you've chosen a website,we need to check if the site is at all vulnerable to such attack. and we do that by replacing the : " /tabid/36/language/en-US/Default.aspx " with " /Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx " .

If the page is N-O-T vulnerable then you shall get a similar output :
[Image: 330s2mc.png]
-That means you most likely need to look for another site , or just look for other vulnerabilities such as XSS,RFI,SQL and more. Wink

But, If it is, then you shall get the next output:
[Image: 153pg6t.png]

Once you do get the whole output, Just pick the "File" Option, Which then you should see the "Root" below it , Under the "File Location".

And then Inside the URL ,Type in the Javascript Code: " javascript :__doPostBack('ctlURL$cmdUpload','') "
*Delete the space after javascript* otherwise you will end up in Google search,and you wouldn't want that.
I won't be going any deep into JS nor the code, But it executes and gives you the ability of uploading a file from your PC\LT.

$ Uploading the Shell $

The idea here is to successfully upload the shell, but the problem is with most websites is that they do not allow to upload a .php nor .asp files. Yet you may still try your luck .
You can try these:

Code:
*. swf, *.jpg, *.jpeg, *.jpe, *.gif, *.bmp, *.png,
*.doc, *.xls, *.ppt, *.pdf, *.txt, *.xml, *.xsl, *.css, *.zip, *.3gp,
*.asf, *.asx, *.avi, *.flv, *.m4v, *.mov, *.mp4, *.mpe, *.mpeg, *.mpg,
*.ram, *.rm, *.rmvb, *.wm, *.wmv, *.vob

A good way of using this would be : " yourshell.asp;.jpg "

Shells for use:
Here's a well-known link to download a(n) asp shell(s) : http://www.r57.gen.tr

Good choices of shells would be either c99,c100,r57. really up to you.

How to Upload the Shell?

So, After we've executed the javascript code inside the URL , we've returned to the same looking page, yet this time we have the "Choose From" button, like so :
[Image: 29vlyt1.png]

We choose the Shell with the .asp;.jpg or whatever you've made it to be. and then click on the " Upload Selected File " , Then you should see that the shell is uploaded,under the " File Name ".

Now we need to navigate through the website , locate the shell, and open it.
We do that by adding the " /portals/0/ " after the end of the website's url
Like so: http://www.example.com/portals/0/unohex.asp;.jpg.jpg

And you're pretty much done, Then we're redirected to the page where you have full control on the website, all files,data, and in it is up to you do decide what you want to do with it.
In case of defacement? Just locate the index.php or.. home.php like so , and replace it with your own. etc. etc.


<3 * Hope you liked it * <3



Unohex :epic:
~*<3 Un0hex :epic:
-SecurityPenTesting

Reply

RE: DNN-DotNetNuke:Shell Upload (Root) #2
I do it...i upload the file-shell J0k3R-GR.asp;.jpg in root but i cant find my shell....why??
look here http://imm.damt.gov.gr/Providers/HtmlEdi...llery.aspx

seems that the shell have uploaded!!

Reply

RE: DNN-DotNetNuke:Shell Upload (Root) #3
(12-26-2013, 12:45 PM)J0k3R-GR Wrote: http://imm.damt.gov.gr/Providers/HtmlEdi...llery.aspx

I wouldn't play with government's website.


Reply

RE: DNN-DotNetNuke:Shell Upload (Root) #4
@J0k3R-GR
Have you tried other extentions to the sell\file upload?

& That's a good point @Slarek ; ) heh...


-Go for something simple, o not mess up with sites as gov, with exploring new web attacks. : P It's not that smart.

@J0k3R-GR
https://www.youtube.com/watch?v=Db93FO5oQwA
Maybe this shall help.
~*<3 Un0hex :epic:
-SecurityPenTesting

Reply

RE: DNN-DotNetNuke:Shell Upload (Root) #5
(12-25-2013, 09:32 PM)unohex Wrote:
So, This tutorial will be talking about what is DNN(DotNetNuke) , And how it is used in web attacks.

What is DNN?

DotNetNuke is an open source platform for building websites based on Microsoft .NET technology.
DotNetNuke is mainly provide Content Management System(CMS) for the personal websites.
[Image: 2m4sxtu.jpg]

How it's done?

Let's Start:
As most ways of web attack such as SQLi/RFI/LFI.. and more. We use Google Dorks to find a possibly vulnerable webpage to this attack.
We simply search in Google for : " inurl:/tabid/36/language/en-US/Default.aspx " .
Then just open up any website to your liking , and follow the next step.

Now after you've chosen a website,we need to check if the site is at all vulnerable to such attack. and we do that by replacing the : " /tabid/36/language/en-US/Default.aspx " with " /Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx " .

If the page is N-O-T vulnerable then you shall get a similar output :
[Image: 330s2mc.png]
-That means you most likely need to look for another site , or just look for other vulnerabilities such as XSS,RFI,SQL and more. Wink

But, If it is, then you shall get the next output:
[Image: 153pg6t.png]

Once you do get the whole output, Just pick the "File" Option, Which then you should see the "Root" below it , Under the "File Location".

And then Inside the URL ,Type in the Javascript Code: " javascript :__doPostBack('ctlURL$cmdUpload','') "
*Delete the space after javascript* otherwise you will end up in Google search,and you wouldn't want that.
I won't be going any deep into JS nor the code, But it executes and gives you the ability of uploading a file from your PC\LT.

$ Uploading the Shell $

The idea here is to successfully upload the shell, but the problem is with most websites is that they do not allow to upload a .php nor .asp files. Yet you may still try your luck .
You can try these:

Code:
*. swf, *.jpg, *.jpeg, *.jpe, *.gif, *.bmp, *.png,
*.doc, *.xls, *.ppt, *.pdf, *.txt, *.xml, *.xsl, *.css, *.zip, *.3gp,
*.asf, *.asx, *.avi, *.flv, *.m4v, *.mov, *.mp4, *.mpe, *.mpeg, *.mpg,
*.ram, *.rm, *.rmvb, *.wm, *.wmv, *.vob

A good way of using this would be : " yourshell.asp;.jpg "

Shells for use:
Here's a well-known link to download a(n) asp shell(s) : http://www.r57.gen.tr

Good choices of shells would be either c99,c100,r57. really up to you.

How to Upload the Shell?

So, After we've executed the javascript code inside the URL , we've returned to the same looking page, yet this time we have the "Choose From" button, like so :
[Image: 29vlyt1.png]

We choose the Shell with the .asp;.jpg or whatever you've made it to be. and then click on the " Upload Selected File " , Then you should see that the shell is uploaded,under the " File Name ".

Now we need to navigate through the website , locate the shell, and open it.
We do that by adding the " /portals/0/ " after the end of the website's url
Like so: http://www.example.com/portals/0/unohex.asp;.jpg.jpg

And you're pretty much done, Then we're redirected to the page where you have full control on the website, all files,data, and in it is up to you do decide what you want to do with it.
In case of defacement? Just locate the index.php or.. home.php like so , and replace it with your own. etc. etc.


<3 * Hope you liked it * <3



Unohex :epic:
Doesn't work for me. when i open http;//target.com/portals/0/shell.asp;.jpg the browser just open a picture. not a shell.. can u tell me why??

Reply

RE: DNN-DotNetNuke:Shell Upload (Root) #6
when i type JS code into the URL and when i returned into FILE there wasn't "choose file"
can you help me ?
how should i type it ?
(sorry for my bad english and thanks in advance)

Reply







Users browsing this thread: 1 Guest(s)