Public bug reported: All versions of package reportlab are vulnerable to Server-side Request Forgery (SSRF) via img tags. In order to reduce risk, use trustedSchemes & trustedHosts (see in Reportlab's documentation) Steps to reproduce by Karan Bamal: 1. Download and install the latest package of reportlab 2. Go to demos -> odyssey -> dodyssey 3. In the text file odyssey.txt that needs to be converted to pdf inject <img src="http://127.0.0.1:5000" valign="top"/> 4. Create a nc listener nc -lp 5000 5. Run python3 dodyssey.py 6. You will get a hit on your nc showing we have successfully proceded to send a server side request 7. dodyssey.py will show error since there is no img file on the url, but we are able to do SSRF
References: https://snyk.io/vuln/SNYK-PYTHON-REPORTLAB-1022145 https://www.cve.org/CVERecord?id=CVE-2020-28463 Bugs: ** Affects: python-reportlab in Extended Security Maintenance (DEPRECATED) Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab in ESM Apps Security Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab in ESM Infrastructure Legacy Security Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab in ESM Infrastructure Security Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab (Ubuntu) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab in Extended Security Maintenance (DEPRECATED) (Ubuntu Precise) Importance: Low Assignee: John Breton (john-breton) Status: Does Not Exist ** Affects: python-reportlab (Ubuntu Trusty) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab in ESM Infrastructure Legacy Security (Ubuntu Trusty) Importance: Low Assignee: John Breton (john-breton) Status: Does Not Exist ** Affects: python-reportlab in ESM Infrastructure Security (Ubuntu Trusty) Importance: Low Assignee: John Breton (john-breton) Status: Does Not Exist ** Affects: python-reportlab (Ubuntu Xenial) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab in ESM Infrastructure Legacy Security (Ubuntu Xenial) Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab in ESM Infrastructure Security (Ubuntu Xenial) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab (Ubuntu Bionic) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab in ESM Infrastructure Security (Ubuntu Bionic) Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab (Ubuntu Focal) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab in ESM Infrastructure Security (Ubuntu Focal) Importance: Low Assignee: John Breton (john-breton) Status: New ** Affects: python-reportlab (Ubuntu Groovy) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab (Ubuntu Hirsute) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab (Ubuntu Impish) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab (Ubuntu Jammy) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Kinetic) Importance: Low Assignee: John Breton (john-breton) Status: Won't Fix ** Affects: python-reportlab (Ubuntu Lunar) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Mantic) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Noble) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab in ESM Apps Security (Ubuntu Noble) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Oracular) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Plucky) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Questing) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Resolute) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab in ESM Apps Security (Ubuntu Resolute) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Stonking) Importance: Low Assignee: John Breton (john-breton) Status: Invalid ** Affects: python-reportlab (Ubuntu Tenacious) Importance: Low Assignee: John Breton (john-breton) Status: Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2188641 Title: CVE-2020-28463 To manage notifications about this bug go to: https://bugs.launchpad.net/~ubuntu-esm/+archive/ubuntu/esm/+source/python-reportlab/+bug/2188641/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
