Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git*

locales/po/*.mo
.omc/
2 changes: 1 addition & 1 deletion linux_wmi.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function retrieve_account() {

function decode($info) {
$info = base64_decode($info);
$info = unserialize($info);
$info = unserialize($info, array('allowed_classes' => false));
$info = $info['password'];
Comment on lines 291 to 293
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unserialize() (even with allowed_classes => false) and base64_decode() can return false on malformed/corrupt data. Immediately indexing $info['password'] will raise warnings/notices and may break authentication flow. Consider validating that the decoded/unserialized value is an array with the expected key (and returning a safe failure / setting $this->error) when decoding fails.

Copilot uses AI. Check for mistakes.

return $info;
Expand Down