26 Temmuz 2010 Pazartesi

24 Temmuz 2010 Cumartesi

XPATH Injection


Similar to SQL Injection, XPath Injection attacks occur when a web site uses user-supplied information to construct an XPath query for XML data. By sending intentionally malformed information into the web site, an attacker can find out how the XML data is structured, or access data that he may not normally have access to. He may even be able to elevate his privileges on the web site if the XML data is being used for authentication (such as an XML based user file).

Querying XML is done with XPath, a type of simple descriptive statement that allows the XML query to locate a piece of information. Like SQL, you can specify certain attributes to find, and patterns to match. When using XML for a web site it is common to accept some form of input on the query string to identify the content to locate and display on the page. This input must be sanitized to verify that it doesn't mess up the XPath query and return the wrong data.

XPath is a standard language; its notation/syntax is always implementation independent, which means the attack may be automated. There are no different dialects as it takes place in requests to the SQL databeses.

Because there is no level access control it's possible to get the entire document. We won't encounter any limitations as we may know from SQL injection attacks.


We'll use this xml snippet for the examples.



Suppose we have a user authentication system on a web page that used a data file of this sort to login users. Once a username and password have been supplied the software might use XPath to look up the user:

Dim FindUserXPath as String
FindUserXPath = "//Employee[UserName/text()='" & Request("Username") & "' And
Password/text()='" & Request("Password") & "']"

String FindUserXPath;
FindUserXPath = "//Employee[UserName/text()='" + Request("Username") + "' And
Password/text()='" + Request("Password") + "']";

With a normal username and password this XPath would work, but an attacker may send a bad username and password and get an XML node selected without knowing the username or password, like this:

Username: blah' or 1=1 or 'a'='a
Password: blah

FindUserXPath becomes //Employee[UserName/text()='blah' or 1=1 or
'a'='a' And Password/text()='blah']

Logically this is equivalent to:
//Employee[(UserName/text()='blah' or 1=1) or
('a'='a' And Password/text()='blah')]

In this case, only the first part of the XPath needs to be true. The password part becomes irrelevant, and the UserName part will match ALL employees because of the "1=1" part.

Just like SQL injection, in order to protect yourself you must escape single quotes (or double quotes) if your application uses them.

Dim FindUserXPath as String
FindUserXPath = "//Employee[UserName/text()='" & Request("Username").Replace("'", "'") & "' And
Password/text()='" & Request("Password").Replace("'", "'") & "']"

String FindUserXPath;
FindUserXPath = "//Employee[UserName/text()='" + Request("Username").Replace("'", "'") + "' And
Password/text()='" + Request("Password").Replace("'", "'") + "']";

Another better mitigation option is to use a precompiled XPath[1]. Precompiled XPaths are already preset before the program executes, rather than created on the fly after the user's input has been added to the string. This is a better route because you don't have to worry about missing a character that should have been escaped.

13 Temmuz 2010 Salı

lemon law

Lemon laws are American state laws that provide a remedy for purchasers of cars in order to compensate for cars that repeatedly fail to meet standards of quality and performance. These cars are called lemons. The federal lemon law (the Magnuson-Moss Warranty Act) protects citizens of all states. State lemon laws vary by state and may not necessarily cover used or leased cars. The rights afforded to consumers by lemon laws may exceed the warranties expressed in purchase contracts. Lemon law is the common nickname for these laws, but each state has different names for the laws and acts.

In California, lemon laws cover anything mechanical, as do the federal lemon laws. The federal lemon law also provides that the warranter may be obligated to pay the prevailing party's attorney fees in a successful lemon law suit, as do most state lemon laws.


AdWords is Google's flagship advertising product and main source of revenue. Google's total advertising revenues were USD$21 billion in 2008[2]. AdWords offers pay-per-click (PPC) advertising, and site-targeted advertising for both text and banner ads. The AdWords program includes local, national, and international distribution. Google's text advertisements are short, consisting of one title line and two content text lines. Image ads can be one of several different Interactive Advertising Bureau (IAB) standard sizes.

