René's URL Explorer Experiment


Title: Arbitrary javascript injection(Security issue) · Issue #10325 · GoogleCloudPlatform/python-docs-samples · GitHub

Open Graph Title: Arbitrary javascript injection(Security issue) · Issue #10325 · GoogleCloudPlatform/python-docs-samples

X Title: Arbitrary javascript injection(Security issue) · Issue #10325 · GoogleCloudPlatform/python-docs-samples

Description: Multiple reflected XSS in the sample python applications of google cloud. Description In the main.py file under 'github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_python3/bundled-services/mail/flask', the fl...

Open Graph Description: Multiple reflected XSS in the sample python applications of google cloud. Description In the main.py file under 'github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_pyth...

X Description: Multiple reflected XSS in the sample python applications of google cloud. Description In the main.py file under 'github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_...

Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Arbitrary javascript injection(Security issue)","articleBody":"# Multiple reflected XSS in the sample python applications of google cloud.\r\n\r\n# Description\r\n\r\nIn the main.py file under 'github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_python3/bundled-services/mail/flask', the flask application accepts user input and injects it to html body without any sanitisation.\r\n\r\n# Steps to reproduce\r\n\r\n1. Set up https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_python3/bundled-services/mail/flask/main.py by following the proper steps.\r\n2. Run main.py after adding the listener ip and port at the end of main.py\r\n```\r\nif __name__ == \"__main__\":\r\n    app.run(host=\"127.0.0.1\", port=8080, debug=True)\r\n```\r\n5. Go the web interface.\r\n6. Give a basic xss payload after closing the existing script tag as the input of the email field.\r\n\r\n```\r\n\u003c/script>\u003cscript>alert(1)\u003c/script>\r\n```\r\n\r\n7. In the main.py file wherever the address variable is called, script will be injected into the corresponding html, and the alert will pop up, even in the exception page.\r\n\r\n# POC\r\n![appEnginemailService](https://github.com/GoogleCloudPlatform/python-docs-samples/assets/65720815/e1dbf300-643d-4b0b-a149-b3c511d2c83b)\r\n![appenigne2](https://github.com/GoogleCloudPlatform/python-docs-samples/assets/65720815/cce6c200-855f-4b41-87cc-835d2ccbf662)\r\n\r\nThe below line of code is where I took the poc from.\r\nhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/68fa027b74e70ac14a6486cecea12ddb6af584f7/appengine/standard_python3/bundled-services/mail/flask/main.py#L68\r\n\r\nAll the places like wherever the {address} is called xss can happen, and if the {message} also takes input and is injected to html, that can also cause XSS\r\n\r\nI am reporting this here because it does not have an impact that requires me to report it to the vulnerability program. I found this while checking out google cloud, console, shell etc.","author":{"url":"https://github.com/retrymp3","@type":"Person","name":"retrymp3"},"datePublished":"2023-06-27T16:28:01Z","url":"https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:647f717b-9456-628f-1a41-e13bf86ff29c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB508:317709:4D6DC4:620E92:6B035D36
html-safe-nonce6e9e964212872696e35db91796101c072822dfe3f5319f24d1cefaee67d9bd1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTA4OjMxNzcwOTo0RDZEQzQ6NjIwRTkyOjZCMDM1RDM2IiwidmlzaXRvcl9pZCI6IjgwOTk4NTM4ODAxNTE3Mjc0MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac38fdd89f9b81c1eadab627901e711d7ba6c490ae0d34c7e96a7a19cce0b1c97e
hovercard-subject-tagissue:1777340542
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GoogleCloudPlatform/python-docs-samples/10325/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a7d3793357d3ee05a193b5a5ddc0a877cca2469740c01f61caef137266b7e61c/GoogleCloudPlatform/python-docs-samples/issues/10325
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7d3793357d3ee05a193b5a5ddc0a877cca2469740c01f61caef137266b7e61c/GoogleCloudPlatform/python-docs-samples/issues/10325
og:image:altMultiple reflected XSS in the sample python applications of google cloud. Description In the main.py file under 'github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_pyth...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameretrymp3
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git
octolytics-dimension-user_id2810941
octolytics-dimension-user_loginGoogleCloudPlatform
octolytics-dimension-repository_id35065876
octolytics-dimension-repository_nwoGoogleCloudPlatform/python-docs-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35065876
octolytics-dimension-repository_network_root_nwoGoogleCloudPlatform/python-docs-samples
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F10325
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F10325
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=GoogleCloudPlatform%2Fpython-docs-samples
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
Reloadhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
GoogleCloudPlatformhttps://github.com/GoogleCloudPlatform
python-docs-sampleshttps://github.com/GoogleCloudPlatform/python-docs-samples
Codehttps://github.com/GoogleCloudPlatform/python-docs-samples
Issues48 (48)https://github.com/GoogleCloudPlatform/python-docs-samples/issues
Pull requests242 (242)https://github.com/GoogleCloudPlatform/python-docs-samples/pulls
Actionshttps://github.com/GoogleCloudPlatform/python-docs-samples/actions
Wikihttps://github.com/GoogleCloudPlatform/python-docs-samples/wiki
Security and qualityhttps://github.com/GoogleCloudPlatform/python-docs-samples/security
Insightshttps://github.com/GoogleCloudPlatform/python-docs-samples/insights
https://github.com/GoogleCloudPlatform/python-docs-samples
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
New issuehttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
Arbitrary javascript injection(Security issue)https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#top
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
https://github.com/engelke
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
samplesIssues that are directly related to samples.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22samples%22
triage meI really want to be triaged.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22triage%20me%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/retrymp3
retrymp3https://github.com/retrymp3
on Jun 27, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issue-1777340542
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_python3/bundled-services/mail/flask/main.pyhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/appengine/standard_python3/bundled-services/mail/flask/main.py
https://private-user-images.githubusercontent.com/65720815/249219725-e1dbf300-643d-4b0b-a149-b3c511d2c83b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzODI4ODIsIm5iZiI6MTc5NTM4MjU4MiwicGF0aCI6Ii82NTcyMDgxNS8yNDkyMTk3MjUtZTFkYmYzMDAtNjQzZC00YjBiLWExNDktYjNjNTExZDJjODNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPU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0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.RJec0X4tAOrDJUugiw4H798S2pDvLCWUYZixuj3F0QY
python-docs-samples/appengine/standard_python3/bundled-services/mail/flask/main.pyhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/68fa027b74e70ac14a6486cecea12ddb6af584f7/appengine/standard_python3/bundled-services/mail/flask/main.py#L68
68fa027https://github.com/GoogleCloudPlatform/python-docs-samples/commit/68fa027b74e70ac14a6486cecea12ddb6af584f7
retrymp3https://github.com/retrymp3
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
triage meI really want to be triaged.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22triage%20me%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
on Jun 27, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9654570450
product-auto-labelhttps://github.com/apps/product-auto-label
samplesIssues that are directly related to samples.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22samples%22
on Jun 27, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9654571638
blunderbuss-gcfhttps://github.com/apps/blunderbuss-gcf
nicainhttps://github.com/nicain
on Jun 27, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9654572954
averikitschhttps://github.com/averikitsch
engelkehttps://github.com/engelke
nicainhttps://github.com/nicain
on Jun 29, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9682101941
https://github.com/engelke
engelkehttps://github.com/engelke
on Jun 29, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1613891048
retrymp3https://github.com/retrymp3
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9690220735
FIx for issue: GoogleCloudPlatform#10325https://github.com/retrymp3/python-docs-samples/commit/451a4cc8925c719f018b5e1d751458b2106d8ffc
GoogleCloudPlatform#10325https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
451a4cchttps://github.com/retrymp3/python-docs-samples/commit/451a4cc8925c719f018b5e1d751458b2106d8ffc
https://github.com/retrymp3
retrymp3https://github.com/retrymp3
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1614973625
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
@engelkehttps://github.com/engelke
https://github.com/engelke
engelkehttps://github.com/engelke
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1615208929
engelkehttps://github.com/engelke
completedhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9692017775
https://github.com/engelke
engelkehttps://github.com/engelke
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1615220581
engelkehttps://github.com/engelke
on Jun 30, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9692098461
https://github.com/retrymp3
retrymp3https://github.com/retrymp3
on Jul 1, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1616186658
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
@engelkehttps://github.com/engelke
engelkehttps://github.com/engelke
completedhttps://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
on Jul 2, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9700379569
engelkehttps://github.com/engelke
on Jul 2, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#event-9700379707
FIx for arbitrary javascript injection (#10341)https://github.com/GoogleCloudPlatform/python-docs-samples/commit/f95a46f1eb6beea0d555ceb16c81eb21c0d1a818
#10341https://github.com/GoogleCloudPlatform/python-docs-samples/pull/10341
f95a46fhttps://github.com/GoogleCloudPlatform/python-docs-samples/commit/f95a46f1eb6beea0d555ceb16c81eb21c0d1a818
https://github.com/engelke
engelkehttps://github.com/engelke
on Jul 2, 2023https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325#issuecomment-1616700062
Sign up for freehttps://github.com/signup?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
Sign in to commenthttps://github.com/login?return_to=https://github.com/GoogleCloudPlatform/python-docs-samples/issues/10325
engelkehttps://github.com/engelke
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
samplesIssues that are directly related to samples.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22samples%22
triage meI really want to be triaged.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22triage%20me%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/GoogleCloudPlatform/python-docs-samples/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.