Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 58 guests and 1 member online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow How to test if website is writable
EH-Net
May 24, 2013, 04:27:05 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to test if website is writable  (Read 12746 times)
0 Members and 1 Guest are viewing this topic.
dreams3577
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: December 05, 2011, 02:36:24 AM »

Morning All

I work for a company who's website has been analysed by a outside company, the outside company did it off there own back and have said that my companies website is 'writable'.
I have checked the permissions and setup and can see nothing wrong, However I would like to check.

The site sits on a windows 2003 server, IIS 6, and is ASP coded.

How would I check to see if it is 'writable' from the web?... IE: Does anyone know of a script or a process to run against the site?

Many Thanks
Steve
Logged
lorddicranius
Sr. Member
****
Offline Offline

Posts: 447



View Profile WWW
« Reply #1 on: December 05, 2011, 02:54:19 AM »

The company ran an assessment on your company's website, yet won't tell you the directory that's vulnerable? Huh  I'd do my best to get that from them as this is pretty standard when you have an assessment done.  The whole purpose is to help you secure the website, not just say "yep, it's vulnerable" and turn their backs.  I understand you said that they did it off their own backs, but that's pretty low to not tell you exactly what's vulnerable if they're not going to help you fix it as well.

Check the directories that are publicly facing via the website (could be a large task if a large website :-S).  Any directories that are used to store user uploads, forms that allow users to upload files (e.g. avatars) - could be that the form is accepting all files, not just the filetype the form was developed for.
Logged

GSEC, eCPPT, Sec+
dreams3577
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: December 05, 2011, 03:23:20 AM »

Hi

Thank you for the quick reply... The outside company will tell us, however a few thousand pounds will have to change hands before they do!!.. Hence the asking on here first..

I have checked the dirs, and there are no user upload dirs.

Thanks
Steve
Logged
Ignatius
Jr. Member
**
Offline Offline

Posts: 91


View Profile
« Reply #3 on: December 05, 2011, 12:26:32 PM »

.... website has been analysed by a outside company, the outside company did it off there own back ....

So they didn't get your company's permission first?  Your company didn't engage them?

Isn't that one of the first thing that is drilled into Pen Testers ... get full written consent in advance, along with exactly what you are, and are not, permitted to do etc.?
Logged
rance
Full Member
***
Offline Offline

Posts: 212


<censored>


View Profile
« Reply #4 on: December 06, 2011, 10:54:32 AM »

"Writable" is a pretty generic term and can be interpreted many different ways.  They could be referring to directories, or "writing" to your SQL DB if you have one, it may also be a file injection vuln.

What bothers me most is your comment that they did it "off their own back"... They way you originally wrote that, it seems to me that this "company" did a pen test on your site without your permission, knowledge or consent.  True?

If true, they found an issue, and are now saying "we found something on your site, but we won't tell you until you pay us something."  True again?

If true again, this would be known as extortion (maybe something lesser, but extortion is such a sexy word).  At this point, you might want to get some legal people involved.  If whoever this is had wholesome pure intentions, they'd tell you want the problem was and not demand money.  If they pen tested your site without consent, you should have full legal precedence to go after them.  You might want to start collecting logs ASAFP in case you wind up in the middle of some legal action.  (of course, this doesn't solve your issue of finding out what the flaw is.  you may get that information from legal proceedings, or you may have to hire a legit pen tester to find it for you.  Or, you could just shell out the dough to whoever this is, but they may also be scamming you.  You pay them, then you never hear from them again, or they send you on a goose chase, and they get a nice pay day.)

If this is a company you hired to perform a pen test, a full report, including technical details on any flaws should be part of the package.  If you have to pay extra for data... you need someone that writes better engagement contracts.  Grin
Logged

Poking at security since 1986.  +++ATH
xXxKrisxXx
Hero Member
*****
Offline Offline

Posts: 512



View Profile
« Reply #5 on: December 06, 2011, 03:00:31 PM »

Hi dreams3577,

