<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9042057803725122487</id><updated>2024-10-24T22:37:00.247+05:30</updated><category term="application security"/><category term="pen-test"/><category term="xss"/><category term="breach"/><category term="compliance"/><category term="pci"/><category term="risk"/><category term="input validation"/><category term="javascript"/><category term="owasp"/><category term="awareness"/><category term="bot"/><category term="sdlc"/><category term="Fortitude"/><category term="botnet"/><category term="broadband"/><category term="business"/><category term="ciso"/><category term="gumblar"/><category term="iiwad"/><category term="india"/><category term="key management"/><category term="pa-dss"/><category term="phishing"/><category term="recon"/><category term="sox"/><category term="we45"/><category term="wireless"/><title type='text'>Abhay Bhargav, on Information Security</title><subtitle type='html'>This blog aims at &quot;Passing the Fear&quot;. It hopes to provide a very real and very scary perspective of InfoSec and also provide some pragmatic solutions to overcome your worst security fears. I would love for readers to contribute and pen their thoughts on Information Security after all, as Woodrow Wilson puts it &quot;I not only use all the brains that I have, but all that I can borrow.&quot;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-9137771617050530449</id><published>2011-01-25T11:44:00.006+05:30</published><updated>2011-01-27T14:39:40.449+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awareness"/><category scheme="http://www.blogger.com/atom/ns#" term="ciso"/><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><title type='text'>Post Pen-Test scenarios for the CISO</title><content type='html'>A Penetration Test can be hard for a company. Over the past years when I have been doing Penetration testing for companies, a lot of them undergoing a pen-test for the first time in their corporate existence. The results are anything but cheery. It is usually a gruesome mess of unpatched servers, misconfigured network devices and wildly non-secure apps that can weaken the resolve of the steeliest of CISOs (Chief Information Security Officers) or their equivalent.&lt;br /&gt;&lt;br /&gt;A typical scenario emerges. The CISO receives this &#39;bloodstained&#39; Pen-test report from the pen-testing company and one of the following usually happens:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The CISO utters words like &#39;This problem will be fixed in the next week, or I will not rest&#39; and subsequently files it in his cupboard and forgets about it for posterity until there is a massive security breach. &lt;/li&gt;&lt;li&gt;The CISO delegates to the IT team or the team handling the implementation and they provide an excel sheet saying that they fixed (even though they didn&#39;t) and the CISO believes it because they are (supposed to be) doing their job. The problem festers..... &lt;/li&gt;&lt;li&gt;The CISO receives the report and shares very limited (or even wrong) information to his key staff because of &#39;security reasons&#39; or reasons of distrust. This leads to limited action because no one trusts anyone and the organization stays blissfully insecure (and not only  emotionally).&lt;/li&gt;&lt;li&gt;The CISO doesnt understand the technicalities. Blanket statements about IT security and governance are made and the ground realities are forgotten until a security breach shakes the very ground beneath them.&lt;/li&gt;&lt;/ul&gt;A successful pen-test is the first step towards better Information Security for an organization. The focus of a CISO should be to leverage on the results of a pen-test and drive efforts to ensure tactical information security and strategic security directives for the organization. Here are a few focus areas for the CISO who wants to get the best from a pen-test:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Quality:&lt;/span&gt; A good quality pen-test should be the first focus area for the CISO. The pen-test is conducted against the scoped IT environment (the IT components in scope for the test). The pen-tester should have used a solid methodology (Look for a specific &#39;methodology&#39; section in the report). Most Pen-tests are not really Pen-Tests but cursory Vulnerability Assessments where the pen-tester has run some automated tools and identified vulnerabilities. The focus should be on depth, and depth is achieved through penetration attempts against the target IT component and the results from said penetration. A critical aspect of a quality pen-test is the report.  The report has to be clear, comprehensive and provide specific recommendations on the given vulnerabilities. The report should ensure that the implementers should be able to comprehend and implement the provided recommendation. Another note to CISOs, &lt;span style=&quot;font-weight: bold;&quot;&gt;DO NOT automatically accept a lower cost penetration test, it usually means lower quality&lt;/span&gt;. These are matters of your organization&#39;s information security.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Communication&lt;/span&gt;: I recently came across a CISO who wouldn&#39;t share results of the pen-test with the Implementation teams that required to fix it, citing &#39;Security reasons&#39; as he didnt trust any of them to deliver. Many CISOs do not follow the &#39;Trust but verify&#39; rule because they do not have the skills to verify. They provide limited (or even wrong) information to their implementation team on fixes and these cursory fixes are of little value in effectively correcting the vulnerability in the system(s). CISOs should communicate effectively with the Implementation teams, providing them enough information required to comprehensively fix the issue. Meaningful data, such as screenshots, downloaded files provided as a part of the pen-tester&#39;s results should be provided to the implementation team for them to grasp the issue and fix the vulnerability as effectively as possible.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Project Management:&lt;/span&gt; A Penetration Test, from a CISO&#39;s standpoint is a project in itself. The CISO has to define a project management plan for the fixes of the vulnerabilities. Based on the Risk Ranking of the vulnerabilities, the fixes should happen based on defined timelines. The culture of Information Security is tough to implement, as people will naturally tend to be convenience oriented, as opposed to security oriented, and this behaviour would manifest itself as vulnerabilities in the IT systems of the organization. The CISO has to cultivate a culture of security execution, where every team responsible for the fixes, delivers on the fixes and these fixes are verified by effectiveness and propriety before being signed off on. Sometimes, there are certain long-term or deep-rooted fixes that take a much longer time or effort in fixing. For instance, implementing encryption on a production database containing millions of records. The implementation of the fix in this scenario is a complicated one, requiring redesign and downtime. In that case, the CISO should actively consider and design compensatory controls to ensure that the lack of primary control is suitably compensated with the secondary control. The CISO should also contract with the pen-tester (either internal or external) to perform a re-test of the previous scope to ensure that the vulnerabilities have been fixed.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Review of Processes:&lt;/span&gt; Oftentimes, I have noticed that CISOs blindly fix results without paying heed to a flawed process/culture that would have led to the vulnerability existing in the first place. This is commonly seen with patch management, where a flawed patch management process would lead to inconsistent application of security patches across critical systems, allowing vulnerabilities in previous versions to still be at large, providing easy access to an attacker through a Code Execution exploit or a Denial of Service Exploit against the vulnerable system. The CISO should review and relook at the processes and procedures that exist in the organization and consider amending/overhauling the processes based on evolving security threats and the organization&#39;s response to it. This can ideally be achieved by reviewing pen-test or Vulnerability Assessment results from previous quarters or years.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Consistency&lt;/span&gt;: A Penetration Test is not a one-time activity (or atleast, it shouldn&#39;t be). The CISO should ensure that a pen-test is conducted bi-annually with a quarterly Vulnerability Assessment. Threats evolve consistently and exploit code is written every day for myriad software and applications. This necessitates the need for a repetitive assessment of the organization&#39;s IT environment over a period of time. In case the organization&#39;s IT environment is massive. The Penetration Test should cover representative samples of all IT components like routers, firewalls, desktops, servers and applications. The findings from all these tests should be used to harden the rest of the components in those sample classes.&lt;br /&gt;&lt;br /&gt;Penetration Testing is a tough gig to take for entities. More often than not, they find themselves staring at very adverse results. They often lose heart and this exercise becomes nothing more than lip-service or a compliance check. Using some of these techniques, I have discussed (and I am sure there are many other concepts) I think CISOs or their equivalents in organizations can make a positive and meaningful change in the security stance of their organization.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/9137771617050530449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/9137771617050530449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/9137771617050530449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/9137771617050530449'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2011/01/post-pen-test-scenarios-for-ciso.html' title='Post Pen-Test scenarios for the CISO'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-4999295833567930449</id><published>2010-10-29T15:07:00.007+05:30</published><updated>2010-10-30T08:58:55.249+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="compliance"/><category scheme="http://www.blogger.com/atom/ns#" term="key management"/><category scheme="http://www.blogger.com/atom/ns#" term="pci"/><title type='text'>Whats new with PCI-DSS 2.0 - Part 1</title><content type='html'>The much-awaited PCI-DSS standard v 2.0 is out now. The PCI Security Standards Council (SSC) has released the standard on the 28th of Oct 2010 and is available for download at their &lt;a href=&quot;https://www.pcisecuritystandards.org/security_standards/documents.php&quot;&gt;site&lt;/a&gt;, along with the Summary of Changes from v 1.2.1 to 2.0. Some of the changes are small changes in verbiage, just clarifying the stance on certain issues, while some others are changes which may have medium to large scale impacts in certain PCI environments. In this two part blogpost I will be discussing some of the key changes which may have that kind of impact.&lt;br /&gt;&lt;br /&gt;The first thing I noticed was the amount of detail provided to QSAs at the beginning of the document. The Report on Compliance Details, Scoping, etc. have been detailed very heavily. This is good, because over some fears over lack of quality norms by QSAs, the reports were lax on details (due to laxity of testing). The SSC has been consistently trying to improve the quality of assessment and the initial sections of the Security Assessment Procedures are evidence of that.&lt;br /&gt;&lt;br /&gt;Requirement 1, The Firewall and Network Security Requirement has largely gone through changes in verbiage, clarifying some of the questions about implementation of firewalls and network segmentation. The IP Masquerading requirement using NAT/PAT as the benchmark has been extended to including load balancers, content caches, firewalls, etc. Also, employees with personal firewall software on their computers in the PCI scoped environment should be unable to turn them off. Sensible, but largely basic.&lt;br /&gt;&lt;br /&gt;Clarity on the &quot;One Primary Function Per Server&quot; rule has been given at last. The rule has been interpreted in several ways, but there is a measure of clarity with the 2.0. The Standard stipulates that you must use one primary server per function where the security levels of those functions vary, for instance, DNS, Web and DB server, or Card Management Application Server and Database Server. They have also indicated that in a VM environment, one primary function per virtual machine is in order. This was a requirement that was being taken to a ridiculous level on both sides of the spectrum.&lt;br /&gt;&lt;br /&gt;Another important change, which comes across as innocuous but can have far reaching implications is the non-console administrative access requirement, where the PCI stipulates that when accessing system components like network devices and servers from a non-console administrative perspective, encryption like SSH, SSL, etc have to be used to access. In earlier avatars of the standard, this was just a simple allusion to SSL or SSH or IPSec, but they have now mandated strong cryptography. This causes quite an issue with network devices that ship with SSL certificates that still support SSLv2 or MD5, or in case of SSH with SSHv1. These were taken as compliant (with PCI 1.2.1) because they supported encrypted non-console admin access. Now, however with the strong crypto requirement for non-console admin access, these will have to be overhauled with better SSL certs and SSH implementations, and even in the case of IPSec, stronger crypto.&lt;br /&gt;&lt;br /&gt;One of the requirements that I believe will set PCI back by some measure is Requirement 3.2. This requirement mandates that entities should not store Sensitive Authentication Data under any circumstances (even if encrypted). This requirement was extremely difficult to enforce in Issuing Banks or Issuing Processors as several of them are on Mainframe legacy apps and these apps, not only store CVV(aka Card Security Code), but also log the full card track data and transaction in cleartext. However, certain issuing banks/processors have adopted the standard where the CVV is generated on the fly (by a Hardware Security Module) for authorization and compared with the CVV sent in the transaction and if the CVVs are found to match, the transaction is authorized. This is a good practice, which ensures that CVVs arent stored by the organization. But these implementations (in my experience) are still the minority. The PCI 2.0 has allowed Issuing organizations to store sensitive authentication data like the CVV. They hav excepted issuers and processors from this requirement.  I believe this is a bad move, because issuing orgs now, do not have an impetus to change over to better (and more secure) practices in relation to storage of Sensitive Authentication Data.&lt;br /&gt;&lt;br /&gt;The Standard also changes some key issues with key management (no pun intended). The standard has mentioned that key-encrypting-keys (KEK) need to be equivalent to the Data-Encrypting-Key(DEK) in terms of size. Now, as it can be imagined, the DEK encrypts the Data and the KEK, as an additional measure of security is used to encrypt the DEK. In many applications, the DEK is a symmetric cipher (like AES 256 ot 3 DES 128) and the KEK is an asymmetric cipher (RSA, DSA, etc). This is usually done because reasons of efficiency. Data encryption is a heavy process, hence symmetric encryption is utilized for higher speeds of encryption. Asymmetric is used for KEKS, because the private-public keypair and is easier to secure than another symmetric key. However, with the mandate of the PCI on DEKs and KEKs having equivalent size, length and complexity, the tables are turned. The equivalent of a 256 bit symmetric cipher is a 15460 bit asymmetric cipher. Ouch.&lt;br /&gt;&lt;br /&gt;A good fallout of the key management requirements is the &#39;split-knowledge&#39; requirement. Earlier, the standard mandated split knowledge and dual-control of the encryption keys by key custodians for key generation,etc. This was a serious issue with Applications, as key management could be automated, but because of this requirement mandating split-knowledge and dual control of keys, developers used to come up with clunky executables (or other kludges) that would allow key custodians to enter half a key each for generation or key change. Now, however the stance has changed to the fact that split-knowledge of keys by custodians is only necessary in case of manually driven key management processes (where split knowledge and dual control make sense). Great news for applications, where the key management processes are (and ideally should be) automated.&lt;br /&gt;&lt;br /&gt;This ends Part 1 of my PCI-DSS 2.0 review. This will be followed up with the rest of the review in Part 2. Hope you find it useful!&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/4999295833567930449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/4999295833567930449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/4999295833567930449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/4999295833567930449'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2010/10/whats-new-with-pci-dss-20-part-1.html' title='Whats new with PCI-DSS 2.0 - Part 1'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-3530319990804975221</id><published>2010-10-28T21:00:00.007+05:30</published><updated>2010-10-28T22:05:32.790+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><title type='text'>What&#39;s wrong with Penetration Tests, and how we can set it right (India Edition)</title><content type='html'>Penetration Testing is complicated, especially so for organizations that have to fix the issues from the debris, that is their IT infrastructure components. Over the past few months, I have had tons of experience leading and handling pen-tests for companies in the sub-continent and decided to rant. I thought of writing some of the problems that are out there and also some possible solutions to some of these issues, which will make these pen-tests a whole lot easier and a whole lot more efficient. They are:&lt;br /&gt;&lt;span style=&quot;font-size:130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Test Everything - Fix Nothing&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;This is a condition I have seen management typically have with Internal Pen-Tests or Large Application Pen-Tests. Management would like to include a ridiculously large scope of components to test. They include everything from their Database server, right from the laptops that they use at home as part of the Pen-testing activity. The results in most cases (especially with Internal Pen-Tests involving client side systems) is really ugly. Multiple exploits, backdoors and in some cases, traces of popular worms like Conficker (yes, I am not kidding). What follows is a gigantic report and what follows that is......Nothing. I have often seen that organizations who adopt this policy usually dont get anywhere in fixing the problem. They find so many loose ends to tie up, they huff and puff and eventually pack up and go home. This brings me to my first point in this rant-post:&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Start small (or manageable) -&lt;/span&gt; Many organizations (especially ones new to VAs and Pen-tests) usually go gung-ho and then fizzle out after seeing adverse reports. My advice to you is to test &lt;span style=&quot;font-weight: bold;&quot;&gt;everything&lt;/span&gt; in doses that you can handle.  Prioritize on the critical components first and then phase your testing for across the year. Also, testing &lt;span style=&quot;font-weight: bold;&quot;&gt;everything &lt;/span&gt;(literally)&lt;span style=&quot;font-weight: bold;&quot;&gt; &lt;/span&gt;may not be required. Mirroring results for similar IT components/applications is easier than literally testing every single component. For instance, upon finding security holes in a Debian Server, it is probably a good idea to fix issues on a sample of servers and roll out similar operations across the other similar servers in the environment. Additionally creating a solid Hardening standard for Debian Servers, coupled with Patching would not necessitate the need for testing every single one of these similar components.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;Ridiculous Time Frames&lt;/span&gt;&lt;br /&gt;Sometimes, we are given ridiculous time frames to work with. &quot;Hey, can you test my E-Commerce app in two days. I dont have more time than that. Also, I have to fix the problems after that.&quot; and my reaction to that is usually &quot;Oh, you wont have to worry about too much to fix, I probably would need two days to just understand your site, and since you only have two days, I will give you a clean report&quot; in my most sarcastic (and borderline mocking) voice. While time is a constraint, such super constrained timelines only result in a untested and potentially non-secure environment. I am sure no one, either management or the pen-tester would like to turn up with false negatives and find that their application/server/network component was super-vulnerable only because they hadnt the time to possibly test extensively. That will come back to bite a lot of people.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;Fixers are Breakers&lt;/span&gt;&lt;br /&gt;This is a condition I normally see with Application Pen-Tests, where the management is extremely clued in on the test before the commencement. Statements like &quot;We would like you to be extremely  comprehensive and give us all our security holes right between the eyes&quot;. Later when we deliver our report of their &lt;a href=&quot;http://en.wikipedia.org/wiki/Hindenburg_disaster&quot;&gt;Hindenburg&lt;/a&gt;-like app and discuss with them, the very same people become the worst enemies of everything sane and secure. I would be discussing a gaping business logic flaw about a failed authorization flaw where a user would get to play admin with the application and they try to find explanations which are on the lines of &quot;but the user would not be able to do much even if he/she became admin&quot; or &quot;I think this was an intentional feature that we had in case this eventuality.&quot; Earlier, I used to have a small explosion in my head, but yoga has taught me to react like Mr. Wolf from Pulp Fiction &quot;I am here to help, if my help&#39;s not appreciated, tough luck gentlemen&quot;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/3530319990804975221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/3530319990804975221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3530319990804975221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3530319990804975221'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2010/10/whats-wrong-with-penetration-tests-and.html' title='What&#39;s wrong with Penetration Tests, and how we can set it right (India Edition)'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-7543021253107316200</id><published>2010-03-27T22:08:00.002+05:30</published><updated>2010-03-27T22:27:11.867+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Fortitude"/><category scheme="http://www.blogger.com/atom/ns#" term="we45"/><title type='text'>we45&#39;s Newsletter &#39;The Fortitude&#39; released today</title><content type='html'>&#39;The Fortitude&#39; is we45&#39;s maiden Information Security Newsletter. Our aim is to bring the latest news, views and information from the world of Information Security. This month&#39;s articles focus on the following:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 14px; font-weight: bold;&quot;&gt;Website Security - Organizational Identity Attacks:&lt;/span&gt; &lt;span style=&quot;font-size: 14px;&quot;&gt;This  attack will focus on some of the newer threats that are affecting an organization&#39;s online identity, its website. This has been authored by Rahul Raghavan and the we45 Consulting Group and provides real life examples into the world of website security.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;font-size: 14px; font-weight: bold;&quot;&gt;Information  Technology Act 2000 - An Evolution:&lt;/span&gt; &lt;span style=&quot;font-size: 14px;&quot;&gt;Is the IT Act 2000 enough for a dynamic and ever changing Information Security landscape? Sumana Naganand, Partner-Justlaw, explores some of the evolutionary trends of the Information Technology Act 2000 with reference to &#39;Phishing&#39;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-weight: bold;&quot;&gt;Access Control Flaws - Chinks in the Web Application Armour:&lt;/span&gt; &lt;span style=&quot;font-size: 14px;&quot;&gt;we45&#39;s CTO, Abhay Bhargav delves into some of the serious flaws in access control logic that can cause your company to lose reputation and revenue.&lt;br /&gt;&lt;a href=&quot;http://www.we45.com/thefortitude.html&quot;&gt;&lt;br /&gt;Download it here!&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hope you enjoy it.&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/7543021253107316200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/7543021253107316200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7543021253107316200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7543021253107316200'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2010/03/we45s-newsletter-fortitude-released.html' title='we45&#39;s Newsletter &#39;The Fortitude&#39; released today'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-8551864445295603283</id><published>2010-03-17T18:26:00.004+05:30</published><updated>2010-03-17T19:20:32.191+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="awareness"/><category scheme="http://www.blogger.com/atom/ns#" term="phishing"/><title type='text'>Targeted Phishing - for the Big Fish</title><content type='html'>Another article on the topic on the similar topic prompted me to chronicle my own experiences with &quot;Targeted Phishing&quot;. Targeted Phishing is a variant of phishing that is specifically directed at an organization and its employees. So, someone pretending to be a part of (or somehow connected to your org) would send you an email with some news of an &quot;Important Update&quot; requiring you to login to an application to perform the update. The rest, as they say is history. While some would scoff at this notion, that employees of an organization would fall for this sort of thing, I would like to tell you that my experience with some organizations (some of whom are our clients) is otherwise. Let us explore the why and how and more importantly some of the sticky situations that can transpire as a result of Targeted phishing:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Situation: &lt;/span&gt;More organizations are taking to SaaS apps and apps in the proverbial Cloud. While this is great for cost savings and ROI, it is also great for an individual intent on harvesting your organization&#39;s most sensitive information, leveraging on the lack of awareness your people have about phishing in general.&lt;br /&gt;&lt;br /&gt;Imagine someone inside your organization setting up a dummy application copying HTML code from Google Apps, Salesforce.com, or several others with a login page, interfacing to a database that he/she controls. Worse, imagine someone on the outside setting up a similar application and sending emails to your employees requesting them to login to this application with their usernames and passwords. &lt;span style=&quot;font-weight: bold;&quot;&gt;An even worse situation would be if this was setup targeting an internal application that your organization has hosted that may be carries customer data or other sensitive information. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is the aftermath?&lt;/span&gt; Mostly, nothing. It is quite likely that this sort of an attack would never be detected (even if you have a security team, sometimes - personal experience with one of our clients). This attack would never be published on the Internet as an attack (because it is targeted at YOUR organization). There will be no advisories or newspaper articles (a la the Income Tax phishing email) This attack, most likely will never be discovered unless someone really at every form he/she is submitting and a lot of other details like the SSL, etc. Most people want to believe things and they would forget about this &quot;Update&quot; as soon as they &quot;sign in&quot; to the dummy app. So, CRM application may be harvested by an attacker for months.  &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is the Solution?&lt;br /&gt;&lt;/span&gt;I am sure all of your first reactions would be &quot;No more SaaS and no more Cloud&quot;, but I urge you to abandon this abstinent approach and focus on some of the constructive solutions.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Education:&lt;/span&gt; My first one would be to educate users on such attacks. Some of our clients engage us to conduct Targeted Phishing attacks against their organizations and prove this point beyond doubt (because most of them fall for it), forcing their employees to take the Security Awareness training reaally seriously. In my opinion, the Awareness trainings that happen today lack in solid material and live examples and case studies. Ensure that your awareness trainings have solid material or get an outside agency to perform awareness training to drive this point home to your employees.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Monitoring: &lt;/span&gt;Monitoring is rarely taken seriously. People are the only defense (or vulnerability) in case of Social Engineering attacks like Phishing. Regular monitoring in the form of security surveys and questionnaires would provide the organization with some info on user security awareness and responses. Supplementing this with email pattern-matching emails flowing into the organization might also be a good way to keep this sort of attack at bay.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/8551864445295603283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/8551864445295603283' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/8551864445295603283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/8551864445295603283'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2010/03/targeted-phishing-for-big-fish.html' title='Targeted Phishing - for the Big Fish'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-417933811910062916</id><published>2010-02-13T12:52:00.003+05:30</published><updated>2010-04-20T16:40:22.244+05:30</updated><title type='text'>My talk at the Business Technology Summit</title><content type='html'>I spoke on AppSec at the BT Summit on &quot;Web Application Security for the Payment Card Industry&quot;. The talk was very well received and received great responses from a very &quot;in-tune&quot; audience. The slide-deck was supposed to be made available on the BT site, but requires some kind of authentication to access. Therefore, by popular demand, I have included the slide-deck on this blog. Hope it is useful!&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;width:425px&quot; id=&quot;__ss_3787758&quot;&gt;&lt;strong style=&quot;display:block;margin:12px 0 4px&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/abhaybhargav/web-application-security-for-the-payment-card-industry-3787758&quot; title=&quot;Web Application Security for the Payment Card Industry&quot;&gt;Web Application Security for the Payment Card Industry&lt;/a&gt;&lt;/strong&gt;&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wasforpciv0-100420060658-phpapp02&amp;stripped_title=web-application-security-for-the-payment-card-industry-3787758&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=wasforpciv0-100420060658-phpapp02&amp;stripped_title=web-application-security-for-the-payment-card-industry-3787758&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;padding:5px 0 12px&quot;&gt;View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/abhaybhargav&quot;&gt;abhaybhargav&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/417933811910062916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/417933811910062916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/417933811910062916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/417933811910062916'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2010/02/my-talk-at-business-technology-summit.html' title='My talk at the Business Technology Summit'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-2676588371958641510</id><published>2009-11-15T20:28:00.005+05:30</published><updated>2009-11-16T11:57:44.163+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="compliance"/><title type='text'>Why you might be &#39;Californicated&#39; by SB-1386</title><content type='html'>SB 1386 is something most of us havent heard of. In the PCI and (fading) ISO juggernaut, organizations (especially outsourcing companies) have not taken cognizance of an important legal statute that might be a game changer for the way they do business with their principals in the US. Let me throw some light on what SB 1386 is all about. This is based on a conversation I had with another person from the outsourcing industry. The conversation might make a lot of sense to many people reading this....&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;What is the SB 1386? &lt;/span&gt;&lt;br /&gt;SB 1386 is popularly known as The California Breach Security Information Act. It was an act enacted in the year 2002 and came to effect in 2003. The act focuses on the privacy of the personal information of the citizens of the state of California. The act states that any organization that believes that there has been a breach of un-encrypted personal information of California state residents is required to disclose the breach publicly.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is &#39;Personal Information&#39;? It is very vague...&lt;/span&gt;&lt;br /&gt;No, its not vague. The act defines &#39;Personal Information&#39; as the individual&#39;s first name or initial and last name in combination with one of the following: social security numbers, California State Identification Numbers, Credit/Debit Card numbers, PINS or access codes.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Ok. I am listening. Who does it apply to?&lt;/span&gt;&lt;br /&gt;It applies to anyone doing business with anyone who is a California resident. If you have employees or customers in California, even a single one, it applies to you. If you are an outsourcing company that has a customer who has employees or customers who are California residents, then it applies to you. If you store data for entities that have information of California residents, then it applies. Large and small does not make a difference. It applies all the same.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;That&#39;s alright. Its just a disclosure clause. No big deal....&lt;/span&gt;&lt;br /&gt;That is where you are very wrong. You will have to disclose the breach to all those affected by it. These leads to a public relations war which you might have to wage with a great deal of reputational and financial expense. Your reputation WILL go to the cleaners because of a breach. You WILL face lawsuits from angry consumers and IF you are an outsourcing company, your customers will probably walk away from you and your prospects will NOT return your calls. Catch my point?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Yes, I think so. Wow, that seems worrying. I am an outsourcing partner for a lot of clients in the US. Can you tell me how it affects me?&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;Well, for starters if you are call center or a similar entity making outbound calls to US customers, you probably have the information which is defined by the act as &quot;personal data&quot;, then you are in scope. If you are a back-end data processing center handling accounting or payroll or any other data processing activity for your client, then you are in scope. You will need to start securing all that data and doing it seriously. A lot of companies have breached your customer&#39;s data and you dont want that to happen. See &lt;a href=&quot;http://www.ibtimes.co.in/articles/20061013/bpo-data-theft-probe-call-center-hsbc-channel-4-nasscom-karnik.htm&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://timesofindia.indiatimes.com/city/pune/Director-of-BPO-unit-held-for-data-theft/articleshow/5217216.cms&quot;&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;I think I need some water now. My throat has gone dry. Anyway, what do I do now? How do I prevent a disaster from occurring?&lt;/span&gt;&lt;br /&gt;For starters, call in a professional to audit your information security practices and let it be a thorough technical review and not a documentation and policy audit. Conduct a risk assessment for the data you handle and store and then formulate protection strategies in conjunction with your client. Have the auditor issue a formal audit report on completion and please, for heaven&#39;s sake, follow all the advice which you have been given. Dont try and cut corners on security practices, you will be in for a rude shock. Also be especially vigilant about employees who are working in your processes. It is very important to conduct periodic assessments and actively investigate any traces of malpractice from employees. Remember that insiders are the greatest cause of data theft in your industry.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Right then, but didnt you say something about encrypted data. So, if I encrypt data will I not have to disclose? &lt;/span&gt;&lt;br /&gt;Well, yes, but have you encrypted data? and are you confident that your data has been consistently encrypted and the encryption keys managed properly for all your encrypted data?&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;I dont think I have encrypted any data. I am not really sure. I have got to check......&lt;/span&gt;&lt;br /&gt;Then you most probably wouldn&#39;t have. Anyway, you better get going and do something about SB1386 otherwise you might be in for a world of pain. Think on the lines of being shot in the face with an AK-47.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;(Gulps) Yes, not a pleasant situation. Anyway, I got to go. See you then...&lt;/span&gt;&lt;br /&gt;Bye...&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/2676588371958641510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/2676588371958641510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/2676588371958641510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/2676588371958641510'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/11/why-you-might-be-californicated-by-sb.html' title='Why you might be &#39;Californicated&#39; by SB-1386'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-5645392163151559696</id><published>2009-11-05T15:30:00.006+05:30</published><updated>2009-11-11T06:53:03.021+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="business"/><category scheme="http://www.blogger.com/atom/ns#" term="sdlc"/><title type='text'>A Possibly Fresh perspective about Secure Code for Software Development Companies</title><content type='html'>I am sure most of you wont believe the reasons for my hiatus for almost 4 months. Let me try and explain. I was involved in a theater production very dear to my heart, so my evenings would be lost in that. I am pursuing a heavy writing assignment, which has been uber-demanding on the small space of time I have left and I actually took my vacation in September, when I had been to beautiful South Africa. Great place! You guys must all visit.&lt;br /&gt;&lt;br /&gt;Anyway, enough with the chatter. This piece was prompted by a talk I heard at the &lt;a href=&quot;http://www.btmarch.com/btsummit/&quot;&gt;Business Technology Summit&lt;/a&gt;a few days ago. Of course, I blabbed about web app sec and scared the pants off a few nervous developers and architects, but it was mostly fun. The conference mostly focused on SOA ang governance, but there were a few pure tech talks. There was one talk, which I was quite impressed with, by a fellow Java man, Eben Hewitt. He spoke on a topic entitled &quot;10 Things Software Architects must know&quot;, which is based on a book similarly entitled, except that the &#39;10&#39; has been replaced with &#39;97&#39;. The talk was mostly about concepts which software architects should keep in mind in order to be successful. While the talk didnt really have a specific security-related context, I applied some of those theories to the way software development companies can deal with security for the apps they develop. These are just my two cents. I am sure some of you can add more to it.&lt;br /&gt;&lt;br /&gt;I have heard of several instances where software development companies have been severely criticized for writing non-secure code. Undoubtedly so. Several software development companies dont really take secure coding to be an important practice. Time is not spent developing security in the application from the beginning, which subsequently results in a non-secure web app. The most common excuse that most of these entities give in terms of security or any other functionality not implemented is &quot;This type of security functionality was not laid out in our Requirements Specification&quot; or &quot;There was nothing in RFC specifying these security requirements&quot; and blame is thrown right back at the customers or the business users of the application for their lack of foresight. It is as if we believe that customers who will be using the application or who are functional stakeholders of a web application are actually extremely clear about their requirements. The truth is very simple. &lt;span style=&quot;font-weight: bold;&quot;&gt;They are as clueless as you are&lt;/span&gt;. In most cases, they will never really know what they want even functionally, unless they are given several ideas, security is quite a mile away in these circumstances. I believe that it is upto the company or the team developing the application to incorporate a risk assessment process to ensure that they capture all the critical information assets that will be stored, processed and transmitted by the application, threats and the impact of an attack on the application and subsequently on business, and then draw out security controls for the same. I have highlighted a detailed methodology for risk assessment for web apps, in my book &quot;Secure Java for Web Application Development&quot;.It is wrong to assume that customers or business stakeholders will be able to provide the razor sharp clarity necessary to build security into an application. Software Development companies need to rise to the occasion and use their expertise to suggest solutions and functionality for security at the beginning of the application development lifecycle.&lt;br /&gt;&lt;br /&gt;Which brings me to my second point. People reading my first point are going, &quot;Yeah, but isnt that going to be more expensive than a regular application development effort, without going Mother Teresa on my customer?&quot; Yes it will be a longer, probably marginally more expensive process, but &lt;span style=&quot;font-weight: bold;&quot;&gt;Quality is a Feature&lt;/span&gt;. We all try and sort out all problems all the time. Let us not try to do that and examine reality. Software development companies focussed on a greater level of quality of their products must make it explicit. You have various product and service offerings today, but it is important to realize that all services and products will not be of the same quality. A restaurant on the roadside, will not be as focused on quality than a snazzy five star restaurant. Its high time that we understood that about code as well. And its also high time that software development companies that are taking the first point seriously, start making it explicit and derive as much benefit as possible. There may be customers out there (despite the recession) that may be willing to pay better for a better service that is accentuated and re-iterated by processes like Risk assessment, effective understanding security functionality at the start of the lifecycle, vulnerability assessments, security code reviews and practices delving into security. Superior quality, in my opinion is a feature by itself, which needs to be advertised, and made explicit and should not be spoken about or practiced like its a part of the proverbial &#39;package&#39;.&lt;br /&gt;&lt;br /&gt;Let me know what you think of this....&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/5645392163151559696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/5645392163151559696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5645392163151559696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5645392163151559696'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/11/possibly-fresh-perspective-about-secure.html' title='A Possibly Fresh perspective about Secure Code for Software Development Companies'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-7513096535327146934</id><published>2009-07-18T09:40:00.005+05:30</published><updated>2009-07-18T12:49:28.659+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="pa-dss"/><category scheme="http://www.blogger.com/atom/ns#" term="pci"/><title type='text'>PA-DSS 101</title><content type='html'>That blank feeling in my stomach, which was there for the past 2 weeks or so is slowly disappearing as I sit down to write this piece. My blog hasn&#39;t been impregnated in the past 2 weeks with my words and (sometimes meaningless) rants. I was unwell during the week and till yesterday I was at a Risk Assessment workshop on the OCTAVE methodology, where I spoke on Vulnerability Assessment and generally had some engagements which didnt allow me the time to sit down and pen something in the interest of security.&lt;br /&gt;&lt;br /&gt;This piece is a result of an article I read in blogosphere somewhere today. It was something about Visa giving a great thrust to Software security through the PA-DSS program. Visa has indicated that Visa acquirers in all regions of the world must ensure that the merchants they newly sign must use PA-DSS Compliant Applications in their environments by the July 2010 and existing merchants should be transitioned to PA-DSS compliant Applications by the July 2012. I would see that as a welcome step in software/application security, and something that will be helpful to a huge extent in the application security quest. This is why:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;What is the PA-DSS?&lt;/span&gt;&lt;br /&gt;The PA-DSS is not as famous as its mother standard, which we all lovingly know as the PCI-DSS also known simply, as PCI. The PA-DSS is the Payment Application Data Security Standard. It is meant for commercial applications which come in contact with cardholder information either during the authorization or settlement function of the card payment transaction. PA-DSS is entirely meant for an application and consists of 14 requirements encompassing all aspects of security which a payment application will have to adhere to. This includes secure storage of cardholder information, logging, authentication&amp;amp;authorization, secure development and deployment, etc. The PA-DSS is a sub-set of the PCI-DSS, with the core focus on the application as opposed to the cardholder data environment in PCI-DSS. This is better explained with an example. For instance, a application developer &quot;A&quot; has developed an E-Commerce application which is to be sold to several merchants. Merchants all over the world are either thinking about, undergoing or have undergone PCI Compliance. If &#39;A&#39; has to support his prospective customer&#39;s PCI Compliance effort, then it imperative that the application be validated as per the PA-DSS requirements. The PA-DSS is a certification for the application and not for the environment. So, if &#39;A&#39; gets his application validated PA-DSS, then the application is readily designed to support the PCI requirements and merchant&#39;s PCI compliance effort wouldn&#39;t be hindered. The PA-DSS has been designed to ensure that the payment applications deployed in PCI environment must support PCI compliance, which is why the PA-DSS has come to be.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Why PA-DSS?&lt;/span&gt;&lt;br /&gt;One of the greatest impediments for security are the applications. I have seen several environments, where the entire process of security compliance or practices comes to grinding halt because of applications being unsupportive of security requirements. Applications are the lifeblood of any entity in business today. An e-commerce merchant cannot do business without the e-commerce application and its related components. A payment processor will find it impossible to process millions of transactions a day without the financial switch and its related applications. Customers are wedded to the applications they purchase and any change is resented and sometimes not recommended as a 24x7 scenario is the need of the hour. Most of these applications fall short of basic and advanced security needs by a long shot. Several financial switch applications log the entire magnetic stripe information, including the Card number, CVV and other track elements in CLEAR TEXT, a strict no-no from the PCI standpoint as well as from a general security standpoint. Several E-commerce applications purchased and deployed by customers don&#39;t support hashing of passwords, encryption of cardholder information and not to mention web application security practices like input validation. Point of Sale applications used by merchants log the entire card number in the transaction logs and several of them dont support anything more than a 4 char password. This is a huge impediment in adhering to security requirements. Merchants and processors often struggle with security implementation because of the applications and even after the best workarounds, the risk of data being stolen, modified or destroyed still remains amply. The aim of the PA-DSS is to correct this situation by ensuring that application vendors creating commercial payment applications to be sold, must get their applications validated against the PA-DSS requirements.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Why not just PCI? Doesn&#39;t it cover Application Security?&lt;/span&gt;&lt;br /&gt;Yes, PCI does cover application security in its requirements. In fact Requirement 6 is dedicated largely to application security practices and web application security practices, including a great deal of wisdom from the OWASP knowledge base, providing a much-needed boost to AppSec, but PCI addresses the applications which are custom developed or developed in-house. The focus of the PA-DSS is for payment applications which are to be sold, distributed or licensed to third parties. So the loop is pretty simple&lt;br /&gt;&lt;pre style=&quot;border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;&quot;&gt;&lt;code&gt;if (inHouseApplication() || customCode()) {&lt;br /&gt; validateAsPerPCIDSS();&lt;br /&gt;} else {&lt;br /&gt; validateAsPerPADSS();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Thats great, I have developed a log management app for PCI, when can I get it PA-DSS validated?&lt;/span&gt;&lt;br /&gt;Well, you do not. The PA-DSS is only applicable for applications which are part of the payment authorization and settlement cycle. So if you are a log management application, WAF, or any other application which is looking for a marketing boost from the PCI fever, you will not able to go the PA-DSS route as it is specifically for Payment Applications.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/7513096535327146934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/7513096535327146934' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7513096535327146934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7513096535327146934'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/07/pa-dss-101.html' title='PA-DSS 101'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-9122203782148637790</id><published>2009-06-27T08:18:00.006+05:30</published><updated>2009-06-30T06:35:18.593+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><title type='text'>Why attackers love your developers!</title><content type='html'>&lt;pre style=&quot;border: 1px dashed rgb(153, 153, 153); padding: 5px; overflow: auto; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; color: rgb(0, 0, 0); background-color: rgb(238, 238, 238); font-size: 12px; line-height: 14px; width: 100%;&quot;&gt;&lt;code&gt;Kind Sir&lt;br /&gt;&lt;br /&gt;My name is Developer A. I am having a problem with database connectivity to Oracle. I think I am doing everything right, but I am getting an HTTP 500 error with the following details:&lt;br /&gt;(Full Stack trace follows)&lt;br /&gt;The sample of the source code is given here.&lt;br /&gt;(Source Code follows)&lt;br /&gt;The error where it is occurring is at this URL (Organization&#39;s url follows)&lt;br /&gt;Please help me out with this as soon as possible. I reeeallly need help!!!&lt;br /&gt;Email me at developerA@organization.com&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Yes. This was one of the messages I found sifting through my Google hacking results while I was pen-testing a web application the other day. Needless to say that, the page with the stack trace was open for me to go and gain a complete understanding of the application and penetrate. The organization which I was pentesting had gone great distances to get secure. They had spent a lot of time, money and resources in getting secure and staying that way. They had gotten a few things wrong, but mostly they were on target. Unfortunately, they had forgotten to explain to their developers that dirty laundry (or in this case confidential laundry) should not be washed in public. I have seen this with several organizations (mostly in Software development) where developers post their queries in Internet forums and get some other professionals to look at it and give them some insight into the matter. While there is nothing wrong with this practice, the way it is followed is quite shocking. Developers dont even go through the trouble of hiding the name of the organization they are working for. They advertise their email address and in several cases the URL of the page which is problematic and buggy. When posting code snippets or source code, they mostly never remove sensitive details like certain class references or database drivers (sometimes, even usernames and passwords to dbs) and last but not the least, they use words like &quot;Kind Sir&quot; on an Internet forum (although the last one is not a vulnerability, it is bloody irritating). I am sure all of you would realize that such information can be extremely useful to anyone looking to break into an application or a site. It would be worth its weight in gold. And, of course, as usual the only thing you really have to do is &quot;Google it&quot; or &quot;Bing it&quot; (my vendor agnostic comment for the day).&lt;br /&gt;&lt;br /&gt;My advice to organizations to prevent against such ignominious disclosures are these:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Instruct developers never to post in internet forums under their own name or with their company credentials like emails, etc.&lt;/li&gt;&lt;li&gt;Encourage developers to first find help within the organization. I have seen that several greenhorns tend to be afraid of asking their seniors or project managers any doubts regarding the code, fearing a nasty remark or backlash. Build an environment of openness and encourage questions. Not doing so, would result in these juniors asking questions anyway, but to someone you are totally not aware of, not bound by confidentiality agreements, etc.&lt;/li&gt;&lt;li&gt;If someone really has to post queries on the Internet, make sure that these are approved. Source code should not be posted. Stack trace should not be posted. Questions should be based on peripheral details and no sensitive information should be posted. Words like &quot;Kind sir&quot; should definitely be filtered out of posts ;)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Have your risk folks scour the internet regularly checking for violations and take action against people violating these instructions. &lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/9122203782148637790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/9122203782148637790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/9122203782148637790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/9122203782148637790'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/why-attackers-love-your-developers.html' title='Why attackers love your developers!'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-4107127577899704490</id><published>2009-06-21T08:30:00.008+05:30</published><updated>2009-06-21T10:11:37.382+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="breach"/><category scheme="http://www.blogger.com/atom/ns#" term="pci"/><category scheme="http://www.blogger.com/atom/ns#" term="risk"/><title type='text'>PCI Compliance: Hazards of the &quot;Dull-Clarity&quot; effect</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;It has been a while since I sat down to write a post for my blog. The monsoon season has just set in this part of the world. The days are hot and it rains heavily on occasion causing one to just enjoy the comfort of his bed a little more than usual.&lt;br /&gt;&lt;br /&gt;This was a piece, which had been in the works for sometime now. I had planned to write it, close on the heels of the &lt;a href=&quot;http://www.finextra.com/fullstory.asp?id=20067&quot;&gt;Savvis lawsuit (for the CardSystems breach)&lt;/a&gt;, but I missed my cue. Anyway, here goes. This lawsuit has been abuzz in blogosphere because some of the banks that were processing their card transactions through CardSystems (which was involved with one of the largest credit card breaches in history), have decided to file a lawsuit against Savvis, the organization that attested to the compliance of CardSystems, with the Visa compliance requirement called CISP (Cardholder Information Security Program). The CISP was the predecessor to someone we all know lovingly as the PCI-DSS (Payment Card Industry Data Security Standard). A little background here. CardSystems was one of the largest credit card processors in the US, and they were involved in a breach which compromised over 40 million card numbers. Savvis was the company, which certified CardSystems as compliant with the standards. Now, four years later, Merrick Bank has filed a case against Savvis, alleging that it has been negligent in certifying CardSystems. Frankly, I am not aware of  whether Savvis has been negligent or not, but blogosphere and online news portals have gone wild with the news. The Security gurus are quoting their same old lines of the inadequacy of PCI Compliance and are questioning the &#39;rigour&#39; of the standard in the protection of cardholder information.&lt;br /&gt;&lt;br /&gt;My intention with this piece is 1) To introduce the some people out there to the concepts of &quot;Reasonable Assurance&quot; and &quot;as on date&quot;; Two concepts which have been in lost in the rhetoric which several security folks have been dishing out relentlessly.  2) Drive home my point of Risk based compliance, another concept which has been dulled with wrong interpretations of the PCI Standards 3) and hope that a few organizations would actually understand the concept of PCI being risk-driven as opposed to a dull checklist, requiring their meek submissiveness.&lt;br /&gt;&lt;br /&gt;The security world has much to learn from the Financial audit and assurance world. No auditor will be able to guarantee that an organization&#39;s financial statements are free from error or misstatement. The auditor has to do everything that a prudent person in his place would do and in the end, signs off on a report which states that a &quot;reasonable assurance&quot; can be provided with respect to the financial statements. The auditor is not god, and the laws are quite aware of that and have provided for a similar treatment. Moreover, the auditor does not have to look for fraud, another basic truth in the financial audit world. The auditor must perform a risk assessment and gain an understanding of Internal control, before he performs his audit tasks. Contrast this with the security world. Information Security assurance, being nascent as it is, has not promulgated such basic truths to its practicing professionals. It still (subtly) preaches the utopian ideals of &quot;Perfect security&quot; Furthermore, PCI as a standard still has a very hazy understanding of what assurance the QSA actually provides. Is it &quot;Reasonable Assurance&quot; or is it a guarantee, because if it is a guarantee, then QSAs should pack their bags and quit the business, because that is impossible to provide. When it comes to reasonable assurance, the only defense that an auditor should provide in his alleged negligence, is his working papers and evidence. So my advice to people who are QSAs, please keep your workpapers and evidence in perfect auditor, they are your only saving grace tomorrow when fingers are pointed at you.&lt;br /&gt;&lt;br /&gt;Another important concept which people usually miss out with PCI Compliance is the &quot;as on date&quot; concept. When an assessor certifies an organization for PCI, the certification is done as on date and not for the &quot;period ending&quot;. I have seen several companies take the proverbial snooze after their PCI Compliance. 8/10 organizations I have seen have serious issues with their applications, or their network configurations or their log management and review. They would have slipped into non-compliance several times during the year and would have remained so till the the recertification for PCI Compliance. An assessor cannot be held responsible for the negligent organization on a future date, unless he has wrongfully or negligently assessed the misgiving as compliant as on the date of certification.  I would like to add, at this juncture that I am not aware of whether Savvis was actually negligent or not. Its negligence can only be established once its made to produce evidence of its assessment and its work papers in front of a court. My advise to assessors is to go ahead and fail organizations which have not demonstrated compliance throughout the year.&lt;br /&gt;&lt;br /&gt;When it comes to Risk based compliance, my views have already been &lt;a href=&quot;http://citadelnotes.blogspot.com/2009/03/devils-advocate-compliance-vs-security.html&quot;&gt;aired&lt;/a&gt;, but I would like reiterate some practical angles to the same. Several clients ask me, &quot;Where does it say that this has to be done in the PCI Standards?&quot; The greatest advantage of the PCI Standards is also its weakest point. Its clarity. Several organizations interpret PCI to be a checklist requirement set which they need to fulfill and be done with. The PCI has acquired a reputation of being a standard which prescribes exaclty what to do and how to do it and that it is inflexible in its approach. True, it is specific, which is why, when a recommendation outside its realm, but very much in the realm of specific risk is given, it is quickly shot down by an organization as not being specific in the requirement. I have several (often heated) arguments with clients who ask me  questions like,  &quot;Where does PCI say that Internet access to these partiular set of users should be blocked?&quot;, My reply to them is that PCI is a baseline set of controls to be applied to any environment storing, processing or transmitting cardholder information. For such specific requirements, a risk assessment is in order, which narrows down certain risks which are specific to the environment. If the risk of individuals having access to cardholder information as well as the Internet (where cardholder information can be sent over email or over the internet in any way) is high, then it is only prudent that you mitigate the risk and not let it become your Achilles Heel. My advice to organizations. Dont look at PCI as a checklist for truly being secure. Treat PCI as a baseline and add to it controls for the risks which are specific to your environment.&lt;br /&gt;&lt;br /&gt;I would like to conclude by stating this. PCI Compliance, like anything else in Information security, is at its growing phase. There are bound to be a few teething problems with respect to the standard and its expectations. An organization intent on pursuing PCI Compliance should not be misguided by the pure view of the 12 requirements of PCI, but to understand the risks before going into requirements.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/4107127577899704490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/4107127577899704490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/4107127577899704490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/4107127577899704490'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/pci-compliance-hazards-of-dull-clarity.html' title='PCI Compliance: Hazards of the &quot;Dull-Clarity&quot; effect'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-3463840612042287005</id><published>2009-06-07T14:51:00.002+05:30</published><updated>2009-06-07T14:59:40.078+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="owasp"/><title type='text'>OWASP Membership</title><content type='html'>I became a member in the OWASP (Open Web Application Security Project) today. I am glad to support the great initiative for Web Application Security, which has been taken by OWASP.&lt;br /&gt;&lt;br /&gt;For all reading this, please become OWASP members, it is a great initiative, which is completely free. We should do all we can to support it. It costs just $50 for the Individual membership for a year.&lt;br /&gt;&lt;br /&gt;Please &lt;a href=&quot;http://www.owasp.org/index.php/Membership&quot;&gt;join up and make a difference&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt; &lt;blockquote&gt;&lt;/blockquote&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/3463840612042287005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/3463840612042287005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3463840612042287005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3463840612042287005'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/owasp-membership.html' title='OWASP Membership'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-433802933478984393</id><published>2009-06-07T14:33:00.002+05:30</published><updated>2009-06-07T14:51:03.322+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="owasp"/><title type='text'>OWASP Bangalore Chapter Meet: 7th June 2009</title><content type='html'>It was the first meeting of the OWASP Bangalore Chapter that I was attending. The meeting was scheduled at 9am at the India Coffee House on Church Street in Bangalore. Although, the location was not the most suitable, especially keeping in mind that that presentations on App Sec and other Info Sec related issues would be part of the meeting. Nevertheless, it was nice seeing some energy from this chapter.&lt;br /&gt;&lt;br /&gt;Rajiv Vishwa&#39;s was the only presentation on using Firefox as the ultimate App Sec assessment tool. Rajiv demonstrated the use of several Mozilla Addons like Tamper Data, XSS-Me, SQL Inject-me demoed over Webgoat to a small group of dedicated OWASPers in Bangalore. It was an interesting presentation, which highlighted the fact, that there are several tools for performing AppSec assessments and a pen-tester would never really have to leave the comfort of the browser to perform security testing for applications. Mozilla provides several other addons like Firebug, FoxyProxy, etc, which allow the easy assessment of web applications. Although Rajiv had to leave early, I took over and we discussed talked more AppSec. I stressed on the use of exploit frameworks like Metasploit for Pentests and also discussed how Application development needs to be given the impetus, it so badly deserves from the security standpoint. We signed off on a positive note.&lt;br /&gt;&lt;br /&gt;The Bangalore Chapter has some great energy going but needs a lot more to live up to the reputation of being the OWASP Chapter in the Silicon Valley of India. It would be great to see more Bangaloreans interested in AppSec and InfoSec attend the Chapter meets and play an active role in the development of this community. I will try and get in touch with the ISACA Chapter in Bangalore for some joint meetings and meeting space. Hopefully, things should go well on that front. I would request anyone part of the OWASP Bangalore Mailing list to actively participate and probably initiate some action on the location issue for the chapter. There is a nice quote which I would like to share with all of you, &quot;I ask not for lighter burden, but for stronger shoulders&quot;.&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/433802933478984393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/433802933478984393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/433802933478984393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/433802933478984393'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/owasp-bangalore-chapter-meet-7th-june.html' title='OWASP Bangalore Chapter Meet: 7th June 2009'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-5739591830703677201</id><published>2009-06-06T14:59:00.008+05:30</published><updated>2009-07-20T07:39:49.120+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="bot"/><category scheme="http://www.blogger.com/atom/ns#" term="breach"/><category scheme="http://www.blogger.com/atom/ns#" term="gumblar"/><title type='text'>My brush with the Gumblar worm</title><content type='html'>Some of you might have heard of the new worm out there known as the &lt;span style=&quot;font-weight: bold;&quot;&gt;Gumblar&lt;/span&gt; worm or the &lt;span style=&quot;font-weight: bold;&quot;&gt;gumblar.cn&lt;/span&gt; worm. It is a worm which has been spreading rampantly across the internet. This worm has become the scourge of the internet after the conficker worm. The Gumblar worm has two ugly sides to it, both of which I have been exposed to.&lt;br /&gt;&lt;br /&gt;This was way back in March, when we were performing a company&#39;s website assessment. The company had outsourced their website development activity to a organization that designs websites. The company had run into a few security issues including Directory traversal vulnerabilities and weak passwords which the web design company had caused. Once the website was up, I opened up the page to see my Avast Anti-virus light up like a Christmas tree, with a malware alert for a &quot;JS:Redirect&quot; worm. Needless to say upon exploring the source in the php and html files, I found that a large piece of javascript code, which had no apparent business being on the page, was there. It was obfuscated code, which obviously caused the worm to propogate. The Javascript code for Gumblar is given below:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;I have removed the Gumblar worm code as some AV apps were throwing up alerts from their content filtering engines. Please check elsewhere for a copy of the code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The gumblar worm infects the PC when the PC opens up the website which is infected the malicious javascript.&lt;br /&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 229px; height: 212px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHsFP8djotdQ0myTr2vENkI-9ZdsHk4_dH47j663RccLgBpHe1BVmH_brWxApRo5CgMABHS0Zel-gN0UwM7Mk7ryBwgVmT4kLSHJFS8hd2keZQ47qtb_9hfICpqXJvPKH4bIunbYKOgtQ/s320/gumblar+worm.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5344162727705267714&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The execution of the malicious code results in a backdoor being installed which attaches itself to Internet Explorer and also manipulates Google searches. Furthermore the worm is also known to disable anti-virus software, install fake av applications and also sends out spam. This is the one facet of the Gumblar worm. The other facet of the Gumblar worm, is worse and is extremely worrisome for a security professional. Gumblar also steals FTP credentials and appends itself to pages hosted in the webserver, thereby wreaking havoc to a webserver. This means to say that Hosting providers and webservers hosted by organizations may well have already been seriously compromised. FTP credentials have been stolen several webpages hosted in webservers all ovetr the world have been affected by the gumblar worm. The number of attacks over the last week have grown by 188% and counting and has accounted for over 42% of the malware detected all over the world. The number of infected websites has jumped from 800 to over 3000 in a matter of a few weeks.&lt;br /&gt;&lt;br /&gt;As you can see, the gumblar botnet really goes two different types of systems. One it goes after PCs, where the PC is infected and the Google searches, Internet Explorer and the vulnerabilities in Adobe Acrobat are exploited. The other system is the Webserver, where it goes after FTP passwords and then appends the code onto all the web pages in the webserver. I first experienced this worm in March of this year and the worm has now started surfacing in all its glory. So, for all of you, here are some tips to stay safe and keep your website safe:&lt;br /&gt;1. &lt;span style=&quot;font-weight: bold;&quot;&gt;Latest AV Definitions:&lt;/span&gt; The biggest issue has been that Antivirus vendors except, I think, Avast and Kaspersky have not woken up to this issue till recently. Please make sure that your AV definitions are up and functional against Gumblar&#39;s many variants.&lt;br /&gt;2. &lt;span style=&quot;font-weight: bold;&quot;&gt;FTP Credentials:&lt;/span&gt; This is a good time to run a thorough manual and automated scan of the webserver and change the FTP credentials for all users in the system. It would also make sense for organizations hosting their web content with hosting providers to talk to them and see how their dealing with the situation. Also, please make sure that the FTP passwords are stored securely and that there is adequate encryption or hashing which is used to protect the same.&lt;br /&gt;3. &lt;span style=&quot;font-weight: bold;&quot;&gt;NoScript:&lt;/span&gt; For ordinary users out there, please use NoScript with Mozilla Firefox, it goes the distance in protecting you from the malicious javascript in websites against executing and infecting your PC.&lt;br /&gt;4. &lt;span style=&quot;font-weight: bold;&quot;&gt;Hosting and Web Design organizations:&lt;/span&gt; Please make sure that your hosting providers also take the same precautionary measures. In case you are having your website being designed by others, please make sure you test it in a staging environment before deploying it over the Internet. You might be aiding in the propogation of the worm.&lt;br /&gt;5. &lt;span style=&quot;font-weight: bold;&quot;&gt;IPS signatures:&lt;/span&gt; I already know for a fact that ISS Proventia has signatures released for the Gumblar worm. I am sure others would have also done so. Please keep the IPS updated for the Gumblar sigs.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/5739591830703677201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/5739591830703677201' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5739591830703677201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5739591830703677201'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/my-brush-with-gumblar-worm.html' title='My brush with the Gumblar worm'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHsFP8djotdQ0myTr2vENkI-9ZdsHk4_dH47j663RccLgBpHe1BVmH_brWxApRo5CgMABHS0Zel-gN0UwM7Mk7ryBwgVmT4kLSHJFS8hd2keZQ47qtb_9hfICpqXJvPKH4bIunbYKOgtQ/s72-c/gumblar+worm.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-1656451870369709537</id><published>2009-06-03T03:48:00.006+05:30</published><updated>2009-06-03T05:40:46.266+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="compliance"/><category scheme="http://www.blogger.com/atom/ns#" term="risk"/><category scheme="http://www.blogger.com/atom/ns#" term="sox"/><title type='text'>Why doesn&#39;t anyone pull their security SOx up?</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;This is a question, which has been raging in my mind for a while now. It has been something, which I see a great scope for improvement for and something that is currently, very rarely, if ever, followed.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Prologue&lt;/span&gt;&lt;br /&gt;First, a prologue to the entire story. I am sure all of you know the Sarbanes Oxley Standard, popularly known as SOx. It is one of the most important compliance requirements of publicly listed companies in the US. It is governed by the PCAOB (Public Company Accounting Oversight Board), which is an independent oversight body for SOx. SOx arrived in the wake of several scams such as Enron and WorldCom. These scams rocked the business world and caused a great deal of embarassment for corporate America. All these scams had something in common; they had cooked the books (misstated financials) and this syndrome percolated to the very top, including the CEOs and CFOs of some of these organizations.&lt;br /&gt;&lt;br /&gt;Enter SOx. SOx was the brainchild of two US senators whose last names have been given to the standard. Their take on this was that shareholders and the general public need to be able to reaffirm their faith in an organization&#39;s financial statements. This involved, first of all, establishing accountability from the top management (as they had been intricately involved in the scams previously and had the most reason to misstate financials) and providing auditors with the teeth to ensure that the organization&#39;s control environment was adequate to ensure the &quot;true and fair&quot; view of financial statements. Therefore, as one can clearly see, SOx is primarily concerned with the integrity of the Financial Statements and the environment in which they are processed and created. The auditor assessing an entity for SOx needs to ensure that the environment in which Financials are prepared is secure and more importantly, an environment with controls which can be relied on to ensure the integrity of information and lastly make sure that the Financials are not misstated. This involves a process many of us have heard of. Identify scope, perform Risk Assessment, Document controls, Test controls, identify gaps, continuous improvement.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Conundrum&lt;/span&gt;&lt;br /&gt;Our look at SOx was fine and dandy, but all that is not new, right? All of you have heard it time and time again. Especially those of you who work for large consulting firms have seen SOx being thrown around in a conversation a lot of times. I have been interacting lately, with a lot of the auditors who assess their clients for SOx compliance. My question to them usually is, &quot;How do you assess the integrity of the environment, which is involved in the creation and processing of financial information?&quot;. Their answer to that is something like this, &quot;We usually ask a few questions about their IT policies and procedures and establish whether we can rely on the financial statements. Our worry is more on the business processes&quot;.&lt;br /&gt;&lt;br /&gt;When I say &quot;financial information&quot;, it means information from all quarters which is leading to the preparation of financial statements. It means, any system which is involved in  the initiation, authorization, recording, processing and reporting of financial information. So you can imagine that this is.....a lot. An ERP system which is part of the organization would be a part of it, in case of an e-commerce company, for instance, the e-commerce  accounting and inventory management modules of the applications would probably need to be a part of the SOx assessment.&lt;br /&gt;&lt;br /&gt;Let me give you, quite a real scenario and then explain the matter. What if an ERP application is vulnerable to an Application vulnerability like XSS or SQL Injection where an insider might be able to hijack sessions, gain access to the privileged information and make unauthorized changes which are not logged, not checked in any way. If an employee were able to submit an expense statement and hijack his manager&#39;s session and authorize the expense statement, with no logging. Would I, as an auditor rely on the financial statements for a SOx environment, knowing that the application could be compromised and the financials could potentially be modified or in some cases even destroyed, and more so, without being checked (no logging). Taking the business process side of things, if the same person could could initiate an expense statement and authorize it himself as part of a business process, that would be looked upon as a serious hole in the internal control of an organization and the assessor would have no doubt that it was a significant deficiency. Let us take another instance, if a business unit of a corporation were vulnerable to several network issues, let us assume that they do not have proper firewalls rules, restricting specific IP and port sets, that  default passwords still exist on their network devices and servers. Let us assume that a supplier breaks into this network and overstates the value of the organization&#39;s account payables. Would, I as an auditor sign off on that entity&#39;s financials, knowing that the entity can be easily breached and integrity of data can be adversely affected?&lt;br /&gt;&lt;br /&gt;This is just from the auditor&#39;s standpoint. A company would be held equally responsible for its negligence to IT security (as IT is a key driver in financial statements) and its reputation and business value would be seriously impacted.&lt;br /&gt;&lt;br /&gt;Unfortunately, the scenarios I gave you have real life significance and are quite real in the corporate environment and I believe that they are largely going unchecked, because the auditors for SOx are usually not capable of assessing IT controls and are under the false belief that SOx only applies to business process and related internal control, whereas the real scenario is quite different. In today&#39;s world of highly connected enterprises, IT is a huge area of consideration. IT controls, in essence form an integral part of the entity&#39;s internal control and can significantly impact the way financial statements are initiated, authorized, processed and recorded.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The Solution&lt;/span&gt;&lt;br /&gt;My advice to the SOx assessors and auditors of the world is this. IT security is an important consideration for any entity today. SOx does not absolve you of the duty of performing basic risk assessment and control testing (like you would do for business process with assessment of internal control to ensure that financial statements may be relied upon). Integrity of information can be made or broken by IT security in today&#39;s digital age. SOx must be treated like any other security compliance which requires scoping of processes and applications affecting financial information, performing Risk Assessment, testing controls of the processes or applications and gap analysis. As you can see, this clearly involves issues like Firewall management, Application and Network security testing, Secure Application development, deployment and configuration, Network Change Management, Logging, Integrity Monitoring, Patching, AV and all the other IT security requirements which one can formulate through effective risk assessment and best practices. Bottom line. SOx is not just a financial standard. It has a serious impact in an IT environment and from an IT standpoint.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/1656451870369709537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/1656451870369709537' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1656451870369709537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1656451870369709537'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/06/why-doesnt-anyone-pull-their-security.html' title='Why doesn&#39;t anyone pull their security SOx up?'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-5378384256248948482</id><published>2009-05-27T21:34:00.008+05:30</published><updated>2009-05-27T21:47:58.337+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="xss"/><title type='text'>Rediff XSS, the redux</title><content type='html'>It seems like my praise for Rediff was too quick. I had not tested out the Rediff search site exhaustively. This was brought to my attention by an OWASP Delhi member. Apparently, our friends at Rediff have not &quot;fixed&quot; the XSS Vulnerability in the search area. My attempts at performing a rudimentary XSS were thwarted, but I hadnt explored the possibility of encoding my payload using Javascript escape(), so this time, I tried and came up with this:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRAv3LgI5BUGE4-ASkKtkY0wa33iK8yZZCMqchee9coRWtgoMAQbu9NiImLwJthDCAYALD4YK9LeY7RfbdQxSYV1tCX0lJDyXg2_P-HePNFvHlP22VYVq_ZLyS9qRk6NTwC0_H5MRilYY/s1600-h/RediffReXSS.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 209px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRAv3LgI5BUGE4-ASkKtkY0wa33iK8yZZCMqchee9coRWtgoMAQbu9NiImLwJthDCAYALD4YK9LeY7RfbdQxSYV1tCX0lJDyXg2_P-HePNFvHlP22VYVq_ZLyS9qRk6NTwC0_H5MRilYY/s400/RediffReXSS.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340538333136813938&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Apparently, the folks at Rediff have performed some very poor input validation and have probably only filtered the &quot;&lt;&quot; and &quot;&gt;&quot;.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/5378384256248948482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/5378384256248948482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5378384256248948482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/5378384256248948482'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/rediff-xss-redux.html' title='Rediff XSS, the redux'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRAv3LgI5BUGE4-ASkKtkY0wa33iK8yZZCMqchee9coRWtgoMAQbu9NiImLwJthDCAYALD4YK9LeY7RfbdQxSYV1tCX0lJDyXg2_P-HePNFvHlP22VYVq_ZLyS9qRk6NTwC0_H5MRilYY/s72-c/RediffReXSS.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-6995325925061088771</id><published>2009-05-27T19:37:00.004+05:30</published><updated>2009-05-27T19:51:11.422+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="xss"/><title type='text'>Rediff Redressal.....</title><content type='html'>My good deed was done for the week. Everytime one does something good for something or someone, one tends to feel good about it, sometimes even gloat about it.&lt;br /&gt;&lt;br /&gt;I was surfing the Rediff Site yesterday, yes, the same one which I had eviscerated &lt;a href=&quot;http://citadelnotes.blogspot.com/2009/05/rediff-search-engine-reflected-xss.html&quot;&gt;previously &lt;/a&gt;and entered the vile xss script and expected another tirade of scripts to rain down, but to my surprise discovered that it had been fixed. No more output encoding issues and the malicious payload seemed to have been encoded to prevent malicious XSS payload&lt;br /&gt;&lt;br /&gt;Here is the screenshot.&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFG8EFWbEPyApAKALEgfPbciYaJmj3K5GbGCORiBuPZsY6vcdKPS9lFS9W8ZE10JwZ6WoB8gcsmH3pPIMMmZCzeXE_HBFf0ZHA29YZ6_vnXcjelGrRK7lpqRlmnoM3e7DlJ3J3_X7viBY/s1600-h/fixedRediff.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 235px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFG8EFWbEPyApAKALEgfPbciYaJmj3K5GbGCORiBuPZsY6vcdKPS9lFS9W8ZE10JwZ6WoB8gcsmH3pPIMMmZCzeXE_HBFf0ZHA29YZ6_vnXcjelGrRK7lpqRlmnoM3e7DlJ3J3_X7viBY/s320/fixedRediff.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340507749071312770&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But unfortunately, Rediff has not fixed a small pothole, whereas a large patch of road still remains undone. Several other Rediff sites (Rediff Products) are still vulnerable to XSS.&lt;br /&gt;&lt;br /&gt;Screenshot:&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ2Y2-wilLArQ67yt_cNUMl2piYqbVTpg5FN8N_vLeioyYB8_zyi3It2rdG7txLp4Lsw-fwe3j2jtAhOM3lO1HWuWHn85N7OgjLtQfDPuWksiBwMvpZvpvo0MrRiEe_CumK9KlLWo3X4U/s1600-h/rediffproduct.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 147px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ2Y2-wilLArQ67yt_cNUMl2piYqbVTpg5FN8N_vLeioyYB8_zyi3It2rdG7txLp4Lsw-fwe3j2jtAhOM3lO1HWuWHn85N7OgjLtQfDPuWksiBwMvpZvpvo0MrRiEe_CumK9KlLWo3X4U/s320/rediffproduct.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340508270643065362&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/6995325925061088771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/6995325925061088771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/6995325925061088771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/6995325925061088771'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/rediff-redressal.html' title='Rediff Redressal.....'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFG8EFWbEPyApAKALEgfPbciYaJmj3K5GbGCORiBuPZsY6vcdKPS9lFS9W8ZE10JwZ6WoB8gcsmH3pPIMMmZCzeXE_HBFf0ZHA29YZ6_vnXcjelGrRK7lpqRlmnoM3e7DlJ3J3_X7viBY/s72-c/fixedRediff.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-3281783284853576669</id><published>2009-05-19T16:44:00.006+05:30</published><updated>2010-04-20T16:41:45.084+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="owasp"/><category scheme="http://www.blogger.com/atom/ns#" term="risk"/><category scheme="http://www.blogger.com/atom/ns#" term="sdlc"/><title type='text'>OWASP Chennai Meet - 17 May 2009</title><content type='html'>The OWASP Chennai Chapter meet was held on the 17th of May 2009 at Chennai. It was very nice to see some dynamism from the OWASP Community in India. I am happy to see great steps being taken by the Chennai OWASP Team (Chandrasekar and the rest) in taking initiative.&lt;br /&gt;&lt;br /&gt;The talks scheduled for the day were on Globalization and its role in Information Security and Mobile Crimes&lt;br /&gt;&lt;br /&gt;I was invited to speak and I spoke on Application Security Risk, in a talk entitled &quot;Application Security Risk - The Full Circle&quot;&lt;br /&gt;&lt;br /&gt;Here&#39;s the presentation:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;width:425px&quot; id=&quot;__ss_3787814&quot;&gt;&lt;strong style=&quot;display:block;margin:12px 0 4px&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/abhaybhargav/owasp-chennai-talk-application-security-risk-the-full-circle&quot; title=&quot;OWASP Chennai Talk - Application Security Risk - The Full Circle&quot;&gt;OWASP Chennai Talk - Application Security Risk - The Full Circle&lt;/a&gt;&lt;/strong&gt;&lt;object width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=owaspchennai-appsecrisk-thefullcircle-100420060920-phpapp01&amp;stripped_title=owasp-chennai-talk-application-security-risk-the-full-circle&quot; /&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;&lt;embed src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=owaspchennai-appsecrisk-thefullcircle-100420060920-phpapp01&amp;stripped_title=owasp-chennai-talk-application-security-risk-the-full-circle&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style=&quot;padding:5px 0 12px&quot;&gt;View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/abhaybhargav&quot;&gt;abhaybhargav&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This presentation highlights the importance of Application Security Risk and how to perform effective and comprehensive Risk Assessments for Web Applications to provide for a robust protection strategy. It highlights how an effective Application Security Risk Assessment can result in the development of a secure SDLC, feed the Security Testing area with threat modeling and the development of &quot;Abuse Cases&quot; and become the foundation for a strong and secure web application.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/3281783284853576669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/3281783284853576669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3281783284853576669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/3281783284853576669'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/owasp-chennai-meet-17-may-2009.html' title='OWASP Chennai Meet - 17 May 2009'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-8440153383976944530</id><published>2009-05-18T13:42:00.015+05:30</published><updated>2009-05-27T19:31:17.971+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><category scheme="http://www.blogger.com/atom/ns#" term="recon"/><title type='text'>Google Hacking with Webex - Cool Recon tool</title><content type='html'>The idea for this actually sprang from a webex conference I was involved in recently. Before what turned out to be an eventually boring conference, with esoteric Powerpoint slides being shoved into my screen. I received an email from the organization that was hosting the meeting. Upon clicking the link to join the meeting, I was directed to the organization&#39;s WebEx Enterprise Site page. where I signed in using a Conference ID and a meeting password. Simple enough.&lt;br /&gt;&lt;br /&gt;After the odious meeting I attended, as I signed out of the conference, a feedback form was thrown at me asking me how the meeting went, which I duly ignored and went about my business. This idea actually sprung in my head when I was sitting through the conference and thought about using WebEx to perform some initial reconnaissance activity for a Pen test. I noticed, before signing in that the organization had planned some more sales meetings with what looked like their prospective customers, which intrigued me.&lt;br /&gt;&lt;br /&gt;I then put my Google Hacking Hat on and wrote a simple Google query &lt;span style=&quot;font-style: italic;&quot;&gt;intitle:&quot;WebEx Enterprise Site&quot;&lt;/span&gt; based on the title I had seen in the organization&#39;s WebEx site. Not surprisingly, several organization&#39;s WebEx links popped up in the Google Search results. As I started exploring around, I noticed some very confidential information up for grabs in several sites. Not only could I gain some valuable information about some sales meetings and internal group meetings they had lined up with their prospective clients or  already-existing clients, not to mention internal organization members, but also some of them had recorded their conferences and these recordings were available for me to view.&lt;br /&gt;&lt;br /&gt;While this is not a &quot;Security Vulnerability&quot; in the traditional, technological sense. It is a way for competitors to get some valuable info about your potential clients or your new offerings to the market (some internal meetings had the names of the products or projects these organizations were currently working on). This, is also an excellent way to perform an all-round Penetration Tests. While the ordinary Pen-test involves performing garden variety Network and App layer exercises, these methods can add significant value to a pen test and provide a bit of the old &quot;Out of the Box&quot; information.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/8440153383976944530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/8440153383976944530' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/8440153383976944530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/8440153383976944530'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/google-hacking-with-webex-cool-recon.html' title='Google Hacking with Webex - Cool Recon tool'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-6404890069511278268</id><published>2009-05-14T06:46:00.002+05:30</published><updated>2009-05-14T06:57:42.695+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="xss"/><title type='text'>Who&#39;s got the last laugh now. The Blogger XSS Vulnerability</title><content type='html'>I guess I was asking for punishment. I go looking for Web App Vulnerabilities all over the world, and sure as hell, this is what I will get.&lt;br /&gt;&lt;br /&gt;I discovered that once I posted my Rediff Search Engine XSS Vulnerability on Blogger, I noticed something I had seen all too often, the Javascript alert with the rudimentary XSS, and this time, it was on my blog. I was not to happy about it to say the least. I thought &quot;Some Smart Alec must have written up a comment causing the XSS alert, but I was quite sure that couldnt happen because Blogger had some sort of a filter on the comments. I then realized that the XSS alerts were popping up because of the XSS vectors in my Rediff post.&lt;br /&gt;&lt;br /&gt;Surprisingly Blogger does not do any kind of validation or output encoding to prevent against these attacks in the posts section. So the blog-author can potentially be serving up XSS on his/her blog and potentially be exposing all the visitor&#39;s accounts with that, and since Blogger is a Google service, my session credentials are good for any Google Website. Mail, docs, everything.&lt;br /&gt;&lt;br /&gt;But its ok now folks, the bitter pill of my own medicine has been swallowed................ or has it?&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.fullyillustrated.com/_include/images/devil.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 582px; height: 348px;&quot; src=&quot;http://www.fullyillustrated.com/_include/images/devil.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/6404890069511278268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/6404890069511278268' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/6404890069511278268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/6404890069511278268'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/whos-got-last-laugh-now-blogger-xss.html' title='Who&#39;s got the last laugh now. The Blogger XSS Vulnerability'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-627383044183713784</id><published>2009-05-13T19:35:00.009+05:30</published><updated>2009-05-14T06:42:36.358+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="xss"/><title type='text'>Rediff Search Engine XSS Vulnerability</title><content type='html'>This was something which was quite shocking as the series of events unfolded. I was researching up on output encoding methods to prevent against Cross Site Scripting and I experienced the full blown effect of the evils of bad/no output encoding and of course, no Input validation.&lt;br /&gt;&lt;br /&gt;This was something I discovered on Rediff.com&#39;s search engine. When I typed in &quot;search:followed by the Javascript alert, I received the infamous Javascript alert with simple &#39;XSS&#39; written all over it. I was a little perturbed, because my NoScript said that it blocked a cross site scripting attack against taking place, but why was the alert still popping up? Then I was sure that the site was vulnerable to cross site scripting and decided to write about it. When I clicked the &quot;Ok&quot; on the Javascript alert box, another one popped up. This was definitely odd, I hadnt configured the alert for more than once. Then I clicked OK once more to find that there were more Javascript alerts to arrive with things like &quot;XSS&quot;, session cookie details, &quot;try_xss&quot; and other alerts which I hadn&#39;t written. I then realized that rediff&#39;s search engine is scouring the web for pages with the XSS variants was executing that script on the rediff site, which was, beyond imagination and quite horrible. As I was clicking &quot;OK&quot; on the Javascript alert boxes new search results kept showing up and new alerts kept popping. The alerts only stopped with the end of the page.&lt;br /&gt;&lt;br /&gt;Not only is Rediff vulnerable to XSS, Rediff has failed to encode their outputs from the search engine and is serving the xss, fresh from other websites, which have ironically, encoded their outputs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I tried this out on a Google page, but it didn&#39;t work .&lt;br /&gt;&lt;br /&gt;Anyone want to play around with the Search string try and enter your regular XSS reflected XSS tags check it out.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; color: rgb(255, 0, 0);&quot;&gt;I have informed Rediff about the vulnerability, hopefully, they should rectify it soon.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are the series of screenshots of the xss alerts and th&lt;a style=&quot;&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsD3sSgo7lbI25CaTTMA_q9hlS1k8tnpP2Wi3m51ERiXR5d85QIOOitcGncHaRubnW9865gygJd2ACMud-N-wPdnRyeFeG3aNkaySQJqP4Uo4Eo6uWX5B2JxB7hMccOwMvnnvbjHgCZKg/s1600-h/rediffHackSeries1PNG.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 153px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsD3sSgo7lbI25CaTTMA_q9hlS1k8tnpP2Wi3m51ERiXR5d85QIOOitcGncHaRubnW9865gygJd2ACMud-N-wPdnRyeFeG3aNkaySQJqP4Uo4Eo6uWX5B2JxB7hMccOwMvnnvbjHgCZKg/s320/rediffHackSeries1PNG.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5335318369204712402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;e search results expanding each time.&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvAGnLnvBl3uG5XcOc-Klc-4C4BTrrtCYF3JJ-kXN7km104eHl5SrfKXM3HAvqcFZF3c8h8OK2jld6f3N1GK4gMfFLma0ZrRcInkkPNQ6vQSlt_ccUW6CT4lxsAewYe2dM4RrJw8VVDCo/s1600-h/rediffHackSeries3PNG.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvAGnLnvBl3uG5XcOc-Klc-4C4BTrrtCYF3JJ-kXN7km104eHl5SrfKXM3HAvqcFZF3c8h8OK2jld6f3N1GK4gMfFLma0ZrRcInkkPNQ6vQSlt_ccUW6CT4lxsAewYe2dM4RrJw8VVDCo/s320/rediffHackSeries3PNG.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5335318377379119458&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq-P1T1BUvmoFKg1KxetkJ8tUztQl6c1Mn_K0R97eHkThaujN1O-4e9QN-DHQvoI-z-pnKRNXNsGvCd-BqmraBcdnoCzoe5vDgpb0ZKa7Z_Y5kT7uGf_T9gYVymy4g_if1eWcFK2vHtRw/s1600-h/rediffHackSeries5PNG.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq-P1T1BUvmoFKg1KxetkJ8tUztQl6c1Mn_K0R97eHkThaujN1O-4e9QN-DHQvoI-z-pnKRNXNsGvCd-BqmraBcdnoCzoe5vDgpb0ZKa7Z_Y5kT7uGf_T9gYVymy4g_if1eWcFK2vHtRw/s320/rediffHackSeries5PNG.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5335318378174084194&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihJEKtEKUxUSzMwiLk1B-_gfE3yQvdaenUXUd85Vujl_UpXwKi1WrWNGjDzhpTv5KrCTOIYY1vIahpUBR7VmRd5H61NGO9iPpPY8xVBfGE_9Y0rLCtkTNxvMWRlPYemMFNgpTPfjEg1lo/s1600-h/rediffHackSeries4PNG.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihJEKtEKUxUSzMwiLk1B-_gfE3yQvdaenUXUd85Vujl_UpXwKi1WrWNGjDzhpTv5KrCTOIYY1vIahpUBR7VmRd5H61NGO9iPpPY8xVBfGE_9Y0rLCtkTNxvMWRlPYemMFNgpTPfjEg1lo/s320/rediffHackSeries4PNG.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5335318376956112450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-96BnILhKX2OyKFOHmqJn4we-7xJnbXUPvqTnakifGiaVcOt6J3LkKlWQMPG9lJINGLMAqYZBCTANELylHU6h3mmPRdIVjq0rSx8pPdORCkB9eKpv9zPiCAWF1qBZ1mxENGWowCaD-A0/s1600-h/rediffHackSeries2PNG.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-96BnILhKX2OyKFOHmqJn4we-7xJnbXUPvqTnakifGiaVcOt6J3LkKlWQMPG9lJINGLMAqYZBCTANELylHU6h3mmPRdIVjq0rSx8pPdORCkB9eKpv9zPiCAWF1qBZ1mxENGWowCaD-A0/s320/rediffHackSeries2PNG.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5335318372106671010&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/followed&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/627383044183713784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/627383044183713784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/627383044183713784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/627383044183713784'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/rediff-search-engine-reflected-xss.html' title='Rediff Search Engine XSS Vulnerability'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsD3sSgo7lbI25CaTTMA_q9hlS1k8tnpP2Wi3m51ERiXR5d85QIOOitcGncHaRubnW9865gygJd2ACMud-N-wPdnRyeFeG3aNkaySQJqP4Uo4Eo6uWX5B2JxB7hMccOwMvnnvbjHgCZKg/s72-c/rediffHackSeries1PNG.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-1507130732065177535</id><published>2009-05-12T07:13:00.004+05:30</published><updated>2009-06-03T06:00:30.955+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="breach"/><title type='text'>The Berkeley Data Theft</title><content type='html'>I just received word that the University of Berkeley has had a major security incident.&lt;br /&gt;&lt;br /&gt;The Campus Health Services Center databases have been hacked (supposedly by foreign hackers) and over 160,000 records of PII (Personally Identifiable Information) have been exposed and may have been stolen.&lt;br /&gt;&lt;br /&gt;According to the university, the databases contained individuals&#39; Social Security numbers, health insurance information and non-treatment medical information, such as immunization records and names of some of the physicians they may have seen for diagnoses or treatment.&lt;br /&gt;&lt;br /&gt;It is believed that the breach began sometime in the month of October 2008 and continued till April 9th 2009, when the campus administrators discovered the breach. The University has said &quot;The attackers accessed a public Web  site and subsequently bypassed additional secured databases stored on  the same server.&quot;&lt;br /&gt;&lt;br /&gt;This seems like another Web Application attack, where the attackers have been able to gain access to Databases using the Web applications and cause the breach. It might be a case of SQL injection coupled with various other types of attacks.&lt;br /&gt;&lt;br /&gt;This is a &quot;wake up call&quot; for universities all around the world. Universities are perhaps the largest repositories of data (student data) and they have access to sensitive information about the students. Such breaches can cause massive instances of identity theft.&lt;br /&gt;&lt;br /&gt;I find this even more alarming thinking about the Indian state of affairs. India&#39;s universities have recently taken to computerization and the number of students in Indian universities is a mind-boggling number of something like 8-10 million. Such security incidents put all that data at risk.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/1507130732065177535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/1507130732065177535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1507130732065177535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1507130732065177535'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/berkeley-data-theft.html' title='The Berkeley Data Theft'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-1167350325818426383</id><published>2009-05-08T19:16:00.008+05:30</published><updated>2009-05-12T07:09:17.914+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="iiwad"/><category scheme="http://www.blogger.com/atom/ns#" term="input validation"/><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><title type='text'>Incredulous Interactions with Web Application Developers: 2 of Many</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://byrdmiddle.org/outsiders/wp-content/uploads/2007/01/incredulous-pic.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 310px; height: 233px;&quot; src=&quot;http://byrdmiddle.org/outsiders/wp-content/uploads/2007/01/incredulous-pic.jpg&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s wishing that all of you have a good weekend. I left early from the office today to attend to some household duties. While I was sitting and watching TV, I came up with a concept, which resulted in this title. I interact with several application developers over the past few years and now as I steeped in AppSec, I have been interacting with a lot of Web Application Developers during my application assessments. Normally, they are a nice bunch, who are quite convinced about the authenticity of my claims of having their applications torn apart on the internet. But, everytime I discuss security, there are always this few developers who end up astounding me or completely disarming my constant efforts to bring about change in the way they think (or don&#39;t think) about Web Application Security . I thought, &quot;Why not chronicle my interactions with these people, for the benefit of the community, and for a few laughs (or atleast a smile) in the normally tense lives of security folk?&quot;,  and so, I present to you, the second in the series of &quot;Incredulous interactions with Web Application Developers&quot;. You might be wondering what happened to the first of the series. It is the first entry in this blog, but has not been grouped under this title. Anyway here it goes....&lt;br /&gt;&lt;br /&gt;It was at the end of the day, and I had almost finished assessing this application. The application was being developed by a small group of developers working for a  small company. Their product claimed to be the only one of its kind and one of their potential clients wanted the application to reviewed for security.&lt;br /&gt;&lt;br /&gt;I had reviewed the Application for over 2 days. I had spent some time interacting with the project manager and the developers, and had performed a combination of black and white-box tests on the application. The application had some serious issues, there was almost no validation and whatever little validation it had, it was on the client-side, utilizing trusty old Javascript. I knew it was a problem. The developers were quite sold when I showed them a Cross Site scripting PoC as well as a Embedded Flash injection PoC. The only problem was getting through to the Project Manager. He was not convinced, and a conversation on the following lines ensued.&lt;br /&gt;&lt;br /&gt;I used Burp proxy to perform my scripting attacks and he said this. &quot;This application is going to be used only by the Company employees. why will they want to steal this data from the company?&quot;, for which I gave him standard insider threat lecture, statistics, et all. I tried explaining to him the fact, that this application stored extremely sensitive data (which it did) and an insider would also have a clear motivation to break into the application to steal information, not to mention disgruntled employees, or other employees with malicious intent. I also explained to him the CSRF angle, where this site might be attacked by another site violating the same origin policy.&lt;br /&gt;&lt;br /&gt;He was yet unconvinced and he said, trying desperately to prove a point, &quot;I have worked for over 12 years in Software development and have developed dozens of applications, never before has a client asked me for all the security features you are asking me for, it seems that you just want to prove a point.&quot; I burst out laughing at this and told him that if he believed that his potential clients weren&#39;t concerned about security, then they wouldn&#39;t have engaged my services to perform the assessment. I also had to tell him, that the way he or anyone else has been developing web apps in the cavalier manner that they have been all these years, does not make it right. Quantity is not quality, I told him and I also informed him of the fact, that awareness has been rising in the community about the effects of web application attacks, which is the reason why, if he wants his product to remain competitive and viable in any market, he would have to do &quot;complicated things&quot; like input validation based on a whitelist of &quot;known good&quot; characters to prevent against a smorgasbord of attacks. I told him finally that it would be for the benefit of the application and the data it holds as all these measures would prevent against any untoward incidents and not result in loss of reputation for his company. The man finally backed down after that and we discussed some implementation strategies for input validation across his web app.&lt;br /&gt;&lt;br /&gt;This got me thinking, that developers have churned out several thousands of web applications which are working all over the internet and organizational intranets over the years. This was a single project manager from a single small company, who had himself been involved in the development of over 20 applications in his career. It would be quite scary to think of other developers over the years who would have developed similar applications with similar if not worse vulnerabilities.........&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/1167350325818426383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/1167350325818426383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1167350325818426383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/1167350325818426383'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/incredulous-interactions-with-web.html' title='Incredulous Interactions with Web Application Developers: 2 of Many'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-7432803248558242033</id><published>2009-05-04T06:38:00.007+05:30</published><updated>2009-05-04T07:05:58.705+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application security"/><category scheme="http://www.blogger.com/atom/ns#" term="input validation"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="pen-test"/><title type='text'>Overreliance on Javascript: Pen-tester&#39;s pet</title><content type='html'>I am sure all of you have been acquainted with the input validation situation where the developer validates all his input on the client-side using some poorly written Javascript to boot. Well, I recently experienced a new high in Javascript overreliance, and this was precious!!&lt;br /&gt;&lt;br /&gt;I came across an application which relied heavily on Role Based Access Control. The Application is an Enterprise Application which has several types of users and several different &quot;screens&quot; that each user can access, thereby restricting the user&#39;s access based on the user&#39;s role. Well, this is how a traditional access control system works.&lt;br /&gt;&lt;br /&gt;So, what would one do to ordinarily circumvent these controls? The first thing I tried was the URL route, where I scanned the app for URLs and entered these URLs to elevate my privileges. I was easily able to do this and the pages that clearly weren&#39;t meant for my user role kept appearing. When I tried to input some data and submit the form, the server threw me a big fat Javascript alert, &quot;Access Denied&quot;.&lt;br /&gt;&lt;br /&gt;Then I revoked the temporary permissions on my NoScript and the entire application fell apart. The Application so heavily relied on Javascript that the access to the links was controlled using Javascript only.&lt;br /&gt;&lt;br /&gt;The code went something like this:&lt;br /&gt;&lt;br /&gt;&lt;pre id=&quot;line1&quot;&gt;function Menu()&lt;br /&gt; {&lt;br /&gt; var UserRole=document.getElementById(&#39;userRole&#39;).value;&lt;br /&gt;&lt;br /&gt; switch(UserRole)&lt;br /&gt; {&lt;br /&gt; case &#39;elevatedPrivUser&#39;:      &lt;br /&gt;  document.getElementById(&#39;thisScreen&#39;).style.display=&#39;none&#39;; &lt;br /&gt;  break;&lt;br /&gt; case  &#39;lowerPrivUser&#39;:       &lt;br /&gt;  document.getElementById(&#39;someOtherScreen&#39;).style.display=&#39;none&#39;;&lt;br /&gt;  break;&lt;br /&gt; case &#39;evenLowerPrivUser&#39;:&lt;br /&gt;  document.getElementById(&#39;yetAnotherScreen&#39;).style.display=&#39;none&#39;;&lt;br /&gt;  break;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;As you can see here the Developer had left this brilliant bit of Javascript on each and every page. This was the basis of the Role Based Access Control System of the Application. Then I thought, surely, even if I accessed any one of these pages and tried to submit a request, the server would stonewall me and throw me out. I tried it out. Guess what?....More Javascript. Luckily, the Javascript wasnt available on plain view in that page, but clearly Javascript was the only validation which had been provided to validate user role and by disabling Javascript, I was able to pass my request over to the server which was accepted instantaneously.&lt;br /&gt;&lt;br /&gt;So, the next time I go try to test an app for elevation of privileges, I will not bother with the session hijacking or the sniffing. I will just ask my NoScript to do the job and I will check whether the developer believes that &quot;Client-side Scripting is the best!!!!&quot;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/7432803248558242033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/7432803248558242033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7432803248558242033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/7432803248558242033'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/05/overreliance-on-javascript-pen-testers.html' title='Overreliance on Javascript: Pen-tester&#39;s pet'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042057803725122487.post-819836036601984371</id><published>2009-03-13T07:16:00.000+05:30</published><updated>2009-06-03T05:40:31.125+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="breach"/><category scheme="http://www.blogger.com/atom/ns#" term="compliance"/><category scheme="http://www.blogger.com/atom/ns#" term="pci"/><category scheme="http://www.blogger.com/atom/ns#" term="risk"/><title type='text'>The Devil&#39;s Advocate: Compliance vs Security</title><content type='html'>The fires in blogosphere are ablaze with talk about the Heartland Payment Systems breach. There has been a great deal of PCI bashing, right from Bob Russo&#39;s statements to the whole issue of Compliance and Security.&lt;br /&gt;&lt;br /&gt;For those who are not aware of the HPS, or who have had their head in the ground because of the current economic meltdown, I shall recap. Heartland Payment Systems is a large Payment processor in the US. Malicious software in their payment processing network seems to have caused one of the largest breaches in history. It seems as though over a 100 million cards may have been stolen. The great gory details of the story are not known yet as forensics for this sort of thing takes quite a while.&lt;br /&gt;&lt;br /&gt;Security vs Compliance is one of the most significant things I have heard being posted all over the Internet. Everyone seems to be talking about the fact that Compliance cannot be equated to Security and that the PCI Standards are flawed in their attempt to make their industry more secure.&lt;br /&gt;&lt;br /&gt;Us security folk secretly love an incident of this magnitude. Its incidents like these which makes people sit up and take notice of security needs and this is our time to shine :) But on a more serious note, let us take stock of some important facts at this point.&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Agreed, Security != Compliance&lt;/span&gt;. I believe strongly that those who expect their plain-vanilla compliance program to do miracles for them. Compliance can never take the place of a voluntarily committed security program which comes from experience and a proactive risk approach. But, at the same time, &lt;span style=&quot;font-weight: bold;&quot;&gt;one cannot simply discount the fact that compliance is important.&lt;/span&gt; Take the case of the American Capital markets. The deregulation (lack of compliance and enforcement) did not ensure that all the Banks and large Investment houses take a &quot;Safety First&quot; stance. They continuously created their weird and arcane financial intruments, which were toxic for the economy. Until there was a Sarbanes Oxley for the Corporate world, there would be no accountability for any of the Top Management&#39;s statements and actions (case: Enron). In fact, only the stick that is accompanied with non-compliance (fines, increased transaction costs, de-listing, etc)  gets some companies adopt a security program. The carrot that comes (proactive security, better understanding of risks, threats and vulnerabilities, etc) with compliance simply does not appeal to these companies.&lt;br /&gt;In my time handling several PCI  projects, I realized that there are always a bunch of organizations which are driven towards genuinely acheieving optimum security and not just chasing a certification and there are others, who decide to &quot;dress their processes well&quot; before the auditor walks in. We need to understand that there are always going to be organizations like the latter and accept the fact that these organizations can only be driven to better security by incentivizing them in forms such as low cost of security, increased business opportunity because of enhanced security and of course, once they get hacked and lose data and reputation (and if they are still not bankrupt in the process), would try and develop a proactive, risk based approach to security. This brings me to my second point....&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;PCI = Risk-based Security Compliance. &lt;/span&gt;When I hear someone talk about PCI Compliance, I usually hear the word &quot;checklist&quot;. PCI is viewed as more of a checklist assessment and once the checklist is filled with &quot;Yes&quot;, everyone&#39;s happy. This is very very far from the truth. Companies and Security professionals who look at PCI in this light are actually getting it all wrong. PCI is nothing but Asset Based Risk Assessment, where the asset in question is Cardholder Information and the ultimate objective is the protection of Cardholder Information. Which is why Security pros need to understand the systems of interest, access paths, points and containers in which the asset is housed and devise security solutions based on the PCI Requirements. One cannot advise a small organization getting PCI Compliant to drive its entire encryption process using a HSM (Hardware Security Module) or a large processor like Heartland to use something like TrueCrypt to drive encryption. Yes, PCI is granular, PCI is very clear on most counts, but by treating PCI Compliance as a checklist assessment or a checklist compliance program, security assessors are actually saying that Compliance = Security, which brings me to my next point.&lt;br /&gt;&lt;br /&gt;In the long run, compliance ultimately becomes &quot;bastardized&quot; because of the people advocating and following it. The same thing happened for ISO-27001, which is a great standard, but eventually became mis-understood and mis-interpreted beyond recognition. I came across and ISO-27001 certification which was only done for the &quot;Security Components&quot; of a company&#39;s infrastructure (namely 2 firewalls and 2 routers, in which case the routers are not actually a  &quot;Security Component&quot;). There is nothing inherently wrong with the standard. It is just that for the sake of convenience of both the security assessor and the assessee,&lt;span style=&quot;font-weight: bold;&quot;&gt; the standards are interpreted in a way which does not take into account, the all-important aspect of Risk&lt;/span&gt; (which is unique to every organization). So, to re-iterate, when an organization is going in for PCI Compliance, it needs to determine what kind of entity it is. Is it the former type, proactive, and risk-based towards security needs, or is it like the latter, the &quot;Chasing certifications &#39;cause I need this business&quot; type. If a company actually believes that it is in the first type, then it needs to evaluate security professionals who share the same values and ensure that the professionals deliver on their promises at performing a solid evaluation of risk and then concomitant controls.&lt;br /&gt;&lt;br /&gt;In conclusion, I would like to say this. Although Compliance and Security are not necessarily the same thing, we need to appreciate the fact that compliance, when interpreted and enforced correctly does eventually lead to a solid Information Security program. &lt;span style=&quot;font-weight: bold;&quot;&gt;It is upto the people in the organization to determine what they want&lt;/span&gt;, Compliance leading to Effective Security or Compliance just leading to.....Compliance.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://citadelnotes.blogspot.com for more Security news, views and updates!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://citadelnotes.blogspot.com/feeds/819836036601984371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042057803725122487/819836036601984371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/819836036601984371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042057803725122487/posts/default/819836036601984371'/><link rel='alternate' type='text/html' href='http://citadelnotes.blogspot.com/2009/03/devils-advocate-compliance-vs-security.html' title='The Devil&#39;s Advocate: Compliance vs Security'/><author><name>Abhay Bhargav</name><uri>http://www.blogger.com/profile/06853218212755152911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>