Tag Archives: Python Programming

A Newly Discovered Vulnerability of Python Parsing Library Allows Check Bypassing

SUNNYVALE, Calif. /ScoopCloud/ -- A vulnerability has been discovered in Python's native urllib.parse function (CVE-2023-24329) by cybersecurity researcher Yebo Cao. This vulnerability has the potential to enable server-side request forgery (SSRF) and remote code execution (RCE) in a wide range of scenarios by bypassing the protections set by the developer for scheme and host.

Cao, a master's student at Carnegie Mellon University, owns an Offensive Security Certified Professional (OSCP) certificate and is one of the top 100 security researchers at Bugcrowd. He found that the urllib.parse function has a parsing issue that affects the parsing of the hostname and scheme, causing blocklisting and allowlisting methods to fail.

urllib.parse is a basic URL parsing function widely used in various applications, and one of Python's core functions is urlparse. This issue is caused when the entire URL starts with blank characters.

"I personally think the impact of this vulnerability is huge because this urlparse() library is widely used," Cao said. "Although allowlisting and blocklisting are commonly used security mechanisms in software development, in the affected version of Python's urllib.parse function, the vulnerability can be exploited to bypass the protections set by the developer for scheme and host. This vulnerability can be expected to help SSRF and RCE in a wide range of scenarios."

Blocklisting and allowlisting are commonly used security mechanisms that help to prevent unauthorized access or actions. Allowlisting is a mechanism that allows only certain things, such as IP addresses, domain names, or file types, while blocklisting is a mechanism that prevents access to certain things, such as websites or file extensions. However, the vulnerability in the affected version of Python's urllib.parse function can render both of these mechanisms ineffective, thus increasing the risk of exploitation.

Cao's analysis of the vulnerability, which can be found at https://pointernull.com/security/python-url-parse-problem.html, reveals that allowlisting is also breakable in the affected version of Python. This means that an attacker can potentially exploit the vulnerability to bypass both blocklisting and allowlisting, making it easier to gain unauthorized access.

The vulnerability has been fixed in the latest version of Python, 3.11. However, earlier versions of Python remain vulnerable to exploitation. Users of earlier versions of Python are advised to update to the latest version as soon as possible to mitigate the risk of exploitation.

Cao's discovery highlights the importance of ongoing security research and the need to remain vigilant against potential vulnerabilities in widely used software libraries. Vulnerabilities in such libraries can have far-reaching consequences, potentially affecting numerous applications and systems that rely on them.

To further mitigate the risk of exploitation, developers are advised to conduct regular vulnerability assessments and to keep their software up to date with the latest security patches. Additionally, developers should consider implementing other security mechanisms, such as threat modeling and input validation, to help prevent unauthorized access or actions.

In conclusion, the discovery of this vulnerability in Python's urllib.parse function serves as a reminder of the ongoing need for robust cybersecurity practices and the importance of staying vigilant against potential vulnerabilities in widely used software libraries.

About Yebo Cao:

Yebo Cao is an information security expert from Carnegie Mellon University who has been acknowledged by various companies, including Google, Microsoft, and Oracle, for discovering vulnerabilities in their products.

Learn more: https://pointernull.com/

https://www.linkedin.com/in/yebocao/

News from Yebo Cao

A vulnerability has been discovered in Python's native urllib.parse function (CVE-2023-24329) by cybersecurity researcher Yebo Cao. This vulnerability has the potential to enable server-side request forgery (SSRF) and remote code execution (RCE) in a wide range of scenarios by bypassing the protections set by the developer for scheme and host.

Related link: https://pointernull.com/

This version of news story was published on ScoopCloud™ (ScoopCloud.com) - part of and © the Neotrope® News Network - all rights reserved.

Berkeley Coding Academy Opens Doors with Summer Camp in Machine Learning and AI

BERKELEY, Calif. /ScoopCloud/ -- Berkeley Coding Academy, a new computer science team of credentialed teachers, is offering summer camps to empower youth in Python Programming, Data Analytics, Machine Learning, and Artificial Intelligence.

