0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
unrar 5.40 - VMSF_DELTA Filter Arbitrary Memory Write Exploit
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1286&desc=6 It appears that the VMSF_DELTA memory corruption that was reported to Sophos AV in 2012 (and fixed there) was actually inherited from upstream unrar. For unknown reasons the information did not reach upstream rar or was otherwise lost, and the bug seems to have persisted there to this day. The bug is sometimes called "Sophos Anti-Virus RAR VMSF_DELTA Filter Signedness Error", and referenced in the following links: https://community.sophos.com/kb/en-us/118424#six http://telussecuritylabs.com/threats/show/TSL20121207-01 The issue is in the following code: case VMSF_DELTA: { int DataSize=R[4],Channels=R[0],SrcPos=0,Border=DataSize*2; if ((uint)DataSize>=VM_MEMSIZE/2) break; // Bytes from same channels are grouped to continual data blocks, // so we need to place them back to their interleaving positions. for (int CurChannel=0;CurChannel<Channels;CurChannel++) { byte PrevByte=0; for (int DestPos=DataSize+CurChannel;DestPos<Border;DestPos+=Channels) Mem[DestPos]=(PrevByte-=Mem[SrcPos++]); } } break; An attacker controls R[4] and R[0] arbitrarily. By setting R[0] to be sufficiently large (perhaps 0x7FFFFFFF), an integer overflow can be caused in DataSize+CurChannel. The result is a negative value of "DestPos", which allows the attacker to write out of bounds when setting Mem[DestPos]. A minimal test example that crashes unrar 5.40 and prior is base64-encoded below: Base64-encoded RAR file to trigger the VMSF_DELTA issue: UmFyIRoHAPlOcwAADgAAAAAAAAAAMAh0AAAmAI4AAAAAAAAAAhBBUiEAAAAAHQAGAAAAACBzdGRv dXQgIVUMzRDNmBGByDAda+AXaSv4KvQr1K/oejL05mXmXmww5tEk8gA9k8nmieyeyeswuOR6cx69 a2Hd6zQwu3aoMDDwMEswADAAMD4P938w+dydoRFwAmwAAAAAvv////+/////+9W3QFgAAQAGAAAA Ooimhd12AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Given the wide prevalence of the unrar source code in third-party software, quite a few downstream parties will be affected. The source code with the fixes can be found under http://www.rarlab.com/rar/unrarsrc-5.5.5.tar.gz - downstream parties are encouraged to quickly update and ship fixes. Thanks to the RAR developers for their quick turnaround and helpful proactive audit of their codebase which removed further issues. # 0day.today [2024-11-15] #