信息化2.13.2(及定制化2.13.2)版本包含及以下,swagger 敏感信息泄露,存在越权访问

漏洞:swagger 敏感信息泄露,存在越权访问
修复方案:积⽊报表(8887)关闭 swagger 访问
参考文档:/attached/file/20250924/20250924233050_345.pdf
验证步骤
1、未修复前访问 http://ip:8887/v2/api-docs
有类似以下信息返回,则问题复现

  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "五位⼀体",
  5. "version": "1.0",
  6. "title": "五位⼀体"
  7. },
  8. "host": "localhost:8887",
  9. "basePath": "/",
  10. "tags": [
  11. {
  12. "name": "index-controller",
  13. "description": "Index Controller"
  14. },
  15. ...
  16. ],
  17. "paths": {
  18. "/": {
  19. "get": {
  20. "tags": [
  21. "index-controller"
  22. ],
  23. "summary": "index",
  24. "operationId": "indexUsingGET",
  25. "produces": [
  26. "*/*"
  27. ],
  28. "responses": {
  29. "200": {
  30. "description": "OK",
  31. "schema": {
  32. "type": "string"
  33. }
  34. },
  35. "401": {
  36. "description": "Unauthorized"
  37. },
  38. "403": {
  39. "description": "Forbidden"
  40. },
  41. "404": {
  42. "description": "Not Found"
  43. }
  44. },
  45. "deprecated": false,
  46. "x-order": "2147483647"
  47. }
  48. },
  49. ...
  50. },
  51. "definitions": {
  52. "ResultBean": {
  53. "type": "object",
  54. "properties": {
  55. "code": {
  56. "type": "integer",
  57. "format": "int32"
  58. },
  59. "data": {"type": "object"
  60. },
  61. "length": {
  62. "type": "integer",
  63. "format": "int64"
  64. },
  65. "msg": {
  66. "type": "string"
  67. }
  68. },
  69. "title": "ResultBean"
  70. }
  71. }
  72. }

2、修复操作替换积⽊报表包
1)备份原代码包

  1. mv /home/seekcy/wwyt/report-center/report-center.jar /home/seekcy/wwyt/report center/report-center-`date +%F`.jar

2)上传补丁包
补丁包下载 http://oss-endpoint.joysuch.com/tiji-platform/2x-hse/hotfix-package/report-center-GD20250603-0032.jar
放到 /home/seekcy/wwyt/report-center ⽂件夹下
执⾏以下命令,重命名并重启积⽊报表

  1. mv /home/seekcy/wwyt/report-center/report-center-GD20250603-0032.jar /home/seekcy/wwyt/report-center/report-center.jar
  2. sh /home/seekcy/wwyt/report-center/service-report.sh

3、修复后访问 http://ip:8887/v2/api-docs

如上图所示,即修复完成

转载请注明作者和出处,并添加本页链接。
原文链接: //svn.seekcy.com/830