Sign In
The What, Why and How of Software Security
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Authorization
Catch the security flaw
Cryptography
Least Priv
Security Conference/ Workshop
Security Tool
Archive
Archives
June 2009
(1)
April 2009
(1)
February 2009
(1)
December 2008
(3)
November 2008
(1)
August 2008
(1)
July 2008
(2)
June 2008
(1)
March 2008
(1)
February 2008
(1)
January 2008
(2)
December 2007
(1)
November 2007
(3)
October 2007
(2)
September 2007
(2)
August 2007
(1)
MSDN Blogs
>
The What, Why and How of Software Security
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
The What, Why and How of Software Security
TechNet Webcast: Configuring with Least Privilege in SQL Server 2008
Posted
over 3 years ago
by
Varun Sharma
0
Comments
I recently presented a TechNet Webcast on the topic “Configuring with Least Privilege in SQL Server 2008”. The topics covered in the Webcast are:- 1. Configuring SQL Server service accounts with least privilege. Service isolation is also explained. 2...
The What, Why and How of Software Security
Catch the security flaw #6
Posted
over 3 years ago
by
Varun Sharma
7
Comments
If you can find the security issue with this piece of code, write about it by adding a comment to this blog post. This is the scenario:- 1. There is a Web site that allows end users to upload their pictures. 2. On the Web server, the Web site is physically...
The What, Why and How of Software Security
Virtual techdays: Top 5 Web Application security bugs in custom code
Posted
over 3 years ago
by
Varun Sharma
1
Comments
Microsoft Virtual TechDays is starting from the 18th February 09. In the security track , I will be presenting on the topic “Top 5 Web Application Security bugs in custom code”. As a security engineer in the ACE Team , I have been reviewing line-of-business...
The What, Why and How of Software Security
catch the security flaw #5 (flaw and its countermeasure)
Posted
over 4 years ago
by
Varun Sharma
1
Comments
In my last post , I showed input validation code that uses RegularExpressionValidators improperly. Thanks to Mathew Grabau and Marius Cristian CONSTANTIN for pointing out that the Page’s IsValid property has not been checked before using the input. As...
The What, Why and How of Software Security
Catch the security flaw #5
Posted
over 4 years ago
by
Varun Sharma
5
Comments
A lot of web applications use RegularExpressionValidators for performing input validation [1]. Sometimes these validators are not implemented properly, which can lead to potential flaws. See if you can catch the flaw here:- Code for Default.aspx:- 1:...
The What, Why and How of Software Security
Catch the Security Flaw(s) #4
Posted
over 4 years ago
by
Varun Sharma
4
Comments
Identify as many security issues as you can with this piece of code:- 1: [WebMethod] 2: public string GetEmpName( string empid) 3: { 4: SqlConnection con = new SqlConnection( "server=.;database=test;uid=sa;pwd=PassW2rd12" ); 5: SqlCommand cmd =...
The What, Why and How of Software Security
NASSCOM – DSCI Information Security Summit 2008 Security Tutorial
Posted
over 4 years ago
by
Varun Sharma
2
Comments
My colleague Sagar and I will be conducting an application security workshop at the NASSCOM – DSCI Information Security Summit 2008 on the 1st December in IIIT, Hyderabad, India. More information can be found here:- http://www.nasscom.in/Nasscom/Templates...
The What, Why and How of Software Security
How To: Configure permissions in Out-of-the-box MOSS 2007 Approval Workflow such that “Approvers” cannot edit or delete the item to be approved
Posted
over 4 years ago
by
Varun Sharma
3
Comments
1. Consider a Microsoft Office SharePoint Server 2007 site that will be used as a “Document Approval System”. Certain users will be “Editors” and they will be able to upload documents for approval. Another set of users will be “Approvers”. These users...
The What, Why and How of Software Security
Catch the Security Flaw #3
Posted
over 4 years ago
by
Varun Sharma
8
Comments
Quite a few web applications encrypt query string values. This is generally done as an added measure to prevent unauthorized access. Since the end user cannot chose a value and then encrypt it, changing parameters becomes difficult. But encryption is...
The What, Why and How of Software Security
Confusion property of symmetric block ciphers
Posted
over 4 years ago
by
Varun Sharma
1
Comments
Modern symmetric block encryption algorithms need to satisfy a number of properties to be considered strong. One such property is the property of “Confusion”. What it means is that if an attacker is conducting an exhaustive key search, and if the key...
The What, Why and How of Software Security
catch the security flaw #2 (flaw and its countermeasure)
Posted
over 4 years ago
by
Varun Sharma
1
Comments
In my previous “Catch the Security Flaw” post I wrote about a flawed CAPTCHA implementation. In this post I discuss what are the flaws in that implementation and how to prevent them. Before I go into the exact flaws, let us agree upon a standard notation...
The What, Why and How of Software Security
Catch the security flaw #2
Posted
over 4 years ago
by
Varun Sharma
7
Comments
Consider a fictional web site that lets you create new accounts (as shown below). This site implements CAPTCHA to prevent a malicious user from creating large number of false accounts by running an automated script. The following code is used...
The What, Why and How of Software Security
Catch the security flaw #1 (Flaw and its countermeasure)
Posted
over 4 years ago
by
Varun Sharma
1
Comments
It is time to discuss the flawed code that I posted a couple of weeks back. The comments posted were good and in essence summarize the flaw. The circled part is an example of an embedded code block. The query string parameter “id” will be inserted...
The What, Why and How of Software Security
Catch the security flaw #1
Posted
over 4 years ago
by
Varun Sharma
4
Comments
I will be from time to time, putting up flawed code as an open question on this blog. Those who can catch the flaw please do post about it in the comments section (preferably with the repro steps). After a few days, I will post the flaw and its countermeasure...
The What, Why and How of Software Security
Common Authorization flaw in Web Applications: Why disabling buttons (or other controls) is not enough?
Posted
over 4 years ago
by
Varun Sharma
2
Comments
I have seen quite a few web applications that rely on disabling controls for authorization. Consider this code:- The scenario may be that the page has to be displayed in a read-only manner for certain roles, or after submission of some details but...
The What, Why and How of Software Security
XSSDetect: Tool for finding Cross Site Scripting bugs
Posted
over 5 years ago
by
Varun Sharma
2
Comments
About a month back, ACE Engineering released " XSSDetect ", a stripped down version of the "Code Analysis Tool for .NET code bases (CAT.NET)". A Cross site scripting (XSS) vulnerability exists in a web application whenever user controlled input, without...
The What, Why and How of Software Security
Block Ciphers: Simple attack on ECB mode
Posted
over 5 years ago
by
Varun Sharma
0
Comments
This is nothing new, but I just wanted to document it on my blog. Block ciphers encrypt data in blocks of bits. These blocks are generally 64 or 128 bits long. In the ECB (or Electronic Code Book) mode, each block is encrypted independently of the other...
The What, Why and How of Software Security
ClubHACK 2007: I will be presenting some “Subtle Security Flaws”
Posted
over 5 years ago
by
Varun Sharma
0
Comments
In its own words, " ClubHACK is one of its kind hacker's convention in India which serves as a meeting place for hackers, security professionals, law enforcement agencies and all other security enthusiasts." At ClubHACK, I will talk about some interesting...
The What, Why and How of Software Security
The Unbreakable Cipher
Posted
over 5 years ago
by
Varun Sharma
3
Comments
The concept of perfect secrecy is that given the cipher text, and any resources and amount of time, the adversary has no way of getting to the plain text. Having the cipher text makes no difference and provides absolutely no additional information. The...
The What, Why and How of Software Security
Common Authorization Vulnerability in Thick Client applications
Posted
over 5 years ago
by
Varun Sharma
0
Comments
Consider the following architecture for an intranet application. A thick client installed on the user’s machine connects to a web service which in turn connects to the database. The web service authenticates the caller using windows authentication. It...
The What, Why and How of Software Security
Browser Security: Why you can’t get the file that the user doesn’t want you to get?
Posted
over 5 years ago
by
Varun Sharma
1
Comments
In the year 1995, there were eight options for the “type” attribute of the “input” element. These were “CHECKBOX”, “RADIO”, “HIDDEN”, “TEXT”, “PASSWORD”, “IMAGE”, “RESET” AND “SUBMIT”. The “FILE” option was added later on to the HTML DTD (Document type...
The What, Why and How of Software Security
Catch the security flaw: Configuring encryption from Web Server to SQL Server
Posted
over 5 years ago
by
Varun Sharma
0
Comments
I assess software security for a living, but I almost missed this one. < connectionStrings > < add name = " Conn " connectionString = " server=server1; database=database1; Integrated Security=True " Encrypt = " True " /> </ connectionStrings...
The What, Why and How of Software Security
SQL injection: Dynamic SQL within stored procedures
Posted
over 5 years ago
by
Varun Sharma
3
Comments
Most resources on the internet concentrate on dynamic SQL in the data access code as the cause of SQL injection. Although lesser known, SQL injection is also possible if the stored procedure itself constructs dynamic SQL and executes it with the “exec...
The What, Why and How of Software Security
How To: Run Sql Server Agent and Sql Server Jobs with least privilege in Sql Server 2005
Posted
over 5 years ago
by
Varun Sharma
6
Comments
How to: Run Sql Server Agent service under an account which is not a member of the local administrators group 1. Add the account under which you want to run the Sql Server agent service in the SQLServer2005SQLAgentUser$ ComputerName $MSSQLSERVER group...
Page 1 of 1 (24 items)