René's URL Explorer Experiment


Title: Bugs found in ehsm · Issue #265 · intel/ehsm · GitHub

Open Graph Title: Bugs found in ehsm · Issue #265 · intel/ehsm

X Title: Bugs found in ehsm · Issue #265 · intel/ehsm

Description: Hello~ Heap OOB enclave_decrypt defined in EDL set cmk_size as cmk's size, but attacker can feed cmk_size smaller then sizeof(ehsm_keyblob_t), and TBridge only malloc cmk_size for it. public sgx_status_t enclave_decrypt([in, size=cmk_siz...

Open Graph Description: Hello~ Heap OOB enclave_decrypt defined in EDL set cmk_size as cmk's size, but attacker can feed cmk_size smaller then sizeof(ehsm_keyblob_t), and TBridge only malloc cmk_size for it. public sgx_st...

X Description: Hello~ Heap OOB enclave_decrypt defined in EDL set cmk_size as cmk's size, but attacker can feed cmk_size smaller then sizeof(ehsm_keyblob_t), and TBridge only malloc cmk_size for it. public sg...

Opengraph URL: https://github.com/intel/ehsm/issues/265

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bugs found in ehsm","articleBody":"Hello~\r\n\r\n# Heap OOB\r\n`enclave_decrypt` defined in EDL set `cmk_size` as `cmk`'s size, but attacker can feed `cmk_size` smaller then `sizeof(ehsm_keyblob_t)`, and TBridge only `malloc` `cmk_size` for it.\r\n```c\r\npublic sgx_status_t enclave_decrypt([in, size=cmk_size] ehsm_keyblob_t* cmk, size_t cmk_size,\r\n                            [in, size=aad_size] ehsm_data_t *aad, size_t aad_size,\r\n                            [in, size=ciphertext_size] ehsm_data_t *ciphertext, size_t ciphertext_size,\r\n                            [in, out, size=plaintext_size] ehsm_data_t *plaintext, size_t plaintext_size);\r\n```\r\nThen in function `enclave_decrypt`, `cmk-\u003ekeybloblen` will out-of-bound access invalid memory, e.g. `cmk-\u003ekeybloblen` is at offset 0x30, but `cmk_size` is fed with 0x20.\r\n\r\n```\r\nsgx_status_t enclave_decrypt(ehsm_keyblob_t *cmk, size_t cmk_size,\r\n                             ehsm_data_t *aad, size_t aad_size,\r\n                             ehsm_data_t *ciphertext, size_t ciphertext_size,\r\n                             ehsm_data_t *plaintext, size_t plaintext_size)\r\n{\r\n    sgx_status_t ret = SGX_ERROR_UNEXPECTED;\r\n\r\n    if (cmk == NULL ||\r\n        cmk_size != APPEND_SIZE_TO_KEYBLOB_T(cmk-\u003ekeybloblen) ||\r\n        cmk-\u003ekeybloblen == 0 ||\r\n        cmk-\u003emetadata.origin != EH_INTERNAL_KEY)\r\n        return SGX_ERROR_INVALID_PARAMETER;\r\n    ...\r\n}\r\n```","author":{"url":"https://github.com/LeoneChen","@type":"Person","name":"LeoneChen"},"datePublished":"2023-06-01T18:09:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":23},"url":"https://github.com/265/ehsm/issues/265"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:724c09c0-4ab1-136c-9f36-e55b6ef39adf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB8C6:1B0862:75F4B:A08A9:6A4BBCDF
html-safe-nonce6c4c1a3aac2060267c31c3674062554ae3575f39dfba12c273fafcddba0a2f19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM2OjFCMDg2Mjo3NUY0QjpBMDhBOTo2QTRCQkNERiIsInZpc2l0b3JfaWQiOiI3ODIzNTIzNjM0Mjk5NTE4MTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac36e57f4c13f5afab31e3d559726a0f709b9c0d79a61ce148eb74b8fdc3c6646b
hovercard-subject-tagissue:1736833683
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/intel/ehsm/265/issue_layout
twitter:imagehttps://opengraph.githubassets.com/659ea3fb780f80270786eb7a8302c59680149f110f5f61b2f8e73f3b6b6a47f8/intel/ehsm/issues/265
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/659ea3fb780f80270786eb7a8302c59680149f110f5f61b2f8e73f3b6b6a47f8/intel/ehsm/issues/265
og:image:altHello~ Heap OOB enclave_decrypt defined in EDL set cmk_size as cmk's size, but attacker can feed cmk_size smaller then sizeof(ehsm_keyblob_t), and TBridge only malloc cmk_size for it. public sgx_st...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLeoneChen
hostnamegithub.com
expected-hostnamegithub.com
Noneae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1
turbo-cache-controlno-preview
go-importgithub.com/intel/ehsm git https://github.com/intel/ehsm.git
octolytics-dimension-user_id17888862
octolytics-dimension-user_loginintel
octolytics-dimension-repository_id396977754
octolytics-dimension-repository_nwointel/ehsm
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id396977754
octolytics-dimension-repository_network_root_nwointel/ehsm
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
releaseb15c57117aeff522995a9578e1185f6c45d6c562
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/intel/ehsm/issues/265#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fintel%2Fehsm%2Fissues%2F265
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fintel%2Fehsm%2Fissues%2F265
Sign up https://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=intel%2Fehsm
Reloadhttps://github.com/intel/ehsm/issues/265
Reloadhttps://github.com/intel/ehsm/issues/265
Reloadhttps://github.com/intel/ehsm/issues/265
Please reload this pagehttps://github.com/intel/ehsm/issues/265
intel https://github.com/intel
ehsmhttps://github.com/intel/ehsm
Notifications https://github.com/login?return_to=%2Fintel%2Fehsm
Fork 54 https://github.com/login?return_to=%2Fintel%2Fehsm
Star 168 https://github.com/login?return_to=%2Fintel%2Fehsm
Code https://github.com/intel/ehsm
Issues 7 https://github.com/intel/ehsm/issues
Pull requests 2 https://github.com/intel/ehsm/pulls
Actions https://github.com/intel/ehsm/actions
Projects https://github.com/intel/ehsm/projects
Security and quality 0 https://github.com/intel/ehsm/security
Insights https://github.com/intel/ehsm/pulse
Code https://github.com/intel/ehsm
Issues https://github.com/intel/ehsm/issues
Pull requests https://github.com/intel/ehsm/pulls
Actions https://github.com/intel/ehsm/actions
Projects https://github.com/intel/ehsm/projects
Security and quality https://github.com/intel/ehsm/security
Insights https://github.com/intel/ehsm/pulse
Bugs found in ehsmhttps://github.com/intel/ehsm/issues/265#top
https://github.com/LeoneChen
LeoneChenhttps://github.com/LeoneChen
on Jun 1, 2023https://github.com/intel/ehsm/issues/265#issue-1736833683
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

Viewport: width=device-width


URLs of crawlers that visited me.