Security

JSReg Bypasses – Old

Sorry for the delay as I am/was way too occupied. Some of my close friends had asked me to write about bypassing the JSReg in Hackvertor.com primarily based on a problem which was on sla.ckers.org forum by Gareth Heyes.

Nonetheless, Gareth Heyes has previously written wonderful factors about it that I can just refer you to the pages (rather of composing it once more):

http://www.thespanner.co.uk/2010/ten/31/jsreg-bypasses/
http://rgaucher.data/planet/The_Spanner/2010/11/07/Soroush_Dalili_breaks_JSReg_again

Gareth is creating these features alone, so if you have any great concept please allow him know. He is a wonderful and clever man so, do not skip your chance to have a great buddy!

Once more, many thanks Gareth.

Soroush Dalili - Computer Security Is My Curiosity!

Be the first to comment - What do you think?
Posted by Product Reviewer - February 22, 2012 at 4:45 pm

Categories: Security   Tags: Bypasses, JSReg

Adobe Releases Security Advisory for Adobe Flash Player

Adobe has produced a security advisory to inform customers of vulnerabilities influencing the subsequent software:

  • Adobe Flash Player 11.1.102.55 and earlier variations for Windows, Macintosh, Linux, and Solaris working programs
  • Adobe Flash Participant 11.one.112.61 and earlier variations for Android 4.x
  • Adobe Flash Player eleven.one.111.five and before variations for Android three.x and 2.x

Exploitation of these vulnerabilities might let an attacker to result in a denial-of-service problem, consider control of the afflicted technique, or complete a cross-internet site scripting attack.

US-CERT encourages end users and administrators to evaluation the Adobe Security Bulletin APSB12-03 and utilize any necessary updates to help mitigate the danger.

US-CERT Existing Action

Be the first to comment - What do you think?
Posted by Product Reviewer - February 21, 2012 at 4:32 am

Categories: Security   Tags: Adobe, Advisory, Flash, Player, Releases, Security

Facebook Redirect Hyperlink – New Bypass Technique – “:/” after the domain name

Facebook is making use of “facebook.com/l.php?u=THE_Exterior_URL” anytime you click on on an external link and as a outcome:
one- Your present page will not be sent via the “Referer” section of the HTTP header. So, it is useful for the privacy.
2- It is achievable to halt malicious or unwanted links by utilizing a solitary position (“l.php” web page).

Now, I want to show a flaw in this process in which by clicking on an exterior URL in Facebook, users can go straight to the spot URL without passing the “facebook.com/l.php” page:

Add a “:/” at the end of the domain title! Which is it!
PoC:
Put these links in a comment part on your Facebook webpage and click on on them too see the result (If you know how to operate with regional proxy tools this kind of as burp suite, you can immediately post a website link on your wall [not just in comment segment] with “:/” in the URL to exploit this flaw):
&nbsp&nbsp&nbsp&nbsp&nbsp- https://fp.auburn.edu:/oit/display_server_variables.asp
&nbsp&nbsp&nbsp&nbsp&nbsp- http://soroush.secproject.com:eighty:/

Now, do not simply click on the hyperlinks which have “:/” soon after the domain name with or with no port quantity! (18 Dec. 2010)

Note: This issue had been noted to Facebook at minimum twice much more than one thirty day period in the past with out having any response.

Soroush Dalili - Laptop or computer Security Is My Interest!

Be the first to comment - What do you think?
Posted by Product Reviewer - February 18, 2012 at 4:29 am

Categories: Security   Tags: after, Bypass, Domain, Facebook, Hyperlink, name, Redirect, Technique, “/”

Microsoft Security Advisory (2269637): Insecure Library Loading Could Allow Remote Code Execution – Edition: 14.0

Revision Notice: V14. (February fourteen, 2012): Additional the adhering to Microsoft Protection Bulletins to the Updates relating to Insecure Library Loading part: MS12-012, "Vulnerability in Colour Control Panel Could Permit Remote Code Execution" and MS12-014, "Vulnerability in Indeo Codec Could Let Remote Code Execution."
Summary: Microsoft is mindful that research has been posted detailing a remote strike vector for a course of vulnerabilities that impacts how apps load external libraries.
Most up-to-date Safety Advisories

Be the first to comment - What do you think?
Posted by Product Reviewer - February 16, 2012 at 4:17 pm

