WP Manifestindependent plugin directory
manifest / integrations / senhaunica-wordpress

Senha Única USP WP Registry grade B. Medium-severity findings · 2 findingsWP RegistryMedium-severity findings · 2 findingsOpen the reportB

Plugin wordpress para senha única USP

★ 1stars
2.0.3latest · 3 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/uspdev/senhaunica-wordpress/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Plugin senhaunica-wordpress Plugin wordpress para senha única USP Callback para cadastro: /?restroute=/senhaunica/login https://www.youtube.com/watch?v=Di7wjDGpFAg&t=163s Updates 9/5/2022 - versão 2.0.2 atualizado para senhaunica 2.0 que agora usa league/oauth1-client compatível com php 8 e WP 6.2 alterado o arquivo de configuração com novas opções Utilização O pacote atual, que inclui o vendor/ está empacotado para PHP 8.2. Caso seu PHP seja de versão anterior, pode ser necessário reeempacotar a pasta vendor/ copie todo o source para a pasta plugins do wordpress copie o arquivo config.example.php para config.php e ajuste as variáveis ative o plugin Exemplo Esta função está associada à um shortcode senhaunicademo. Ao carregar em uma página, caso não tenha feito login ainda, ele direcionará para o login USP e retornará na mesma página que o chamou e mostrará o retorno do oauth. O botão de logout serve para limpar os dados de oauth, e não para deslogar do WP. Plugins de interesse Session plugin https://wordpress.org/plugins/wp-native-php-sessions/#why%20store%20them%20in%20the%20database%3F This plugin implements PHP’s native session handlers, backed by the

Releases

5 releases.

Tag
Published
2.0.3 latest
May 9, 2023 3 years ago
May 9, 2023 3 years ago
May 3, 2023 3 years ago
May 3, 2023 3 years ago
Aug 11, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

B grade

Security

Senha Única USP 2.0.3 · audited by WP Registry

Medium-severity findings.

2 medium
Audited release
2.0.3
Findings
2
Worst severity
medium
Content hash
85734fb0ca9e5441091a0883…

Findings

  • medium REST routes use empty permission_callback

    missing_permission_callback

    register_rest_route for login/logout sets permission_callback to empty string. OAuth callbacks must be public, but empty string is non-callable and relies on ambiguous REST core handling; use __return_true explicitly and document public access.

    senhaunica-wordpress.php:25-39

    Recommendation

    Set permission_callback to '__return_true' for the OAuth callback routes.

  • medium SSO always assigns administrator role

    insecure_config

    loginUser() calls $obj_user->add_role('administrator') for every allowlisted Senha Única user. Misconfigured $senhaunicaAdmins / SENHAUNICA_ADMINS yields full admin privilege. Prefer mapping to a least-privilege role or explicit role config.

    senhaunica-wordpress.php:157-159

    Recommendation

    Make target role configurable and default to a non-administrator role; never hardcode administrator.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.