Machine Learning has not been an option for middle school and high school students until now. Machine Learning is the ability of computers to make predictions from data without being explicitly programmed. More importantly, Machine Learning allows systems to problem-solve and refine themselves again and again, making it the most valuable skill in the economy today.

Corey Wade, chair of the math department at Berkeley Independent Study and lead author of "The Python Workshop," developed BCA to bring Machine Learning to a wider and younger audience. A multiple grant award winner, Wade has run after school coding clubs with students to create iPhone Apps, design websites, and analyze big data. Wade realized that bringing Machine Learning to the high school curriculum, however, was a slow process. The urgency and potential of high school students to become acquainted with Machine Learning inspired Wade to start BCA right away.

BCA partnered with Hands-On!, Berkeley's first STEAM lab run by credentialed teacher Tracy Hollander. Hands-On! provides STEAM camps during summer for ages 5-11. BCA will provide Machine Learning & AI camps at the same location for ages 12-18. All instructors at BCA and Hands-On! are Berkeley credentialed teachers with deep experiences in the classroom.

According to Wade, "Many talented people understand Machine Learning, but very few teach Machine Learning to high school students. It's definitely a challenge. When I look at what my students accomplish in math, I know they can learn Machine Learning. Our students, given the right guidance and motivation, can do anything."

What makes BCA special is that Bay Area middle school and high school students now have the rare opportunity to learn Machine Learning & AI with an experienced and passionate teacher.

Here are 5 facts about Machine Learning & AI in the world today, from Finances Online. (https://financesonline.com/machine-learning-statistics/)

1. 80% of companies plan to adopt AI for customer service by 2020. (oracle.com)

2. 97% of mobile users use AI-powered voice assistants. (creativestrategies.com)

3. $28.5 billion - The total funding allocated to machine learning worldwide during the first quarter of 2019. (statista.com)

4. $13 trillion - The potential global economy that AI could deliver by 2030. (mckinsey.com)

5. 74% of companies say ML will transform jobs and industries. (memsql.com)

Here are 5 reasons why Bay Area students should enroll in a Machine Learning & AI summer camp with BCA.

1. Machine Learning is a game-changer - Students who build Machine Learning models will gain an edge. Machine Learning is usually reserved for upper division college students, graduates, and data science professionals. BCA changes the status quo by making Machine Learning available to teens.

2. Big data is bigger than ever - BCA students learn how to program in Python and analyze big data. Using Python to analyze big data is the work of a data analyst and typically commands a large salary.

3. Friendships and mentorships can transform lives - Learning from and working with like-minded peers can help solidify technical skills and forge lifelong friendships. Moreover, BCA encourages developing relationships with mentors, potentially leading to exciting opportunities that extend beyond summer.

4. Limitless opportunities for social impact - Working with big data and coding in Python is valuable to many people. Opportunities to help others in camp will arise, and opportunities to help local communities may surface.

5. BCA teaches professional coding skills through "real-world" datasets - The code that BCA teaches is the real deal. It's the same code used by professional data scientists.

For more information about BCA, visit https://www.berkeleycodingacademy.com/ - or email info@berkeleycodingacademy.com.

Media Contact:
Corey Wade
Founder, Director
Berkeley Coding Academy
corey[at]berkeleycodingacademy.com
(510) 270-5542

Social Media Links:
https://www.instagram.com/berkeleycodingacademy/
https://www.facebook.com/berkeleycodingacademy/
https://twitter.com/berkcodingacad
https://www.linkedin.com/company/berkeleycodingacademy/

News from Berkeley Coding Academy

Berkeley Coding Academy, a new computer science team of credentialed teachers, is offering summer camps to empower youth in Python Programming, Data Analytics, Machine Learning, and Artificial Intelligence.

Related link: https://www.berkeleycodingacademy.com/

This version of news story was published on ScoopCloud™ (ScoopCloud.com) - part of and © the Neotrope® News Network - all rights reserved.