Issue 147: Vulnerabilities in SEOPress plugin and Steam portal, results from an application security survey

The Latest API Security News, Vulnerabilities and Best Practices
Issue: #147
Vulnerabilities in SEOPress plugin and Steam portal, results from an application security survey
This week, we have the recent API vulnerabilities in the SEOPress WordPress plugin and the Valve Software Steam portal, the results from a Dark Reading survey into application security, and details of the upcoming OpenAPI Initiative’s (OAI) API Specifications Conference.
Vulnerability: XSS and REST API vulnerability in SEOPress
 

On July 29, 2021, the Wordfence Threat Intelligence team initiated the responsible disclosure process for a vulnerability that they discovered in SEOPress, a WordPress plugin installed on over 100 000 sites.

The researchers found that a REST API endpoint that the SEOPress plugin exposed for adding metadata to a post also allowed injecting arbitrary HTML payloads into the SEO fields of WordPress posts. This potentially left the door open for performing Cross-Site Scripting (XSS) based attacks, such as various administrative tasks, web shell injections, arbitrary redirects, and even a complete site takeover. The vulnerability is registered as CVE-2021-34641 and is currently waiting for classification.

The issue boils down to the fact that the implementation of the API endpoint did not fully validate the request for relevant permissions. Instead, the permission_callback method handler only validated the presence of a nonce that any authenticated user on a WordPress site can easily generate:

'permission_callback' => function ($request) {
$nonce = $request->get_header('x-wp-nonce');
if ( ! wp_verify_nonce($nonce, 'wp_rest'))
{
return false;
}
return true;

The vendor was notified of the vulnerability, and they have released a patch in version 5.0.4. Lessons learned here:

  • Failure to fully validate API requests is a leading factor in vulnerable APIs. Authentication is not enough and authorization needs to be in place. In this particular case, we saw an example of OWASP API:5 Broken Function-Level Authorization.
  • Skilled attackers can combine vulnerabilities,  like an API vulnerability and a cross-site scripting vulnerability, to totally compromise the target system. Define, validate, sanitize API inputs to prevent malicious payloads.
Vulnerability: Valve Software fixes API vulnerability in Steam portal
 

A security researcher found an API vulnerability in Steam Wallet API — part of the popular Steam portal by Valve Software — that generated quite literally money for nothing.

The researcher created an account on the Steam platform and then examined transactions made to the secure Smart2Pay API endpoint [https:]//globalapi.smart2pay.com/. He wondered if he could add money to his account by forging the corresponding parameter in the payload. The payload was protected with a hash. However, the construction of the POST request body revealed a flaw in how a transaction hash was calculated: the calculation appeared to be eliminating special separator characters like & and =.

The amount of the payment was included in the amount parameter of the request, as was the customer email. Thus, from hashing perspective, amount = 100 (as a parameter) and amount100 as a substring in another parameter (for example, the email address of the user) would generate the same hash.

The researcher made a request using the crafted email address and modified the request body to inject separators into the email address, thus forcing the transaction hashing to add additional amount fields to the request.

Screenshot_1295844

This vulnerability allowed a user with a Steam account to transfer arbitrary amounts to their Steam Wallet by a relatively trivial POST request modification. Valve Software confirmed the vulnerability and has fixed the issue. The vulnerability was disclosed on HackerOne, and the researcher was rewarded with a bounty (this time not money for nothing).

Lessons learned here:

  • User inputs cannot be trusted. Valve did a good job adding payload signing with a hashing function but the function was vulnerable and could be exploited.
  • To that point, it is also recommended that you thoroughly describe all payload schemas (including patterns for all strings) and enforce them.
  • This example also demonstrates the business value of a well-run bug bounty program: for the outlay of a $7500 bounty, Valve Software was able to identify a vulnerability that could have resulted in financial loss of several orders of magnitude.
Survey: Dark Reading on application security
 

The recent Dark Reading survey “Secure Applications” indicated that organizations are increasingly paying attention to the security of their APIs in their software security initiatives. As many as 41% said they were treating API security as part of their application security program and 23% have a dedicated API Security process.

Other key takeaways from the survey include:

  • 18% of organizations are outsourcing the evaluation of their API security to 3rd party or SaaS providers (up from 5% in 2020)
  • As many as 18% of organizations do not have any specific API security activity (unchanged from 2020)
tm-20210813

 

Conference: OAI’s API Specifications Conference on 28—29 September, 2021
 

OAI’s API Specifications Conference (ASC) is a place for API practitioners to come together and discuss the evolution of API technology. ASC includes cutting-edge technology keynotes and sessions that chart the future of APIs with in-depth specification and standards discussions.

The OpenAPI Specification (OAS), RAML, Blueprint, gRPC, OData, JSON Schema, GraphQL, AsyncAPI, and other formats will all be topics at the event, enabling attendees to get familiar with these formats and discuss how to use them in practice.

Of interest to security practitioners will be the talk from Isabelle Mauny, co-founder and Field CTO of 42Crunch, discussing how to inject security into API development.

Like other conferences at the present, ASC will be virtual, so you can participate from wherever you are.

Screenshot_2021-08-18 10.45.27_CJ1ih4

 

 
ColinD

 

 

Colin Domoney

APISecurity.io

 
Thanks for reading.

That's it for today. If you have any feedback or stories to share, simply reply to this email.

Please forward the newsletter to your friends and colleagues who might benefit from it.

 
42Crunch, Inc.   95 Third Street  2nd Floor  San Francisco  CA   94103   United States
You received this email because you are subscribed to API Security News from 42Crunch, Inc..

Update your email preferences to choose the types of emails you receive or Unsubscribe from all future emails  
 
 

Older messages

Issue 146: Facebook API leaking private group membership, JWT Attacker plugin for Burp

Friday, August 13, 2021

Hi, this week we have as usual recent API vulnerabilities, tools, opinions, and a note about the upcoming transition of this newsletter. APIsecurity.io The Latest API Security News, Vulnerabilities and

Issue 145: APIs and electric car charging stations, The Nuts and Bolts of OAuth 2.0 🔩

Thursday, August 5, 2021

Hi, today we look at the recent EV charging station API vulnerabilities, an OAuth2.0 course in Udemy, Gartner API Hype Cycle, and API path tra APIsecurity.io The Latest API Security News,

Issue 144: JustDial API vulnerability re-emerges, API key checker, the state of OAuth

Thursday, July 29, 2021

Hi, this week we have great videos on OAuth roadmap and GraphQL attacks and defenses. There's also an API key validator script and a story of APIsecurity.io The Latest API Security News,

Issue 143: GraphQL API leaking credit cards, SQLi in JWT, XML attacks mind map 🗺️

Thursday, July 22, 2021

Hi, today we have a case study of an API leaking credit card numbers, a lab on SQL injections in JWT, an API Security CTF, and a mind map of APIsecurity.io The Latest API Security News, Vulnerabilities

Issue 142: API vulnerabilities in Coursera and Huawei, GraphQL rate limiting and discovery 🔎

Friday, July 16, 2021

Hi, this week we look at the recent vulnerabilities in Coursera & Huawei, and discuss rate-limiting best practices for GraphQL as well as new APIsecurity.io The Latest API Security News,

You Might Also Like

🔋 Why You Need More Than One Power Bank — Things We Want to See in Windows 12

Monday, May 6, 2024

Also: 7 Samsung Messages Features You Should Be Using, and More! How-To Geek Logo May 6, 2024 Did You Know You can find all manner of canned vegetables, but not broccoli: the temperatures required for

Launch pad decongestion

Monday, May 6, 2024

We've got some very cool news from Hubble Networks, which became the first company to connect a Bluetooth chip to a satellite. View this email online in your browser By Aria Alamalhodaei Monday,

Daily Coding Problem: Problem #1433 [Medium]

Monday, May 6, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Nest. Create a basic sentence checker that takes in a stream of characters and

Want to become an AI consultant?

Monday, May 6, 2024

My take on this new industry ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Visualized | Interest Rate Forecasts for Advanced Economies 📈📉

Monday, May 6, 2024

In this graphic, we show the IMF's interest rate forecast for the US, Europe, the UK, and Japan for the next five years ahead. View Online | Subscribe Presented by Voronoi: The App Where Data Tells

⚙️ Apple AI updates

Monday, May 6, 2024

Plus: X AI stories & YouTube "skip to the good part" ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Unlock Time Series Data, FTC Chair Joins StrictlyVC & More

Monday, May 6, 2024

TechCrunch Events Roundup | May 6 TechCrunch Events TechCrunch events roundup Unlock the power of time series data with industry experts from AWS and InfluxDB on May 16. Join us next week for this free

Deepdive – product strategy, AI, leadership, emotional intelligence

Monday, May 6, 2024

Earlier this month, we presented our Virtual edition of INDUSTRY: The Product Conference, featuring some of our favorite product leaders worldwide. There were seven great keynote presentations, live

Noonification: The Human Roots of Rising Fascism

Monday, May 6, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 6, 2024? The HackerNoon Newsletter brings the HackerNoon

Code Story - Apr 24

Monday, May 6, 2024

Welcome to the April addition of the podcast newsletter. Please enjoy, and check out any of the episodes you might have missed below. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