{"id":13843075,"url":"https://github.com/jorgectf/spring-cloud-function-spel","last_synced_at":"2025-07-11T17:33:32.392Z","repository":{"id":104257790,"uuid":"476308488","full_name":"jorgectf/spring-cloud-function-spel","owner":"jorgectf","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-31T13:24:46.000Z","size":1582,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T17:35:56.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jorgectf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-31T13:03:16.000Z","updated_at":"2024-03-15T06:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdee09ab-8668-4903-8d6e-1e7e4f294d91","html_url":"https://github.com/jorgectf/spring-cloud-function-spel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgectf%2Fspring-cloud-function-spel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgectf%2Fspring-cloud-function-spel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgectf%2Fspring-cloud-function-spel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgectf%2Fspring-cloud-function-spel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorgectf","download_url":"https://codeload.github.com/jorgectf/spring-cloud-function-spel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225745443,"owners_count":17517643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T17:01:54.544Z","updated_at":"2024-11-21T14:30:43.141Z","avatar_url":"https://github.com/jorgectf.png","language":"Java","readme":"# Spring Cloud Function - SpEL Injection (CVE-2022-22963)\n\n```\ncd spring-cloud-function-samples/function-sample-pojo \u0026\u0026 mvn clean package -DskipTests \u0026\u0026 java -jar target/function-sample-pojo-2.0.0.RELEASE.jar\n```\n\n```\ncodeql database create spring-cloud-function-3.2.X-DB -l java -j0 --search-path /path/to/codeql -c \"./mvnw compile -P all -DskipTests -Dos.arch=x86_64\"\n```\n\nFix commit: https://github.com/spring-cloud/spring-cloud-function/commit/dc5128b80c6c04232a081458f637c81a64fa9b52\n\n### Research\n\n* https://mp.weixin.qq.com/s/ssHcLC72wZqzt-ei_ZoLwg\n* https://hosch3n.github.io/2022/03/26/SpringCloudFunction%E6%BC%8F%E6%B4%9E%E5%88%86%E6%9E%90/\n* https://mp.weixin.qq.com/s/U7YJ3FttuWSOgCodVSqemg\n* https://github.com/lunasec-io/lunasec/blob/master/docs/blog/2022-03-30-spring-core-rce.mdx#cve-2022-22963\n\n### POCs\n\n* https://github.com/hktalent/spring-spel-0day-poc\n* https://github.com/RanDengShiFu/CVE-2022-22963\n\n### CodeQL quick\u0026dirty Source\n\nAdd to `java/ql/lib/Customizations.qll`\n\n```codeql\nprivate import semmle.code.java.dataflow.FlowSources\n\nclass SpringMessage extends DataFlow::Node, RemoteFlowSource {\n  SpringMessage() {\n    this.asExpr() =\n      any(MethodAccess m |\n        m.getMethod()\n            .hasQualifiedName(\"org.springframework.messaging\",\n              any(string s | s.matches(\"Message%\")), \"get\")\n      )\n  }\n\n  override string getSourceType() { result = \"org.springframework.messaging.Message\" }\n}\n```","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgectf%2Fspring-cloud-function-spel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorgectf%2Fspring-cloud-function-spel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgectf%2Fspring-cloud-function-spel/lists"}