Created
January 23, 2017 22:06
-
-
Save stevepiercy/5b8dd3d67edf7aa61671395d3ea167ab to your computer and use it in GitHub Desktop.
A failed attempt to demonstrate the knop_seed and blowfish_encrypt bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?lasso | |
// Demo of blowfish issue | |
define knop_seedbug => { | |
local('seed'= string( server_ip) + string( server_name) + response_localpath) | |
#seed -> removetrailing(response_filepath) | |
return #seed | |
} | |
define knop_blowfishbug => type { | |
data public lock_seed::string | |
public oncreate() => { | |
.'lock_seed' = knop_seed | |
} | |
public bug() => { | |
local( | |
lock = null, | |
lockvalue='kf6SGKT//LEWzqrC', | |
lockfield = string, | |
// lock_seed = knop_seed, | |
lock_seed = knop_seedbug, | |
record_lock = '1|1485205046', | |
) | |
return decrypt_blowfish(decode_base64(#lockvalue), -seed = .'lock_seed') | |
} | |
} | |
// date | |
// '<br>' | |
// decrypt_blowfish(decode_base64(#lockvalue), -seed = #lock_seed) | |
// '<br>' | |
date | |
'<br>' | |
local(b) = knop_blowfishbug() | |
#b -> bug | |
?> | |
<!-- | |
kf6SGKT//LEWzqrC | ������Ϊ� | ="㢶(2hƆ= | ="㢶(2hƆ= | string | string | | |
127.0.0.1knop9//Users/stevepiercy/projects/knop-project/knop9/demo | |
| true 9999 | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See knop-project/knop#131