Categories: Security   Tags: 14.0, 2269637, Advisory, Allow, Code, Could, Edition, Execution, Insecure, Library, Loading, Microsoft, Remote, Security

Oracle Releases Crucial Patch Update for February 2012

Oracle launched its February Critical Patch Update (CPU) made up of 14 safety fixes for the following goods:

  • JDK and JRE seven Update two and before
  • JDK and JRE 5 Update 30 and before
  • JDK and JRE 5. Update 33 and before
  • SDK and JRE one.4.two_35 and earlier
  • JavaFX two..2 and previously

US-CERT encourages customers and administrators to review the Oracle Java SE Vital Patch Update Advisory for February 2012 and utilize any essential updates to aid mitigate the threat.

US-CERT Current Exercise

Be the first to comment - What do you think?
Posted by Product Reviewer - February 15, 2012 at 4:22 am

Categories: Security   Tags: 2012, Crucial, February, Oracle, Patch, Releases, Update

Unrestricted File Download} V1. – Windows Server

Downlaod the PDF file: http://soroush.secproject.com/downloadable/Unrestricted_File_Get}_V1..pdf

Unrestricted File Download} V1. – Windows Server

I do not want to talk about Insecure Direct Object References with no any safety as they are certainly exploitable As an alternative, I want to speak about bypassing the safeguarded kinds! The problem that I want to clarify here is how difficult it is to guard a technique that makes use of Insecure Direct Item References by employing black-checklist method.

Every time penetration testers see a site which accepts a path as an input, they consider about these queries:

one- Can I have accessibility to the top secret files?

two- Can I do directory traversal?

3- Can I modify an additional file?

4- Can I do race problem?

And so on.

The answer from programming position of look at is: “it is dependent!”:

one- If they have no safety in-location: “Yes. Yay!”

two- If they are utilizing black-listing technique: “Think about a bypass now! There should be a way and I just need to have to find it! Consider about encodings, decoding, effective characters, conduct of the technique against particular characters, and so on.”

three- If they are employing white-record strategy: “Is there something on the checklist that can be misused? Can I adhere some of them together to make yet another character or adjust the conduct of the technique?”

My stage is that there is frequently a way to bypass a black-list. Nevertheless, it is not the exact same for white-listing if you do it appropriately.

Let us Bypass a Blacklist Technique

Now, I want to use a scenario to demonstrate an case in point of employing black-record, and strategies of bypass.

Believe we have “www.vulnerable.com/download}.aspx” which accepts a file route as an input and reads it and loads it into the output. (To make it less complicated, “/upload” folder is on the root of the internet site)

For case in point: “/download}.aspx?file=/upload/document.doc”

Now, if you try the following inputs, you will obtain an “access denied” error from the webpage:

“/download}.aspx?file=web.config”

“/down load}.aspx?file=download}.aspx”

“/download}.aspx?file=/down load}.aspx”

But, if you attempt the adhering to inputs, you will get a “file not found” error or a blank-web page from the web page:

“/down load}.aspx?file=exam.doc”

“/down load}.aspx?file=/upload/../test.txt”

“/download}.aspx?file=/exam.f0ob4r”

In accordance to the response of the webpage, naturally, it is using a black-listing method.

These are the very first issues that I can think about (my pre-exam-circumstances):

- Use uppercase, lowercase, and Unicode in the extension. For ex: “/get}.aspx?file=/Web.CoNfiG” and so on.

1- As you may possibly know, there are some characters right after the filename that will be overlooked by Windows. So, I must consider something like “/download}.aspx?file=/net.config.” or “/get}.aspx?file=/net.config… ..”

2- Using brief filename format of the file: “/down load}.aspx?file=/net~1.con”

3- Using null character: “/get}.aspx?file=/web.config%00.txt”

four- Using another extension in the route: “/get}.aspx?file=/test.txt/../internet.config”

5- Employing diverse room characters in the route: “/down load}.aspx?file=/website.config%09”, “/down load}.aspx?file=/website.config%0a”, “/get}.aspx?file=/web.config%0b”, “/down load}.aspx?file=/web.config%0c”, “/download}.aspx?file=/web.config%0d”, “/get}.aspx?file=/web.config%20”, and so on (related to one).

six- Finding a character that is removed by the net software immediately before loading a file to put it in the extension and bypass the black-list protection.

