{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-4+qual-2+sec-2","generated_at":"2026-11-13T23:37:21.347746Z","repo":{"ref":{"host":"github.com","owner":"matyhtf","name":"webim"},"default_branch":"2.0","clone_url":"https://github.com/matyhtf/webim.git","html_url":"https://github.com/matyhtf/webim","description":"使用PHP+Swoole实现的网页即时聊天工具","stars":1764,"forks":635,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":518,"primary_language":"PHP","license_spdx":null,"created_at":"2014-04-23T14:07:59Z","pushed_at":"2020-07-23T10:01:15Z","security_policy_url":null,"distribution":{"owner_created_at":"2012-07-21T13:45:32Z","owner_type":"User","release_assets":[]}},"commit_sha":"62b3f879eacfe6edf8e72a20970b01247de4ecb1","profile":{"lines_by_language":{"PHP":914,"JavaScript":543},"files_by_category":{"binary":27,"source":18,"other":4,"config":2,"docs":1,"vendored":1},"source_lines":1457,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.6,"coverage":1.0,"label":"none-detected","breakdown":{"attributed_share":0.0,"suspected_share":0.0,"estimated_share":0.0,"ai_artifacts":0.0,"flagged_work_units":0.0,"flagged_releases":null},"summary":"No AI attribution or AI-consistent velocity signals detected."},"quality":{"score":49.9,"confidence":0.9,"coverage":1.0,"label":"poor","breakdown":{"complexity":68.2,"duplication":100.0,"lint":65.1,"testing":0.0,"docs":40.0,"type_safety":null,"process":null},"summary":"Code quality is poor: test-to-source ratio 0.00, no CI test run detected; 13% of function code in complex or long functions; 0% duplicated lines. Weakest area: testing."},"security":{"score":45.3,"confidence":0.85,"coverage":1.0,"label":"poor","breakdown":{"secrets":96.7,"sast":3.7,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is poor: 3 high-severity SAST findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"analyzer":"sec-registry","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no registry dependencies declared"},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":81.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":4986.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2014-04":{"loc":1373,"attributed_loc":0},"2014-05":{"loc":17,"attributed_loc":0},"2014-08":{"loc":12,"attributed_loc":0},"2014-09":{"loc":16,"attributed_loc":0},"2014-10":{"loc":0,"attributed_loc":0},"2014-11":{"loc":374,"attributed_loc":0},"2014-12":{"loc":0,"attributed_loc":0},"2015-01":{"loc":2,"attributed_loc":0},"2015-02":{"loc":1586,"attributed_loc":0},"2015-03":{"loc":0,"attributed_loc":0},"2015-07":{"loc":7,"attributed_loc":0},"2016-08":{"loc":34,"attributed_loc":0},"2016-09":{"loc":39,"attributed_loc":0},"2016-11":{"loc":23,"attributed_loc":0},"2016-12":{"loc":5,"attributed_loc":0},"2017-01":{"loc":154,"attributed_loc":0},"2017-02":{"loc":176,"attributed_loc":0},"2017-07":{"loc":6,"attributed_loc":0},"2019-10":{"loc":1162,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":0.0,"workflow_agents":0.0,"tools_configured":0.0},"findings":[],"evidence":[],"data":{"artifacts":[],"workflows":[],"tools":[]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":31.0,"flagged_units":0.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":4986.0,"pre_ai_era_burst_loc":0.0,"measured_loc":4986.0,"flagged_loc":0.0,"flagged_loc_share":0.0,"max_loc_per_hour":451.42162818955046,"median_loc_per_hour":97.95356650657874,"pr_timed_units":0.0,"excluded_import_loc":0.0},"findings":[],"evidence":[],"data":{"flagged_loc_by_commit":{},"excluded_import_commits":[]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":1457.0,"index":0.0,"count:narrated_steps":0.0,"per_kloc:narrated_steps":0.0,"files:narrated_steps":0.0,"count:placeholder":0.0,"per_kloc:placeholder":0.0,"files:placeholder":0.0,"count:emoji_in_code":0.0,"per_kloc:emoji_in_code":0.0,"files:emoji_in_code":0.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":1.0},"findings":[{"rule_id":"gitleaks/generic-api-key","severity":"low","message":"Possible generic-api-key secret in history (commit 7f2d74146c); removed from the current tree but still retrievable","path":"log/webim.log","line":662,"fingerprint":"7f2d74146c8c74f9f6f2a1a7d7fc1059172d0b66:log/webim.log:generic-api-key:662"}],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":49.0,"findings_high":3.0,"findings_medium":46.0,"findings_low":0.0,"weighted_findings":13.75,"scanned_lines":1457.0,"parse_errors":2.0},"findings":[{"rule_id":"opengrep/javascript.lang.security.detect-insecure-websocket","severity":"high","message":"Insecure WebSocket Detected. WebSocket Secure (wss) should be used for all WebSocket connections. [confidence low]","path":"resources/static/js/comet.js","line":2,"fingerprint":"javascript.lang.security.detect-insecure-websocket:resources/static/js/comet.js:2"},{"rule_id":"opengrep/javascript.lang.security.detect-insecure-websocket","severity":"high","message":"Insecure WebSocket Detected. WebSocket Secure (wss) should be used for all WebSocket connections. [confidence low]","path":"src/Server.php","line":107,"fingerprint":"javascript.lang.security.detect-insecure-websocket:src/Server.php:107"},{"rule_id":"opengrep/javascript.lang.security.detect-insecure-websocket","severity":"high","message":"Insecure WebSocket Detected. WebSocket Secure (wss) should be used for all WebSocket connections. [confidence low]","path":"src/Server.php","line":109,"fingerprint":"javascript.lang.security.detect-insecure-websocket:src/Server.php:109"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-dynamic-method","severity":"medium","message":"Using non-static data to retrieve and run functions from the object is dangerous. If the data is user-controlled, it may allow executing arbitrary code. [confidence low]","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.security.audit.unsafe-dynamic-method:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":77,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:77"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":77,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:77"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":120,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:120"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":120,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:120"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":121,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:121"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":121,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:121"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.append(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":155,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:155"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.append(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":160,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:160"},{"rule_id":"opengrep/javascript.browser.security.eval-detected","severity":"medium","message":"Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. [confidence low]","path":"resources/static/js/chat.js","line":177,"fingerprint":"javascript.browser.security.eval-detected:resources/static/js/chat.js:177"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":195,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:195"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":195,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:195"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":198,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:198"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":198,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:198"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":233,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:233"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":233,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:233"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.append(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":235,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:235"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":235,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:235"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-selector","severity":"medium","message":"User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":295,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-selector:resources/static/js/chat.js:295"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-selector","severity":"medium","message":"User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":296,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-selector:resources/static/js/chat.js:296"},{"rule_id":"opengrep/javascript.jquery.security.audit.jquery-insecure-method","severity":"medium","message":"User controlled data in a jQuery's `.html(...)` is an anti-pattern that can lead to XSS vulnerabilities [confidence low]","path":"resources/static/js/chat.js","line":339,"fingerprint":"javascript.jquery.security.audit.jquery-insecure-method:resources/static/js/chat.js:339"},{"rule_id":"opengrep/javascript.jquery.security.audit.prohibit-jquery-html","severity":"medium","message":"JQuery's `html` function is susceptible to Cross Site Scripting (XSS) attacks. If you're just passing text, consider `text` instead. Otherwise, use a function that escapes HTML such as edX's `HtmlUtils.setHtml()`. [confidence low]","path":"resources/static/js/chat.js","line":339,"fingerprint":"javascript.jquery.security.audit.prohibit-jquery-html:resources/static/js/chat.js:339"},{"rule_id":"opengrep/javascript.browser.security.eval-detected","severity":"medium","message":"Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. [confidence low]","path":"resources/static/js/jquery.json.js","line":20,"fingerprint":"javascript.browser.security.eval-detected:resources/static/js/jquery.json.js:20"},{"rule_id":"opengrep/javascript.browser.security.eval-detected","severity":"medium","message":"Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources. [confidence low]","path":"resources/static/js/jquery.json.js","line":20,"fingerprint":"javascript.browser.security.eval-detected:resources/static/js/jquery.json.js:20"},{"rule_id":"opengrep/php.lang.security.unserialize-use","severity":"medium","message":"Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low]","path":"src/Server.php","line":48,"fingerprint":"php.lang.security.unserialize-use:src/Server.php:48"},{"rule_id":"opengrep/php.lang.security.unserialize-use","severity":"medium","message":"Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers). [confidence low]","path":"src/Server.php","line":72,"fingerprint":"php.lang.security.unserialize-use:src/Server.php:72"}],"evidence":[],"data":{"rulesets":["php","javascript"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":0.0,"signed_commit_share":0.0,"unpinned_manifests":1.0},"findings":[],"evidence":[{"kind":"posture","description":"composer.json has no lockfile alongside it (unpinned dependencies)","ref":"composer.json","url":null,"weight":0.3}],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":0.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[],"data":{"signals":[],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":268.0,"function_nloc":1104.0,"mean_ccn":2.62,"p90_ccn":5.0,"complex_functions":1.0,"long_functions":1.0,"many_param_functions":0.0,"risky_nloc_share":0.1277},"findings":[],"evidence":[{"kind":"complex-function","description":"$.toJSON in resources/static/js/jquery.json.js: complexity 25, 19 lines","ref":"resources/static/js/jquery.json.js","url":"https://github.com/matyhtf/webim/blob/62b3f879eacfe6edf8e72a20970b01247de4ecb1/resources/static/js/jquery.json.js#L2","weight":0.4166666666666667},{"kind":"complex-function","description":"Server::run in src/Server.php: complexity 15, 122 lines","ref":"src/Server.php","url":"https://github.com/matyhtf/webim/blob/62b3f879eacfe6edf8e72a20970b01247de4ecb1/src/Server.php#L75","weight":0.25}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":1017.0,"duplicated_lines":0.0,"duplicated_share":0.0,"files":18.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":7.0,"weighted_findings":2.5,"scanned_lines":1457.0,"category:best-practice":1.0,"category:correctness":6.0},"findings":[{"rule_id":"opengrep/javascript.lang.best-practice.javascript-alert","severity":"medium","message":"found alert() call; should this be in production code?","path":"resources/static/js/comet.js","line":73,"fingerprint":"javascript.lang.best-practice.javascript-alert:resources/static/js/comet.js:73"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`i` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`i` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`i` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`r` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`n` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"},{"rule_id":"opengrep/javascript.lang.correctness.useless-assignment","severity":"low","message":"`t` is assigned twice; the first assignment is useless","path":"resources/static/js/bootstrap.js","line":6,"fingerprint":"javascript.lang.correctness.useless-assignment:resources/static/js/bootstrap.js:6"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":0.0,"check:test_ratio":0.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0,"test_lines":0.0,"source_lines":1457.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":52.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":0.0,"check:contributing":0.0,"check:changelog":0.0,"readme_lines":64.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}