Sales and Support for Google's AdWords division is based in Mountain View, California, with major secondary offices in Ann Arbor, Michigan[3], the company's third-largest US facility behind its Mountain View, California, headquarters and New York City office.[4] Engineering for AdWords is based in Mountain View, California.


Google Adsense, her aşamadaki websitesi yayıncılarının site içeriğiyle ilgili Google reklamlarını websitelerinde göstererek para kazanmalarını sağlayan bir sistemdir. Google reklamları, ziyaretçilerin sitenizde aradıkları konulara ve ilgi alanlarına uygunluk sağlar, websitenizden para kazanmanızı da sağlar. Gösterim sayısının önemsiz olduğu bu sistemde önemli olan reklama tıklanma miktarıdır. Reklam verenler tıklama başında öder, sitenize te tıklama başına Google'den para ödenir. Bu reklam modeli CPC (cost per click) ya da Türkçesi Tıklama Bazında Maaliyet reklam modeli deniyor.

Reklam tıklama ücretleri ise çok adil yapılmaktadır. Örneğin siteniz "çöplük" denilen sitelerden ise tıklama başına 0,01 $ bile alamazken kaliteli bir sağlık sitesi ve az bulunan içeriği varsa tıklama başına 1 $, hatta dil olarak ingilizce ise de bu rakam 10$ a bile çıkmakta.

Google, hilelere karşı bir güvenlik sistemi geliştirmiştir. Eğer kişi kendi sitesindeki reklamlara tıklarsa, tıklamaya teşvik ederse, pop-up lar ile tıklatmayı arttırırsa ve bunun gibi reklamveren e zararı olan davranışlar sergilendiği durumlarda google hemen devreye girer ve reklam yayınlayan kullanıcı engellenir.

Buna ek olarak, Google AdSense'e kayıtlı olan web sitesi yayıncıları, ziyaretçilerine Google web ve site araması sunabilirler. Böylece yayıncılar, arama sonuçları sayfalarında gösterilen Google reklamları üzerinden para kazanırlar.

Google Adsense, sitenizin sahip olabileceği binlerce sayfaya ve içeriğinizin ne kadar dar veya geniş kaplamlı olduğuna bakmaksızın, içeriği anlamak ve uygun reklamları yerleştirmeye çalışır. İçerik değiştikçe Google reklamları da değişir. Ve reklamlarımız ülkeye göre de hedeflendiğinden, küresel şirketler ek bir çaba sarf etmeden yerel reklamlar yayınlayabilir.

anti spam lotus notes

top receiving annoying spam. Messages offering credit cards, pornography, viagra, low mortgage rates, along with thousands more that you hate to receive.

Subscription Based. We list the known "spam" and, by using our software and the associated spam identification service (SpamNet), you take advantage of that list to automatically delete known spam as soon as it hits your Inbox!

Don't Bother typing in every name of every spammer's domain, or writing them nasty letters. Our service tracks literally millions of spam messages. If it finds one that matches a message that you have received, it puts it into a "Spam" folder.
"How do i like it???? Oh my god it's a god send! My mailbox has been in use since '97 long before the days of the really nasty spammers and well before anyone knew it was best to keep your email address to yourself.

As a result my email has been around the block and then some, seems like spammer has it. I left for my honeymoon two weeks ago, in one weeks time I had nearly a 1000 emails 95% of which were spam of course. I get so tired of weeding through them to find my real mail.

Your product is working flawlessly the idea is brilliant and I just can't say enough about it. You've totally changed my mornings!!! Now i just run SpanSentinel and get to reading my actual emails instead of taking 5 to 10 mins every morning to sift through the spam, spelled C-R-A-P.

So I will be recommending this install to everyone at my company and we may even just get the server version. Keep up the outstanding work!!!

8 Temmuz 2010 Perşembe

Shellden SQL Baglanıp Siteleri Hackleme admin password sıfırlama

bu videoda shellden SQL ile db baglanmayı ve siteleri hacklemeyi admin password sıfırlamayı wordpress sitelere admin panelden shell sokmayı gösterdim iyi seyirler.
Gönderen ege zaman: 18:05 1 yorum Bu kayda verilen bağlantılar