seven- Attempt alternate data stream to study the files: “/get}.aspx?file=/web.config::$ Data”

8- Consider to use direct path and reveal route. Ex: “/get}.aspx?file=do:windowswin.ini”, “/down load}.aspx?file=?c:windowswin.ini”, or “/download}.aspx?file=127...1c$ WINDOWSwin.ini”

9- Try to do directory traversal. Ex: “/get}.aspx?file=../../../../../../../../../../../boot.ini”

10- Consider other file-method understandable vectors. Ex: “/down load}.aspx?file=web.config/.”, “/download}.aspx?file=web.config.”, and so on (related to one).

And blend of the over options to produce far more challenging exam cases!

What do you feel? Remember to allow me know if you know any other exciting exam scenario. This is the result:

Successful: Web.config was downloaded
1,2 Failed: Show the source code in error concept. Error: “Failed to map the path”
three,seven,8 Failed: Show the source code in error concept. Error: “is not a valid virtual path”
4 Failed: Access Denied
five Successful: Website.config was downloaded
six Failed: No character was located
nine Failed: Show the supply code in error communication. Error: “Cannot use a primary .. to exit over the best directory”
10 Successful: Website.config was downloaded. Some new vectors have been found: “?file=.”, “?file=/.”, “?file=/./.”

Every of the earlier mentioned vectors could lead to bypassing the protection. Now, I can notify you that the genuine vulnerable supply code of the page was:

10 string fileName = Request.Params["File"]twenty if (ForbidenExtentions.Consists of(fileName.Substring(fileName.LastIndexOf(“.”))))

thirty

40 HttpContext.Existing.Response.Redirect(“~/CustomError.aspx?msg=ForbidenFileDownload”)

fifty

sixty if((fileName != null) &amp&amp (fileName != “”))

70

80 string strPath = Server.MapPath(“/” + fileName)

90 if(Program.IO.File.Exists(strPath))

100 …

And, we can get the confidential files with distinct vectors (see amount , 5, and 10 on the table earlier mentioned). Now, an attacker can download the entire website and look for the credentials, hidden files and folders, and find any other vulnerability these as SQL Injection by obtaining the resource code.

Protected and Efficient Resolution

Now, what can we do to cease this strike? These are the common answers:

one- Do not use immediate object references when it is feasible:

For indirect references, use a thing random, difficult to guess, and meaningless this sort of as GUIDs. You need to have to apply far more capabilities and invest a lot more time on programming and debugging. However, your achievements are:

one.one- Increasing the Security by employing robust random tips this sort of as GUIDs

one.two- Simpler asset managing and have different entry controls

2- Power oneself to usually use white-lists:

It is very unusual that you have to only use a black-listing for an input! If an input is random and unpredictable, you may need to redesign that input. Publish down the input function(s) and do whatever you can to restrict it to a array of characters. Now, believe about this range and review the characters 1 by a single. Is there everything in the checklist which can lead to an issue? Do you want to enable any other characters apart from [a-zA-Z0-nine]? Why? Believe about it and comply with the best security procedures.

At times you require to use blacklist after passing the input from a white-list to have a lot more security. For illustration: an input can include a file route. Therefore, we must allow dot “.” character. Even so, we really should not permit any ambigu dot “..” as it can cause directory traversal.

If you are developing a system, look for the vulnerabilities which have been documented on the comparable methods in Web. You may find one thing that you had not had any knowledge about it ahead of! Do not feel that you know almost everything! Even a semi-colon or colon can compromise your method occasionally.

Speak about your program with the security people with authorities (not script kiddies). You can inquire your concerns in distinct security message boards to find a clue. Inquire them to break your defense to boost the security.

Notice one: a undesirable implementation is worse than not having any implementation! When you do not have any safety, at the very least you know you do not have something to safeguard oneself and the system is unsafe!!! Nonetheless, when you have an insecure/poor implementation, you feel the method is safe sufficient but it is not, and attackers will find this out – trust me!

Note 2: If you are putting various inputs next to each other, it is greater to pass them at minimum through a black-list defense following concatenation.

Now, without employing an indirect reference, two remedies for our susceptible case in point (“www.susceptible.com/down load}.aspx”) can be:

Answer 1 (Much more White-list – far more limited):

one- Substitute all the “/” with “” character in purchase to make the validation less complicated (for Windows OS). (Black-Checklist)

