This Week In Security: Iran’s ITG18, ProcMon For Linux, And Garbage Collection Fail – Hackaday
Even top-tier security professionals make catastrophic mistakes, and this time it was the operators at Irans ITG18. Were once again talking about the strange shadowy world of state sponsored hacking. This story comes from the IBM X-Force Incident Response Intelligence Services (IRIS). I suspect a Deadpool fan must work at IBM, but thats beside the point.
A server suspected to be used by ITG18 was incorrectly configured, and when data and training videos were stored there, that data was publicly accessible. Among the captured data was records of compromised accounts belonging to US and Greek military personnel.
The training videos also contained a few interesting tidbits. If a targeted account used two factor authentication, the attacker was to make a note and give up on gaining access to that account. If a Google account was breached, the practice was to start with Google Takeout, the service from Google that allows downloading all the data Google has collected related to that account. Yoiks.
Weve covered many kernel level exploits in this column, but never have we covered a guide quite like the one just published by Secfault Security. They attempt to bridge the gap between being a developer and an exploit author, walking us through the process of building an actual working exploit PoC based on a Google Project Zero write-up.
Microsoft is continuing to develop their Linux presence, this time by re-engineering Process Monitor as ProcMon for Linux. A bit of history, Process Monitor is part of the Sysinternals suite, originally developed by [Bryce Cogswell] and [Mark Russinovich], founders of Winternals. Incidentally, they also broke the Sony BMG rootkit story, using sysinternals tools. Less than a year after that story broke, Winternals was acquired by Microsoft, and while [Cogswell] has moved on, [Russonovich] has stayed with Microsoft, and is now the CTO of Azure.
ProcMon is written in C++, and released under the MIT license. It keeps track of the system calls happening on machine in real time, giving a detailed look at the activity of the system. Its useful for security, debugging, and troubleshooting performance issues. All in all, its a really handy tool, and should be a useful part of the sysadmins toolbox. The source is available under an OSI approved license, so the various distros should pick up and package ProcMon before long.
Windows Server supports a couple of ways to run processes in containers: HyperV containers, and Windows Server Containers. Its fairly widely accepted that virtualization based containerization provides a more secure isolation. That is, if a virtualized container is compromised, is far more difficult for an attacker to migrate out and attack the host machine, as compared to a kernel based containerization.
The news is a new way to escape a Windows Server Container. While not encountered as often as on a Linux machine, Windows does support symbolic links. Reading through the deep dive also makes it clear how much modern Windows machines are becoming POSIX machines with a Windows compatibility layer on top. For example, the C: directory is actually a global symlink to DeviceHarddiskVolumeX.
If a containerized process could create a global symlink, AKA one that pointed to the root directory, then the container escape would be trivial. As expected, the container security controls dont allow the isolated processes to create such a symlink during runtime. That said, there is a particular function that can be abused to create the global symlink. The specific function parameters have yet to be disclosed, in order to make in-the-wild exploitation just a bit more difficult.
The story of a security audit on a website caught my eye this week, put together by [Maxwell Dulin]. The password reset form is the focus here, and it has a few problems. The first one is a common flaw: the password reset form verifies whether a given email address is in the system. Its not the worst flaw, but it does give an attacker information he can guess email addresses, and gets confirmation when there is an account with that address.
The next flaw is a subtle one, the contents of the password reset email are generated using the host sent in the HTTP request. That normally works as expected: A user goes to ourwebsite.com/reset, inputs their email address, and submits the form to generate a password reset request. They get an email with a link back to ourwebsite.com that allows the password reset. An attacker, however, can send a malicious HTTP request to the password reset form, using someone elses address, and manipulate the Host value. The reset email now points to the injected host. If the user clicks the link in the email, the magic value is sent to host specified by the attacker, who can then go reset the users password.
The last flaw [Maxwell] found was the worst of the bunch. The reset token is confirmed when the user first clicks the link sent via email, but it isnt confirmed when the password is actually updated. You could create your own account, go through the password reset process, and then change the password reset form to point at another users account. Because the back-end sees you as already authenticated, it dutifully sets the new password, even if the account specified isnt yours.
None of us will likely use the little website that this audit was performed on, but the steps described and problems to look for are a good guide for anyone needing doing the same.
CVE-20191367 is an older bug at this point, found being exploited in the wild in 2019, and given a full write-up by Confiant. Its yet another vulnerability in Internet Explorers jscript engine. For a very brief review, jscript.dll is the deprecated IE implementation of Javascript. Its no longer the default implementation, but can be requested by a web page for compatibility purposes. It appears that jscript.dll is only accessible in Internet Explorer, and neither iteration of Edge support the legacy implementation at all.
This vuln was being actively used by state actors and was a watering hole style attack, where simply visiting the malicious site was enough to compromise. The next page of the write-up goes into the technical details. This is a class of vulnerability that we havent covered before. Its a use-after-free in a garbage collected language.
Garbage collection is the alternative to manually freeing memory when finished with it. One of the advantages is that it is supposed to make use-after-free bugs a thing of the past, so whats going on here? The garbage collection code in jscript.dll doesnt properly track the reference count in certain situations. This bug specifically deals with the Array.sort() callback function. Arguments to that function arent properly tracked, so the JS instance can be manipulated such that a GC sweep frees an object that will be later accessed.
For the exploit and further analysis of how this flaw was used in the wild, check out part 2 and part 3 of the full write-up.
See the article here:
This Week In Security: Iran's ITG18, ProcMon For Linux, And Garbage Collection Fail - Hackaday
- Khamenei aide: Iran will have no choice but to acquire nukes if attacked - The Times of Israel - April 1st, 2025 [April 1st, 2025]
- How dangerous are the tensions between the US and Iran? - Al Jazeera - April 1st, 2025 [April 1st, 2025]
- Russia condemns Trumps threat to bomb Iran over nuclear standoff - Anadolu Ajans - April 1st, 2025 [April 1st, 2025]
- Iran threatens preemptive strike on base housing US bombers, report says - Ynetnews - April 1st, 2025 [April 1st, 2025]
- Exclusive: Iran has readied missiles for potential response amid Trump's escalating threats - Tehran Times - April 1st, 2025 [April 1st, 2025]
- Iran's Khamenei vows retaliation if Trump threat enacted - DW - April 1st, 2025 [April 1st, 2025]
- Iran has rejected direct negotiations with the US in response to Trumps letter - AP News - April 1st, 2025 [April 1st, 2025]
- US sanctions entities in Iran, China, UAE, for assisting Tehran with weapons procurement - The Times of Israel - April 1st, 2025 [April 1st, 2025]
- Khamenei adviser says Iran will have no choice but to get nuclear weapon if attacked - The Times of Israel - April 1st, 2025 [April 1st, 2025]
- A Ticking Bomb: Israeli Eliminates Iran-Linked Terrorist in Beirut - Foundation for Defense of Democracies - April 1st, 2025 [April 1st, 2025]
- 'Will have no choice': Iran warns it may have to acquire nuclear weapons if attacked - Times of India - April 1st, 2025 [April 1st, 2025]
- Trump threatens there will be bombing if Iran fails to make deal on nukes - The Times of Israel - April 1st, 2025 [April 1st, 2025]
- Suspected missile cargo ship arrives in Iran from China as nuclear tensions escalate - Newsweek - April 1st, 2025 [April 1st, 2025]
- Trump threatens to bomb Iran if nuclear deal cant be reached - Politico - April 1st, 2025 [April 1st, 2025]
- Trump warns Iran could see 'bombing the likes of which they have never seen' - www.israelhayom.com - April 1st, 2025 [April 1st, 2025]
- Iran rejects direct nuclear talks with Trump, open to indirect negotiations - Al Jazeera - April 1st, 2025 [April 1st, 2025]
- Iran's Supreme Leader Responds to Trump Bombing Threat - Newsweek - April 1st, 2025 [April 1st, 2025]
- Is Iran on a collision course with the west? - Financial Times - April 1st, 2025 [April 1st, 2025]
- Trump says 'there will be bombing' if Iran does not make nuclear deal - USA Today - April 1st, 2025 [April 1st, 2025]
- Mapped: These are the nuclear sites in Iran the US and Israel could hit if talks fail - Ynetnews - April 1st, 2025 [April 1st, 2025]
- Trump warns Iran of bombing like never seen before if no deal reached - - April 1st, 2025 [April 1st, 2025]
- IDF reorganizes units responsible for Iran planning - The Times of Israel - April 1st, 2025 [April 1st, 2025]
- Trump threatens to bomb Iran unless deal on nuclear program is reached - The Independent - April 1st, 2025 [April 1st, 2025]
- Trump's threat to Iran that 'there will be bombing' comes amid new B-2 stealth bomber moves - Business Insider - April 1st, 2025 [April 1st, 2025]
- Israel and the United States are Ready to Strike Iran - The National Interest - April 1st, 2025 [April 1st, 2025]
- Two Carriers in the Middle East: Implications for the Houthis, Iran, and U.S. Force Readiness - The Washington Institute - April 1st, 2025 [April 1st, 2025]
- Iran Is Freaked: Trump and Israel Could Launch a Joint Strike - 19FortyFive - April 1st, 2025 [April 1st, 2025]
- Trump's threat to Iran that 'there will be bombing' comes amid new B-2 stealth bomber moves - MSN - April 1st, 2025 [April 1st, 2025]
- Iran rejects offer of direct US negotiations over rapidly growing nuclear program - New York Post - April 1st, 2025 [April 1st, 2025]
- Trump's threat to Iran that 'there will be bombing' comes amid new B-2 stealth bomber moves - Yahoo - April 1st, 2025 [April 1st, 2025]
- Trumps Middle East strategy is all about striking an Iran deal. Gaza could get in the way. - Atlantic Council - March 25th, 2025 [March 25th, 2025]
- US Threatens 'All Options on the Table' for Iran - Newsweek - March 25th, 2025 [March 25th, 2025]
- Trump's offer of talks with Iran aims to avoid military action, US envoy says - Reuters - March 25th, 2025 [March 25th, 2025]
- Trumps Advisers Are Divided on Iran. Which Way Is the President Leaning? - The FP - March 25th, 2025 [March 25th, 2025]
- Iranians discuss Trump envoys interest in visiting Tehran | Iran International - - March 25th, 2025 [March 25th, 2025]
- Iran's top medical body warns of skilled staff exodus - - March 25th, 2025 [March 25th, 2025]
- Iran says it will consider 'opportunities' as well as threats in Trump letter - Reuters - March 25th, 2025 [March 25th, 2025]
- Khamenei says Houthis act independently, warns against US strikes on Iran - The Times of Israel - March 25th, 2025 [March 25th, 2025]
- Iran condemns US threats to use force and vows to defend its sovereignty - The Times of Israel - March 25th, 2025 [March 25th, 2025]
- Iran's Khamenei says US threats 'will get them nowhere' - FRANCE 24 English - March 25th, 2025 [March 25th, 2025]
- Iran's Supreme Leader Threatens US with "Severe Blow" - Newsweek - March 25th, 2025 [March 25th, 2025]
- Iran's supreme leader says Trump administration threats over nuclear program "will get them nowhere" - CBS News - March 25th, 2025 [March 25th, 2025]
- Iran open to indirect talks with US, rejects direct negotiations under pressure - Arutz Sheva - March 25th, 2025 [March 25th, 2025]
- How a war with Iran (for Israel) could crash the US economy - The Cradle - March 25th, 2025 [March 25th, 2025]
- Iran has 'got to address that fact that the world they knew is over': State Department spox - Fox Business - March 25th, 2025 [March 25th, 2025]
- No one can even think of attack on Iran, FM asserts - Tehran Times - March 25th, 2025 [March 25th, 2025]
- The Islamic Republic of Iran only understands one language: 'Language of pressure,' journalist say - Fox Business - March 25th, 2025 [March 25th, 2025]
- French citizen Olivier Grondeau is freed after over 880 days in a prison in Iran - The Associated Press - March 25th, 2025 [March 25th, 2025]
- Iran's leader warns US could receive 'severe slaps' following Trump's threats to Houthis - Fox News - March 25th, 2025 [March 25th, 2025]
- US and Israel Have Laid the Groundwork for War With Iran. Will Trump Set It Off? - Truthout - March 25th, 2025 [March 25th, 2025]
- Senior Saudi Journalist Tariq Al-Homayed: Iran Must Stop Its Expansion Project And Pursuit Of Nuclear Weapons, End The Futile Wars Waged By Its... - March 25th, 2025 [March 25th, 2025]
- Chinas five-point proposition on the Iran nuclear issue - Tehran Times - March 25th, 2025 [March 25th, 2025]
- Iran says its open to indirect negotiations with US over nuclear program - The Times of Israel - March 25th, 2025 [March 25th, 2025]
- Report: Trump letter to Iran set 2-month deadline to reach nuclear deal - The Times of Israel - March 25th, 2025 [March 25th, 2025]
- Why wont Britain take the threat of Iran seriously? - The Times - March 25th, 2025 [March 25th, 2025]
- Trump drops two-month deadline on nuclear deal with Iran - The Jerusalem Post - March 25th, 2025 [March 25th, 2025]
- Trump's tactics with Canada are pushing the prize of an Iran nuclear deal further away - The National - March 25th, 2025 [March 25th, 2025]
- What to do with Iran and its Houthi proxies: Attack! - The Hill - March 25th, 2025 [March 25th, 2025]
- US envoy Witkoff says Trump wants to build trust with Iran to avoid armed conflict - The National - March 25th, 2025 [March 25th, 2025]
- Twilight of the Islamic Republic: The rocky road to regime change in Iran has begun - opinion - The Jerusalem Post - March 25th, 2025 [March 25th, 2025]
- Iran leader rejects nuclear talks with US as Trump letter arrives - BBC.com - March 13th, 2025 [March 13th, 2025]
- Iraq says seeking alternatives to Iran gas - Yahoo - March 13th, 2025 [March 13th, 2025]
- What to know about tensions between Iran and the US as Trump sends a letter to its supreme leader - The Associated Press - March 13th, 2025 [March 13th, 2025]
- 'This threat is unwise': Iran's Khamenei cautions Trump against potential military action - FRANCE 24 English - March 13th, 2025 [March 13th, 2025]
- Iran Could Lose Iraq: The Axis of Resistance Is Primed to Take Another Hit - Foreign Affairs Magazine - March 13th, 2025 [March 13th, 2025]
- Attacking Iran's Nuclear Program: The Complex Calculus of Preventive Action - The Washington Institute - March 13th, 2025 [March 13th, 2025]
- An Emirati diplomat identified as having a letter from Trump meets with Iran's foreign minister - The Associated Press - March 13th, 2025 [March 13th, 2025]
- China, Russia, Iran to hold nuclear talks in Beijing on Friday - Reuters - March 13th, 2025 [March 13th, 2025]
- Iran's President to Trump: I will not negotiate, 'do whatever the hell you want' - Reuters - March 13th, 2025 [March 13th, 2025]
- Iran's president refuses talks, tells Trump 'do whatever the hell you want' - Middle East Eye - March 13th, 2025 [March 13th, 2025]
- UAE official delivers to Iran letter from Trump urging nuclear talks - The Times of Israel - March 13th, 2025 [March 13th, 2025]
- What to know about tensions between Iran and the US as Trump sends a letter to its supreme leader - Greenville Daily Reflector - March 13th, 2025 [March 13th, 2025]
- Iraq says seeking alternatives to Iran gas - Wyoming News Now - March 13th, 2025 [March 13th, 2025]
- What to know about tensions between Iran and the US as Trump sends a letter to its supreme leader - Northeast Mississippi Daily Journal - March 13th, 2025 [March 13th, 2025]
- Beach turns bright red in Iran: 5 things about bizarre 'blood rain' phenomenon that stunned internet - Hindustan Times - March 13th, 2025 [March 13th, 2025]
- What to know about tensions between Iran and the US as Trump sends a letter to its supreme leader - Cecil Daily - March 13th, 2025 [March 13th, 2025]
- Iran Tells Trump: "Do Whatever The Hell You Want." - Newsweek - March 13th, 2025 [March 13th, 2025]
- Striking the head: Israel's Iran strategy | Daily Sabah - Daily Sabah - March 13th, 2025 [March 13th, 2025]
- Iran's supreme leader rejects talks with the U.S., says it's "not aimed at solving problems" - CBS News - March 13th, 2025 [March 13th, 2025]
- Iran steps up crackdown on female singers with social media bans | Iran International - - March 13th, 2025 [March 13th, 2025]