
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
AspNetCore.WebApi.GoogleReCaptcha
Advanced tools
This package, use for only "Web API" captcha validation use
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddReCaptcha(opt =>
{
opt.Secret = "your_secret";
opt.Defaults.Input = InputType.Body;
opt.Defaults.InputName = "g-captcha-response";
});
}
OR
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddReCaptcha();
}
appsettings.json
"ReCaptcha":{
"Secret":"your_secret"
}
[ReCaptcha]
attributepublic class HomeController: ControllerBase
{
[HttpPost]
[ReCaptcha]
public async Task<IActionResult> ForgotPassword()
{
return Ok();
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" ></script>
<script type="text/javascript">
$(function(){
$('button').click(function(){
$.ajax({
url:"your_api_endpoint",
type: 'post',
headers: {
"encodedResponse": grecaptcha.getResponse()
}
});
});
});
</script>
</head>
<body>
<form action="#" method="POST">
<div class="g-recaptcha" data-sitekey="your_public_key"></div>
<button type="button">POST</button>
</form>
</body>
</html>
public void ConfigureServices(IServiceCollection services)
{
services.AddReCaptcha();
GoogleReCaptcha.ResponseCodeForTest = "abc123";
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-3.4.1.min.js" ></script>
<script type="text/javascript">
$(function(){
$('button').click(function(){
$.ajax({
url:"your_api_endpoint",
type: 'post',
headers: {
"encodedResponse": "abc123"
}
});
});
});
</script>
</head>
<body>
<form action="#" method="POST">
<div class="g-recaptcha" data-sitekey="your_public_key"></div>
<button type="button">POST</button>
</form>
</body>
</html>
FAQs
This package, use for only "Web API" captcha validation use
We found that aspnetcore.webapi.googlerecaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.