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
- Israel and Iran Seemed on the Brink of a Bigger War. Whats Holding Them Back? - The New York Times - November 24th, 2024 [November 24th, 2024]
- Iran's Air1Air reprimanded over flight suspension - ch-aviation - November 24th, 2024 [November 24th, 2024]
- Pop icon Googoosh is a voice for women in Iran - DW (English) - November 24th, 2024 [November 24th, 2024]
- Israel kills wanted Hezbollah commander behind the establishment of Iraqs Iran-backed militias - Long War Journal - November 24th, 2024 [November 24th, 2024]
- Iran Braces for Trump Reset With Economy Buckling From Sanctions - Bloomberg - November 24th, 2024 [November 24th, 2024]
- Iran to hold nuclear talks with Britain, France, Germany on Nov. 29 - Kyodo News Plus - November 24th, 2024 [November 24th, 2024]
- Iran says it immediately activated new, advanced centrifuges after IAEA censure - The Times of Israel - November 24th, 2024 [November 24th, 2024]
- Iran preparing to respond to Israel's Oct. 26 attack - Khamenei's aide - - November 24th, 2024 [November 24th, 2024]
- United Nations nuclear agency again condemns Iran for failing to fully cooperate - NPR - November 24th, 2024 [November 24th, 2024]
- Iran is preparing to respond to Israel adviser to Supreme Leader Khamenei - The Times of Israel - November 24th, 2024 [November 24th, 2024]
- Iran says it is activating new centrifuges after being condemned by UN nuclear watchdog - CNN - November 24th, 2024 [November 24th, 2024]
- Iran to "substantially increase" uranium enrichment capacity over IAEA rebuke led by U.S. and allies - CBS News - November 24th, 2024 [November 24th, 2024]
- Iran defies international pressure, increasing its stockpile of near weapons-grade uranium, UN says - The Associated Press - November 24th, 2024 [November 24th, 2024]
- Iran offers to cap sensitive uranium stock as IAEA resolution looms - Reuters - November 24th, 2024 [November 24th, 2024]
- Iran has ambitions in Western Sahara. Trump can contain them by bolstering ties with Morocco. - Atlantic Council - November 24th, 2024 [November 24th, 2024]
- Israeli rabbi kidnapped in UAE, sparking fears of Iran's involvement - - November 24th, 2024 [November 24th, 2024]
- Iran's President calls on Pope Francis to use influence to stop war in Middle East - Reuters - November 24th, 2024 [November 24th, 2024]
- American-Israeli families sue Iran, Hamas and Hezbollah in federal court - Middle East Eye - November 24th, 2024 [November 24th, 2024]
- Norwegian guard at US Embassy in Oslo arrested over allegations of spying for Russia and Iran - CNN - November 24th, 2024 [November 24th, 2024]
- Iran categorically rejects allegations of involvement in murder of Abu Dhabi rabbi - The Times of Israel - November 24th, 2024 [November 24th, 2024]
- Iran: EU widens restrictive measures in view of Iran support of the Russian war of aggression against Ukraine and lists one individual and four... - November 24th, 2024 [November 24th, 2024]
- Student Charged With Spying on US Embassy for Russia, Iran - Newsweek - November 24th, 2024 [November 24th, 2024]
- Russia sends Yemeni mercenaries to fight in Ukraine after they were tricked into signing up for war by Iran-backed Houthis: report - New York Post - November 24th, 2024 [November 24th, 2024]
- Did We Do Enough? Airmen Heed Lessons from Their Air Victory over Iran - Air & Space Forces Magazine - November 24th, 2024 [November 24th, 2024]
- Guard at U.S. Embassy in Norway Accused of Spying for Russia and Iran - The New York Times - November 24th, 2024 [November 24th, 2024]
- Is Iran's Khamenei signaling readiness for new deal as Trump threat looms large? - Al-Monitor - November 24th, 2024 [November 24th, 2024]
- Iran signals willingness to halt stockpile expansion, Grossi says - World Nuclear News - November 24th, 2024 [November 24th, 2024]
- Iran set to launch advanced centrifuges after IAEA censure for noncooperation - The Times of Israel - November 24th, 2024 [November 24th, 2024]
- The winds of change are blowing in Iran - The Spectator - November 24th, 2024 [November 24th, 2024]
- Iran says German-Iranian died before execution was reported - BBC.com - November 5th, 2024 [November 5th, 2024]
- Iran is now dangerously vulnerable to the consequences of another attack on Israel - Business Insider - November 5th, 2024 [November 5th, 2024]
- Federal agencies say Russia and Iran are ramping up influence campaigns targeting US voters - The Associated Press - November 5th, 2024 [November 5th, 2024]
- Three sentenced to death in Iran over killing of top nuclear scientist - Al Jazeera English - November 5th, 2024 [November 5th, 2024]
- Russia launches Soyuz rocket with dozens of satellites, including two from Iran - Reuters - November 5th, 2024 [November 5th, 2024]
- Full-scale war in Middle East involving Israel and Iran likely, say most Europeans in poll - The Guardian - November 5th, 2024 [November 5th, 2024]
- Iran executes a Jewish citizen convicted of murder following a dispute over money - ABC News - November 5th, 2024 [November 5th, 2024]
- US says Iranian-American held in Iran as tensions high following Israeli attack on country - The Associated Press - November 5th, 2024 [November 5th, 2024]
- An Iranian-American journalist is believed to be held by Iran as tensions remain high after an Israeli attack, US says - ABC News - November 5th, 2024 [November 5th, 2024]
- Iran Issues Fresh Threats Against Israel, U.S. - Foundation for Defense of Democracies - November 5th, 2024 [November 5th, 2024]
- Iran arrests female university student who stripped to her underwear in protest over dress code enforcement - CBS News - November 5th, 2024 [November 5th, 2024]
- Oil prices settle up slightly on Iran worries, but prices down for week - Reuters - November 5th, 2024 [November 5th, 2024]
- Two members of Iran's Revolutionary Guards killed in helicopter crash - FRANCE 24 English - November 5th, 2024 [November 5th, 2024]
- Iran wants to hold region hostage with retaliation op - analysis - The Jerusalem Post - November 5th, 2024 [November 5th, 2024]
- Iran slams destabilizing presence as US sends B-52 bombers to region - The Times of Israel - November 5th, 2024 [November 5th, 2024]
- Woman strips off clothes at Iran university in apparent protest, reports say - Reuters - November 5th, 2024 [November 5th, 2024]
- Iran says two French detainees held in good conditions - Reuters - November 5th, 2024 [November 5th, 2024]
- Reformist clerics imply Iran should back two-state solution for Israel and Palestine - The Guardian - November 5th, 2024 [November 5th, 2024]
- Iran to use bigger warheads in attack on Israel - JNS.org - November 5th, 2024 [November 5th, 2024]
- Will Iran Withdraw from the Nuclear Non-Proliferation Treaty? - War On The Rocks - November 5th, 2024 [November 5th, 2024]
- From Iran to Turkey, how the Middle East is bracing for US elections - Al-Monitor - November 5th, 2024 [November 5th, 2024]
- Iran Rejects Nuclear Weapons but Will 'Defend Itself by All Means' - Newsweek - November 5th, 2024 [November 5th, 2024]
- Iran vows strong and complex attack against Israel in retaliation for strikes - New York Post - November 5th, 2024 [November 5th, 2024]
- US said to warn Iran it wont be able to restrain Israel if Tehran attacks again - The Times of Israel - November 5th, 2024 [November 5th, 2024]
- The Houthis couldn't have built their most dangerous weapons without help from Iran and others, UN experts find - Business Insider - November 5th, 2024 [November 5th, 2024]
- Iran detains woman who stripped to her underwear at university in apparent protest - ABC News - November 4th, 2024 [November 4th, 2024]
- Iran executes Jewish Iranian man after settlement aimed at saving him was rejected - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- Israel says it conducted a ground raid in Syria and seized a Syrian citizen connected to Iran - PBS NewsHour - November 4th, 2024 [November 4th, 2024]
- Iran said planning to use more powerful weapons in next attack on Israel - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- The Longer Iran Waits to Attack Israel, the More Risks It Takes - Haaretz - November 4th, 2024 [November 4th, 2024]
- Iran's enemies will receive crushing response - Khamenei - BBC.com - November 4th, 2024 [November 4th, 2024]
- Iran fears Trump win would bring Israeli strikes on nuclear sites, Western sanctions - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- Israel says it carried out ground raid into Syria, seizing a Syrian citizen connected to Iran - The Associated Press - November 4th, 2024 [November 4th, 2024]
- Israel Iran war Live Updates: IDF says it eliminated Hezbollah commander Abu Ali Rida - The Times of India - November 4th, 2024 [November 4th, 2024]
- Iran plans strong and complex attack on Israel as Khamenei vows 'harsh retaliation' | What we know so far | Today News - Mint - November 4th, 2024 [November 4th, 2024]
- 'Orders to come from Iran': Iraqi militias pose growing risk to Israel - expert - The Jerusalem Post - November 4th, 2024 [November 4th, 2024]
- Iraq trying to reel in Iran-backed groups to prevent confrontation with Israel - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- Iran warns of 'crushing response' following Israeli airstrikes as Pentagon announces plans to bolster US presence in the Middle East - Business... - November 4th, 2024 [November 4th, 2024]
- Khamenei aide warns Iran may review nuclear doctrine if facing existential threat - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- Iran Is Freaked: The Air Force Is Sending B-52 Bombers Much Closer - The National Interest Online - November 4th, 2024 [November 4th, 2024]
- Israel at War Day 394 | Report: Iran's Army Will Participate in 'Strong and Complex' Attack on Israel - Haaretz - November 4th, 2024 [November 4th, 2024]
- Iran says airspace remains open - The Jerusalem Post - November 4th, 2024 [November 4th, 2024]
- UN experts say Houthis exploited Gaza war to boost regional status, aided by Iran - The Times of Israel - November 4th, 2024 [November 4th, 2024]
- Netanyahu tells U.S. that Israel will strike Iranian military, not nuclear or oil, targets, officials say - The Washington Post - October 16th, 2024 [October 16th, 2024]
- Opinion | Its Time for America to Get Real With Iran and Israel - The New York Times - October 16th, 2024 [October 16th, 2024]
- Iran says it will respond decisively if Israel attacks, asks UN to intervene - The Times of Israel - October 16th, 2024 [October 16th, 2024]
- US warns Iran to stop plotting against Trump, says US official - Reuters - October 16th, 2024 [October 16th, 2024]
- Iran working to control oil spill off Kharg Island, says IRNA - Reuters - October 16th, 2024 [October 16th, 2024]
- Israel said to decide on targets it could strike in Iran: Now a matter of time - The Times of Israel - October 16th, 2024 [October 16th, 2024]
- Israel will respond to Iran based on national interest - Netanyahu - BBC.com - October 16th, 2024 [October 16th, 2024]
- Israel Tells U.S. It Will Limit Its Expected Strike on Iran to Military Targets, Officials Say - The New York Times - October 16th, 2024 [October 16th, 2024]