2- Exchange all the dot characters prior to the backslash character (“.”) with a solitary “” character in get to make the validation less complicated. (Black-Record)

three- Only acknowledge minimal characters as an input: RegEx: (([a-zA-Z0-nine][.]1)|[a-zA-Z0-9])*

four- File identify ought to start with: RegEx: ^[a-zA-Z0-9] (White-checklist)

5- File title ought to conclude with: RegEx: [a-zA-Z0-nine]$ (White-record)

Then a common ReGex will be (contain 3, 4, and five): ^([a-zA-Z0-9]one)(([a-zA-Z0-nine][.]1)|[a-zA-Z0-9])*([a-zA-Z0-9])$ (White-listing)

6- Uncover the file extension by making use of the very last dot “.” character of the file. This extension must be in the record of permitted extensions this sort of as “gif”, “jpg”, “doc”, “docx”, “pdf”, “rtf”, and so on. (White-Listing)

Limitation: It is not achievable to use Unicode or particular characters in the file or the directory name.

Answer 2 (Much more Black-Record – a lot less limited):

1- Trim the input to remove needless spaces (Black-Checklist)

two- Exchange all the “/” with “” character in get to make the validation less difficult (for Windows OS). (Black-Listing)

three- Replace all the “..” with “.” character in a loop until you can not uncover any “..” anymore. (Black-List)

four- Replace all the room and dot characters ahead of and following the “” character with a solitary “” character in purchase to make the validation simpler. (Black-Checklist)

5- Substitute all the “” with “” character in order to make the validation simpler. (Black-Listing)

6- Path really should not contain these characters: RegEx: [^:*?"&lt&gt|~] – (for Windows OS)

7- Locate the file extension by employing the final dot “.” character of the file. This extension must be in the checklist of authorized extensions this sort of as “gif”, “jpg”, “doc”, “docx”, “pdf”, “rtf”, and so on. (White-Record)

Speedy Conclusion:

Halt employing blacklist protections for direct item references if you cannot use indirect kinds. In addition, do not forget to discuss to the experts to apply it correctly.

Last Phrases

Make sure you deliver me your feedbacks by way of my email handle (irsdl at yahoo dot com) to enhance this white-paper. You can use whole or part of this document by placing a reference to the writer (Soroush Dalili) and website link of the primary document.

At present just by utilizing Google, a lot of vulnerable internet sites and Content material Management Methods (CMS) can be found. If you find an issue based on the content material/thought of this paper in a permitted program (these as your site CMS), please report it to its legal authority to patch the method as soon as feasible and I would be thankful if you set a hyperlink to this document as a reference in your advisory.

However, be sure to do not use this expertise in opposition to any site or system with out getting a lawful permission. And, I do not take any duty for any use from this white-paper and its subject material/concept.

Reference(s):

- OWASP, Unrestricted File Upload: http://www.owasp.org/index.php/Unrestricted_File_Upload


Downlaod the PDF file: http://soroush.secproject.com/downloadable/Unrestricted_File_Down load}_V1..pdf

Backup hyperlink is also available: http://0me.me/files/soroush.secproject.com/Unrestricted_File_Down load}_V1..pdf

Soroush Dalili - Laptop or computer Security Is My Curiosity!

Be the first to comment - What do you think?
Posted by Product Reviewer - February 13, 2012 at 4:20 pm

Categories: Security   Tags: Download}, File, Server, Unrestricted, Windows

U.S. Tax Season Phishing Ripoffs and Malware Campaigns

In the past, US-CERT has obtained reviews of an enhanced amount of phishing ripoffs and malware campaigns that just take edge of the United States tax time. Due to the approaching tax deadline, US-CERT reminds users to continue being mindful when acquiring unsolicited electronic mail that could be element of a potential phishing rip-off or malware campaign.

These phishing frauds and malware campaigns may possibly incorporate, but are not minimal to, the subsequent:


  • data that refers to a tax refund,
  • warnings about unreported or underneath-reported income,
  • gives to assist in filing for a refund, and
  • facts about phony e-file web sites.
These messages, which might appear to be from the IRS, may ask customers to submit personalized info by way of electronic mail or might instruct the consumer to comply with a url to a site that requests private data or is made up of malicious code.

US-CERT encourages users and directors to just take the adhering to measures to defend by themselves from these kinds of phishing scams and malware campaigns:

US-CERT Latest Activity