Welcome to EH-NET! Assuming you do have permission, you could utilize the auxiliary module: auxiliary/scanner/http/writable in Metasploit. Here's a guide from within Metasploit Unleashed:
http://www.offensive-security.com/metasploit-unleashed/HTTP_Writable

I hope this is what your looking for!
Logged

eCPPT, GCIH, OSCP, OSWP
kowloonboy
Newbie
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #6 on: December 06, 2011, 03:16:54 PM »

So another word, they hack your company website without your consent. And blackmail to your company to hand over a big lump sum of money, otherwise they will refuse to disclose to you the finding of the test (hack).

I think your company should call the Police.
Logged

"Life itself is your teacher, and you are in a state of constant learning." -- Bruce Lee
#! CrunchBang 10 - 20111125 iso #! CrunchBang Linux
BreakThesec
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #7 on: December 15, 2011, 11:17:03 PM »

I have many questions. You should ask yourself whenever you got these type of message(to protect from spam mails):
----
How they contact you? mail?
Did you check the mail address?
is it legitimate mail?
Did you search about the company in google search with
"company_name review"
or
"Company_Name fraud" or "Company_Name cheat"
...

Attackers also send these type of message and try to get confidential data(Social Engineering).

If you really want to find vulnerabilities, hire any legitimate company.
Logged
HDCautism
Newbie
*
Offline Offline

Posts: 20



View Profile
« Reply #8 on: December 16, 2011, 08:50:44 AM »

@dreams3577 I realize that your original question is how to tell whether your website is"writable." I agree with the others that the entire situation is phishy (pun fully intended).   Certain versions of IIS are vulnerable to having pages dumped into the root directory. I don't remember all the details, but if your IIS is configured to use index.htm (or index.html or default.htm or default.asp etc) as one of its preferred default pages, BUT any of those pages does not exist on the site, it is vulnerable to having someone dump their "you have been hacked" page into your IIS site. Which means someone goes to www.yoursite.com and sees "you have been hacekd" instead of "welcome to yoursite."

The solution to this is, best I understand, to clean up the default page settings from within IIS. In server 2003, open IIS manager, right click your website name, choose Properties and go to the documents tab.

HTH.
Logged
l33t5h@rk
Jr. Member
**
Offline Offline

Posts: 79



View Profile WWW
« Reply #9 on: December 19, 2011, 10:30:42 AM »

You need to contact your manager and the management team and have them speak to an attorney. I would imagine that will be a quick way to get a response from them. What they are doing now is more than unethical, it is illegal.
Logged
vp75
Jr. Member
**
Offline Offline

Posts: 78


View Profile
« Reply #10 on: December 19, 2011, 12:52:08 PM »

I believe and remember, there are different level of service and based on that they provide report, it should be provided in terms & conditions when undertaken the work by outsourced company. But it doesn't look fair not disclosing the information about vulnerability.
Mgmt should take action......
Logged

eCPPT
chrisg
Guest
« Reply #11 on: December 20, 2011, 09:52:14 PM »

check http allowed options and see if you can HTTP PUT or use webdav to write to a directory.
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #12 on: December 26, 2011, 03:41:20 PM »

Word of advice: Try running a Nessus and / or NeXpose scan against your website, you will most likely get exactly the same results as the company that reported the "bug".

Often, it is just because IIS supports the PUT method or perhaps WebDAV, but that doesn't necessarily mean that it's actually exploitable, or something an attacker can use to his advantage. After all, the webserver may support the method, but may not allow it anywhere.

I would ask the target company to place a file on the server as proof of that it is "writeable". If they can't, it's not writeable as they say.  Smiley
Logged

I'm an InterN0T'er
nytfox
Newbie
*
Offline Offline

Posts: 20



View Profile
« Reply #13 on: January 31, 2012, 02:36:48 AM »

Im not sure what are you asking by writable . but if you checked permissions on files and dirs and if they are not viewer writable then I guess your fine . if they meant by hackable . use some vuln scanning tools and see if they gives your exploitable vulns . I prefer nikto ,  Acunetix WVS (spider trows big unwanted traffic but does a good job)
Logged

Unlike others I love NULLS
http://treasuresec.com
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.094 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.