Bug Assert\InvalidArgumentException: Invalid data

Status
Not open for further replies.

SeToY

Customer
Hello,

I'm getting the following error:

Code:
Server error log
[LIST]
[*]Assert\InvalidArgumentException: Invalid data
[*]src\addons\DBTech\Security\vendor\beberlei\assert\lib\Assert\Assertion.php:2752
[*]Generated by: Username
[*]22 Apr 2020 at 18:01
[/LIST]
Stack trace
#0 src\addons\DBTech\Security\vendor\beberlei\assert\lib\Assert\Assertion.php(319): Assert\Assertion::createException(0, 'Invalid data', 33, NULL, Array)
#1 src\addons\DBTech\Security\vendor\web-auth\webauthn-lib\src\PublicKeyCredentialLoader.php(78): Assert\Assertion::eq(0, 4, 'Invalid data')
#2 src\addons\DBTech\Security\vendor\web-auth\webauthn-lib\src\Server.php(201): Webauthn\PublicKeyCredentialLoader->load('')
#3 src\addons\DBTech\Security\Tfa\WebAuthn.php(218): Webauthn\Server->loadAndCheckAttestationResponse('', Object(Webauthn\PublicKeyCredentialCreationOptions), Object(Nyholm\Psr7\ServerRequest))
#4 src\XF\Pub\Controller\Account.php(897): DBTech\Security\Tfa\WebAuthn->verify('setup', Object(SV\SignupAbuseBlocking\XF\Entity\User), Array, Object(XF\Http\Request))
#5 src\XF\Mvc\Dispatcher.php(350): XF\Pub\Controller\Account->actionTwoStepEnable(Object(XF\Mvc\ParameterBag))
#6 src\XF\Mvc\Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'TwoStepenable', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#7 src\XF\Mvc\Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#8 src\XF\Mvc\Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src\XF\App.php(2184): XF\Mvc\Dispatcher->run()
#10 src\XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(46) "/account/two-step/dbtech_security_authn/enable"
["referrer"] => string(82) "https://domain.com/account/two-step/dbtech_security_authn/enable"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["nickname"] => string(10) "Username"
["publicKeyCredential"] => string(0) ""
["step"] => string(7) "confirm"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(46) "/account/two-step/dbtech_security_authn/enable"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Is there anything that can be done (as in "unsupported device" you mean an unsupported security device?) as to not throw a server error (or rather a user error) for that?

Ref: https://xenforo.com/community/threads/dbtech-dragonbyte-security-paid.137963/post-1420045
 
Having looked into the code, this is working as intended. As far as I can tell, there's no way to tell whether the exception is thrown because of an unsupported device, or whether it's because of some other issue.

Hence, all exceptions should be logged, and an error message thrown to the user.

What error message is the user seeing just now? The devices I used for testing were all supported by the underlying library.
 
Hello @SeToY,

We hope your ticket regarding DragonByte Security has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @SeToY,

As we have not heard back from you, your ticket regarding DragonByte Security has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Security

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
2,344
Customer rating
5.00 star(s) 1 ratings
Back
Top