Be the first to comment - What do you think?
Posted by Product Reviewer - February 12, 2012 at 4:46 am

Categories: Security   Tags: Campaigns, Malware, Phishing, Ripoffs, Season, U.S.

Travian Sport Patch – Ultimately!

Below are the facts of recent security patch of Travian game: http://discussion board.travian.com/showthread.php?p=1728991

There was a Cross Website Scripting (XSS) vulnerability in hero’s mansion rename segment. This situation was simply because of using “id” and “gid” input parameters at the very same time. “gid” was used for loading the hero’s mansion, and “id” was utilised to insert a Javascript code. You can only see 1 of them as an input for a simple file at the same time. However, I used them with each other and discovered this vulnerability:

http://sN.travian.EXT/construct.php?gid=37&ampid=&ltscript below&gt&amprename

As there was a “httponly” flag for the cookies, it was not possible to hijack the periods. Nonetheless, we could even now use it to do many things. The most basic 1 was to hijack the saved username/password from the browser. I ought to say that there was an additional issue with the login page very last 12 months based mostly on which someone could develop the Travian cookie and log into the program by the victims session.

There was also an additional problem with validation of exclusive e mail addresses by which a user could develop many accounts with the identical electronic mail tackle. It was ample to enter a “comma” in front of the email deal with to have a new legitimate email handle. For instance somebody could register a number of instances without possessing any dilemma in receiving the affirmation code by employing “test@secproject.com”, “,examination@secproject.com” , “,,examination@secproject.com”, and so on.

Fortunately these troubles have been patched immediately after a lot more than a 12 months. This delay was only due to the fact of not having a immediate reference to speak to as no one/supply was publicly responsible for the security problems.

These troubles go back again to June 2009. Related Website link: http://soroush.secproject.com/web site/2009/11/travian-video game-vulnerabilities-in-development/

Be aware: I extremely propose the providers to place at least 1 electronic mail tackle in their make contact with webpage for typical bugs and security issues. They ought to also have a method to resolve a security situation and give its credit to the finder(s) someway (by placing the finder’s identify in the site reports, launch notes, …) if they do not want to pay for their vulnerabilities! It is a pain when the security researchers can only see sale and advertising electronic mail addresses in several of the providers’ contact pages and that is why as well many of these security troubles are staying printed prior to having any patch every single day.

Soroush Dalili - Personal computer Security Is My Fascination!

Be the first to comment - What do you think?
Posted by Product Reviewer - February 10, 2012 at 4:19 pm

Categories: Security   Tags: Patch, Sport, Travian, Ultimately

Microsoft Security Advisory (2659883): Vulnerability in ASP.Internet Could Enable Denial of Services – Model: two.0

Revision Notice: V2. (December 29, 2011): Advisory up-to-date to reflect publication of stability bulletin.
Summary: Microsoft has done the investigation into a public report of this vulnerability. We have issued MS11-100 to handle this problem. For more data about this issue, which includes down load links for an accessible stability update, make sure you assessment MS11-a hundred. The vulnerability addressed is the Collisions in HashTable May Result in DoS Vulnerability - CVE-2011-3414.
Latest Security Advisories

Be the first to comment - What do you think?
Posted by Product Reviewer - February 9, 2012 at 4:28 am

Categories: Security   Tags: 2659883, Advisory, ASP.Internet, Could, Denial, Enable, Microsoft, Model, Security, Services, two.0, Vulnerability

Microsoft Protection Advisory (2588513): Vulnerability in SSL/TLS Could Allow Info Disclosure – Model: two.0

Revision Note: V2. (January ten, 2012): Advisory updated to reflect publication of security bulletin.
Summary: Microsoft has completed the investigation into a community report of this vulnerability. We have issued MS12-006 to deal with this problem. For much more details about this problem, such as down load links for an accessible safety update, be sure to critique MS12-006. The vulnerability addressed is the SSL/TLS Information Disclosure Vulnerability - CVE-2011-3389.
Most recent Stability Advisories

Be the first to comment - What do you think?
Posted by Product Reviewer - February 7, 2012 at 4:24 pm

Categories: Security   Tags: 2588513, Advisory, Allow, Could, Disclosure, info, Microsoft, Model, Protection, SSL/TLS, two.0, Vulnerability

Next Page »

Drag and Decline XSS in Firefox by HTML5 (Cross Domain in frames)