Hacking Articles Tips Tricks Videos Tutorials
Photo
Black Hat Ethical Hacking
Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos
Python’s Tarfile path traversal bug from 2007 still present in 350k open source reposPost Views: 2 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/08/Patreon-1.png Subscribe to Patreon to watch this episode.
Reading Time: 3 Minutes An estimated 350,000 open source repositories are affected by a 15-year old path traversal vulnerability in Python’s tarfile module, according to security researchers.Having “stumbled across” the unpatched issue while investigating an unrelated vulnerability, they initially thought the flaw was a new zero-day bug before realizing it actually dated back to 2007.
Originally designated a severity score of CVSS 6.8, CVE-2007-4559 allows attackers to gain code execution from the file-write “in most cases”, said Trellix researcher Kasimir Schulz in a blog post published yesterday (September 21).
Schulz explained how Trellix researchers successfully achieved this outcome against wireless protocol analyzer Universal Radio Hacker, IT infrastructure management service Polemarch, and Spyder IDE, an open-source development environment for scientific programming.
See Also: So you want to be a hacker? Complete Offensive Security and Ethical Hacking Course Patching marathonIn a separate Trellix blog post, Douglas McKee said 61% of a sample of around 300,000 files containing the tarfile module, which makes it possible to read and write tar archives, were vulnerable to the bug.
Trellix has created patches for around 11,000 projects and anticipates that a further 70,000 projects will receive a fix in the coming weeks.
The vulnerability arose “from two or three lines of code using unsanitized tarfile.extract() or the built-in defaults of tarfile.extractall(),” explains a third Trellix blog post by Charles McFarland. “Failure to write any safety code to sanitize the members files before calling tarfile.extract() or tarfile.extractall() results in a directory traversal vulnerability, enabling a bad actor access to the file system.”
If an attacker adds ‘..’ with the separator for the operating system (‘/’ or ‘\’) into the file name, they can escape the directory the file is supposed to be extracted into. Just a warningHowever, a Python bug thread from 2007, which has been reopened in recent days, concluded with a maintainer asserting that “tarfile.py does nothing wrong, its behaviour conforms to the pax definition and pathname resolution guidelines in POSIX. There is no known or possible practical exploit”.
The maintainer did add a warning to the Python documentation, which remains in place, that urges developers to “never extract archives from untrusted sources without prior inspection”.
Trending: Find Hidden Info using Google Dorking manually, and Automated using Pagodo
Trending: Offensive Security Tool: fuxploider Corner casesTrellix’s McKee acknowledged that there are legitimate use cases for preserving behavior that could be abused for malicious purposes. However, he said, “in this instance I believe the risk outweighs the reward for accommodating a few corner cases”, especially given “most” third party online tutorials seemed to “incorrectly demonstrate the insecure use of the tarfile module”.
Trellix created and open-sourced a tool to aid the research and patching process that automatically detects the vulnerability in source code by leveraging AST intermediate representation.
Called Creosote, the utility provides a means to scan closed source repositories too.
“This vulnerability is incredibly easy to exploit” and prevalent in the wild, making Python’s tarfile module[...]
___________________________
@hacking_Attack
@Hacking_Video
Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos
Python’s Tarfile path traversal bug from 2007 still present in 350k open source reposPost Views: 2 Premium Contenthttps://www.blackhatethicalhacking.com/wp-content/uploads/2022/08/Patreon-1.png Subscribe to Patreon to watch this episode.
Reading Time: 3 Minutes An estimated 350,000 open source repositories are affected by a 15-year old path traversal vulnerability in Python’s tarfile module, according to security researchers.Having “stumbled across” the unpatched issue while investigating an unrelated vulnerability, they initially thought the flaw was a new zero-day bug before realizing it actually dated back to 2007.
Originally designated a severity score of CVSS 6.8, CVE-2007-4559 allows attackers to gain code execution from the file-write “in most cases”, said Trellix researcher Kasimir Schulz in a blog post published yesterday (September 21).
Schulz explained how Trellix researchers successfully achieved this outcome against wireless protocol analyzer Universal Radio Hacker, IT infrastructure management service Polemarch, and Spyder IDE, an open-source development environment for scientific programming.
See Also: So you want to be a hacker? Complete Offensive Security and Ethical Hacking Course Patching marathonIn a separate Trellix blog post, Douglas McKee said 61% of a sample of around 300,000 files containing the tarfile module, which makes it possible to read and write tar archives, were vulnerable to the bug.
Trellix has created patches for around 11,000 projects and anticipates that a further 70,000 projects will receive a fix in the coming weeks.
The vulnerability arose “from two or three lines of code using unsanitized tarfile.extract() or the built-in defaults of tarfile.extractall(),” explains a third Trellix blog post by Charles McFarland. “Failure to write any safety code to sanitize the members files before calling tarfile.extract() or tarfile.extractall() results in a directory traversal vulnerability, enabling a bad actor access to the file system.”
If an attacker adds ‘..’ with the separator for the operating system (‘/’ or ‘\’) into the file name, they can escape the directory the file is supposed to be extracted into. Just a warningHowever, a Python bug thread from 2007, which has been reopened in recent days, concluded with a maintainer asserting that “tarfile.py does nothing wrong, its behaviour conforms to the pax definition and pathname resolution guidelines in POSIX. There is no known or possible practical exploit”.
The maintainer did add a warning to the Python documentation, which remains in place, that urges developers to “never extract archives from untrusted sources without prior inspection”.
Trending: Find Hidden Info using Google Dorking manually, and Automated using Pagodo
Trending: Offensive Security Tool: fuxploider Corner casesTrellix’s McKee acknowledged that there are legitimate use cases for preserving behavior that could be abused for malicious purposes. However, he said, “in this instance I believe the risk outweighs the reward for accommodating a few corner cases”, especially given “most” third party online tutorials seemed to “incorrectly demonstrate the insecure use of the tarfile module”.
Trellix created and open-sourced a tool to aid the research and patching process that automatically detects the vulnerability in source code by leveraging AST intermediate representation.
Called Creosote, the utility provides a means to scan closed source repositories too.
“This vulnerability is incredibly easy to exploit” and prevalent in the wild, making Python’s tarfile module[...]
___________________________
@hacking_Attack
@Hacking_Video
Black Hat Ethical Hacking
Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos | Black Hat Ethical Hacking
An estimated 350,000 open source repositories are affected by a 15-year old path traversal vulnerability in Python’s tarfile module, according to security researchers.
Hacking Articles Tips Tricks Videos Tutorials
Black Hat Ethical Hacking Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos Python’s Tarfile path traversal bug from 2007 still present in 350k open source reposPost Views: 2 Premium Contenthttps://www.blackhatethicalhacking.com/wp…
“a massive supply chain issue threatening infrastructure around the world”, concluded Schulz.
Trending: Microsoft Teams stores auth tokens as cleartext in Windows, Linux, Macs
Are u a security researcher? Or a company that writes articles or write ups about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing?
If you want to express your idea in an article contact us here for a quote: info@blackhatethicalhacking.com
Source: bleepingcomputer.com Source Link https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent News* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-1-3-300x150.png Twitter failed to log you out of all devices after password resetsSeptember 22, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-8-300x150.png Rockstar parent company hacked again as 2K Support sends users malwareSeptember 21, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/2-300x150.png Revolut hack: personal and banking data exposedSeptember 20, 2022
Reading Time: 4 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-3-300x150.png GTA 6 source code and videos leaked after Rockstar Games hackSeptember 19, 2022
Reading Time: 4 minutes
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/06/OffSec-Course.png Offensive Security & Ethical Hacking CourseBegin the learning curve of hacking now!
The post Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos first appeared on Black Hat Ethical Hacking.
___________________________
@hacking_Attack
@Hacking_Video
Trending: Microsoft Teams stores auth tokens as cleartext in Windows, Linux, Macs
Are u a security researcher? Or a company that writes articles or write ups about Cyber Security, Offensive Security (related to information security in general) that match with our specific audience and is worth sharing?
If you want to express your idea in an article contact us here for a quote: info@blackhatethicalhacking.com
Source: bleepingcomputer.com Source Link https://www.blackhatethicalhacking.com/wp-content/uploads/2022/03/Merch.png Recent News* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-1-3-300x150.png Twitter failed to log you out of all devices after password resetsSeptember 22, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-8-300x150.png Rockstar parent company hacked again as 2K Support sends users malwareSeptember 21, 2022
Reading Time: 3 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/2-300x150.png Revolut hack: personal and banking data exposedSeptember 20, 2022
Reading Time: 4 minutes
* https://www.blackhatethicalhacking.com/wp-content/uploads/2022/09/Images-for-the-News-posts-3-300x150.png GTA 6 source code and videos leaked after Rockstar Games hackSeptember 19, 2022
Reading Time: 4 minutes
https://www.blackhatethicalhacking.com/wp-content/uploads/2022/06/OffSec-Course.png Offensive Security & Ethical Hacking CourseBegin the learning curve of hacking now!
The post Python’s Tarfile path traversal bug from 2007 still present in 350k open source repos first appeared on Black Hat Ethical Hacking.
___________________________
@hacking_Attack
@Hacking_Video
Steal WiFi Login for Enterprise Networks
https://www.reddit.com/r/redteamsec/comments/xlr6v5/steal_wifi_login_for_enterprise_networks/
submitted by /u/tbhaxor (https://www.reddit.com/user/tbhaxor)
[link] (https://tbhaxor.com/steal-credentials-for-enterprise-wifi-networks/) [comments] (https://www.reddit.com/r/redteamsec/comments/xlr6v5/steal_wifi_login_for_enterprise_networks/)
https://www.reddit.com/r/redteamsec/comments/xlr6v5/steal_wifi_login_for_enterprise_networks/
submitted by /u/tbhaxor (https://www.reddit.com/user/tbhaxor)
[link] (https://tbhaxor.com/steal-credentials-for-enterprise-wifi-networks/) [comments] (https://www.reddit.com/r/redteamsec/comments/xlr6v5/steal_wifi_login_for_enterprise_networks/)
Hey everyone, I am SYRINE. Cyber Security Enthusiast, eJPT Certified, and currently focusing on bug bounty.Continue reading on Medium » (https://medium.com/@AvyuktSyrine/my-first-xss-d88ee864df82?source=rss------bug_bounty-5)
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Hackers Using Malicious OAuth Apps to Take Over?
https://cdn-images-1.medium.com/max/728/0*OzsaIGXy3uZGmFAj.jpg
Microsoft on Thursday warned of a consumer-facing attack that made use of rogue OAuth applications on compromised cloud tenants to…
Continue reading on Medium »
Hackers Using Malicious OAuth Apps to Take Over?
https://cdn-images-1.medium.com/max/728/0*OzsaIGXy3uZGmFAj.jpg
Microsoft on Thursday warned of a consumer-facing attack that made use of rogue OAuth applications on compromised cloud tenants to…
Continue reading on Medium »
Hacking on Medium
Intro — Who am I
Confessions of a hacker is my project to describe the world of cyber security through the eyes of someone who has been on both sides. Talk…
Continue reading on Medium »
Intro — Who am I
Confessions of a hacker is my project to describe the world of cyber security through the eyes of someone who has been on both sides. Talk…
Continue reading on Medium »
Medium
Intro — Who am I
Confessions of a hacker is my project to describe the world of cyber security through the eyes of someone who has been on both sides. Talk…
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Are You Waiting for CEH v12? Know What’s New!
https://cdn-images-1.medium.com/max/770/0*p47NkZNeQZM5lHVL.jpg
Are You Waiting for CEH v12? Know What’s New!
Continue reading on Medium »
Are You Waiting for CEH v12? Know What’s New!
https://cdn-images-1.medium.com/max/770/0*p47NkZNeQZM5lHVL.jpg
Are You Waiting for CEH v12? Know What’s New!
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Analisis Lalu Lintas Jaringan pada File Pcap Menggunakan Wireshark
https://cdn-images-1.medium.com/max/810/1*UdE_Kt7WRq7KgosIGVBPpg.jpeg
Mengapa Lalu Lintas Jaringan Harus Dilakukan Analisis?
Continue reading on Medium »
Analisis Lalu Lintas Jaringan pada File Pcap Menggunakan Wireshark
https://cdn-images-1.medium.com/max/810/1*UdE_Kt7WRq7KgosIGVBPpg.jpeg
Mengapa Lalu Lintas Jaringan Harus Dilakukan Analisis?
Continue reading on Medium »
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
An Analysis of Wintermute’s USD$160 Million Hacking
https://cdn-images-1.medium.com/max/1146/1*G_LTH31Q4MOkjotzfGfvTw.png
On September 20 2022, cryptocurrency market maker Wintermute, a London-based company that trades billions of USD in crypto every day, was…
Continue reading on Medium »
An Analysis of Wintermute’s USD$160 Million Hacking
https://cdn-images-1.medium.com/max/1146/1*G_LTH31Q4MOkjotzfGfvTw.png
On September 20 2022, cryptocurrency market maker Wintermute, a London-based company that trades billions of USD in crypto every day, was…
Continue reading on Medium »
Kali Linux Tutorials
gophish : Open-Source Phishing Toolkit
Gophish is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability to quickly and easily setup and execute phishing engagements and security awareness training.
Install
Installation of Gophish is dead-simple – just download and extract the zip containing the release for your system, and run the binary. Gophish has binary releases for Windows, Mac, and Linux platforms.
Building From Source
If you are building from source, please note that Gophish requires Go v1.10 or above!
To build Gophish from source, simply run
Docker
You can also use Gophish via the official Docker container here.
Setup
After running the Gophish binary, open an Internet browser to https://localhost:3333 and login with the default username and password listed in the log output. e.g.
time=”2020-07-29T01:24:08Z” level=info msg=”Please login with the username admin and the password 4304d5255378177d”
Releases of Gophish prior to v0.10.1 have a default username of
Download
gophish : Open-Source Phishing Toolkit
Gophish is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability to quickly and easily setup and execute phishing engagements and security awareness training.
Install
Installation of Gophish is dead-simple – just download and extract the zip containing the release for your system, and run the binary. Gophish has binary releases for Windows, Mac, and Linux platforms.
Building From Source
If you are building from source, please note that Gophish requires Go v1.10 or above!
To build Gophish from source, simply run
go install github.com/gophish/gophish@latestand cdinto the project source directory. Then, run go build. After this, you should have a binary called gophishin the current directory.Docker
You can also use Gophish via the official Docker container here.
Setup
After running the Gophish binary, open an Internet browser to https://localhost:3333 and login with the default username and password listed in the log output. e.g.
time=”2020-07-29T01:24:08Z” level=info msg=”Please login with the username admin and the password 4304d5255378177d”
Releases of Gophish prior to v0.10.1 have a default username of
adminand password of gophish.Download
Kali Linux Tutorials
gophish : Open-Source Phishing Toolkit !!! Kali Linux
Gophish is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability easily setup.
My First XSS
Hey everyone, I am SYRINE. Cyber Security Enthusiast, eJPT Certified, and currently focusing on bug bounty.Continue reading on Medium »
Read more...
Hey everyone, I am SYRINE. Cyber Security Enthusiast, eJPT Certified, and currently focusing on bug bounty.Continue reading on Medium »
Read more...