Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace rewritten URL values contained in HTMLTAG groups with original values from MHTMLTAG groups #11

Open
seamustuohy opened this issue Jul 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@seamustuohy
Copy link
Owner

The MHTMLTAG destination group is used to encapsulate an HTML tag with a rewritable URL parameter. As can be seen below this can contain an HTMLBASE control word which indicates a location of a rewritten Uniform Resource Locator (URL) inside a MHTMLTAG destination group.

This means that while the HTMLTAG group which corresponds with the MHTMLTAG in question will have the cid: or mid: values needed to URLs to the appropriate attachments in a .msg, it will not accurately recreate the original data before encapsulation.

We should do two things.

  1. Replace the URL's in HTMLTAG's with the URL found in the corresponding MHTMLTAG (if there is one.)
  2. Store a dictionary of all cid:'s and mid:'s that were replaced in this way mapped to the URL's they were replaced with. This should enable appropriate renaming of attachments for forensic purposes.

Example MHTMLTAG / HTMLTAG pairing.

{\*\mhtmltag340 <img style="DISPLAY: block" alt="ING" src="{\htmlbase ATT-1-top_ro%7E1.jpg}" width="580" height="6">}
{\*\htmltag340 <img style="DISPLAY: block" alt="ING" src="cid:CB04FC0F390249B88E6CEA2FF807B22D@campaign-ing.website" width="580" height="6">}\htmlrtf \objattph  \htmlrtf0 
@seamustuohy seamustuohy added the enhancement New feature or request label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant